Hello everyone,
While following your instructions to install Nextstrain CLI via WSL2 on Windows, I encountered the permission error [Errno 13] at the end of the installation (see documentation below). All other steps worked perfectly fine.
I tried “>sudo chown -R $USER:$USER”, and as last resort also rooting via “>sudo -i” on Ubuntu, but nothing helped so far.
Any ideas on how this could be resolved are highly appreciated.
Thanks!
Ralf
–
here’s the string leading to the error code:
(nextstrain) PS C:\windows\system32> nextstrain check-setup --set-default
nextstrain-cli is up to date!
Testing your setup…
# docker is supported
✔ yes: docker is installed
✔ yes: docker run works
? unknown: containers have access to >2 GiB of memory
? unknown: image is new enough for this CLI version
# native is not supported
✘ no: snakemake is installed
✘ no: augur is installed
✘ no: auspice is installed
# aws-batch is not supported
✘ no: job description "nextstrain-job" exists
✘ no: job queue "nextstrain-job-queue" exists
✘ no: S3 bucket "nextstrain-jobs" exists
All good! Supported Nextstrain environments: docker
Setting default environment to docker.
PermissionError: [Errno 13] Permission denied
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Duerrr02\Miniconda3\envs\nextstrain\Scripts\nextstrain-script.py", line 9, in <module>
sys.exit(main())
File "C:\Users\Duerrr02\Miniconda3\envs\nextstrain\lib\site-packages\nextstrain\cli\__main__.py", line 10, in main
return cli.run( argv[1:] )
File "C:\Users\Duerrr02\Miniconda3\envs\nextstrain\lib\site-packages\nextstrain\cli\__init__.py", line 31, in run
return opts.__command__.run(opts)
File "C:\Users\Duerrr02\Miniconda3\envs\nextstrain\lib\site-packages\nextstrain\cli\command\check_setup.py", line 108, in run
config.set("core", "runner", supported_runners[0])
File "C:\Users\Duerrr02\Miniconda3\envs\nextstrain\lib\site-packages\nextstrain\cli\config.py", line 105, in set
save(config, path)
File "C:\Users\Duerrr02\Miniconda3\envs\nextstrain\lib\site-packages\nextstrain\cli\config.py", line 72, in save
config.write(file)
PermissionError: [Errno 13] Permission denied
(nextstrain) PS C:\windows\system32>