sds_env
sds_env copied to clipboard
Problem with environment_py.yml
A student failed to install the env using this yml file on Windows 10 (see the error message below). It was an issue with the syntax of the yml file. The solution was to copy the content of this yml file to YAML Lint and to download the new content. Hope that this is helpful!
OS: Windows 10 conda version: conda 4.9.2 Error message:
Traceback (most recent call last):
File "C:\Users\Owner\anaconda3\lib\site-packages\conda\exceptions.py", line 1079, in __call__
return func(*args, **kwargs)
File "C:\Users\Owner\anaconda3\lib\site-packages\conda_env\cli\main.py", line 80, in do_call
exit_code = getattr(module, func_name)(args, parser)
File "C:\Users\Owner\anaconda3\lib\site-packages\conda_env\cli\main_create.py", line 87, in execute
spec = specs.detect(name=name, filename=filename, directory=os.getcwd())
File "C:\Users\Owner\anaconda3\lib\site-packages\conda_env\specs\__init__.py", line 43, in detect
if spec.can_handle():
File "C:\Users\Owner\anaconda3\lib\site-packages\conda_env\specs\yaml_file.py", line 18, in can_handle
self._environment = env.from_file(self.filename)
File "C:\Users\Owner\anaconda3\lib\site-packages\conda_env\env.py", line 160, in from_file
return from_yaml(yamlstr, filename=filename)
File "C:\Users\Owner\anaconda3\lib\site-packages\conda_env\env.py", line 141, in from_yaml
data = yaml_safe_load(yamlstr)
File "C:\Users\Owner\anaconda3\lib\site-packages\conda\common\serialize.py", line 67, in yaml_safe_load
return yaml.safe_load(string, version="1.2")
File "C:\Users\Owner\anaconda3\lib\site-packages\ruamel_yaml\main.py", line 980, in safe_load
return load(stream, SafeLoader, version)
File "C:\Users\Owner\anaconda3\lib\site-packages\ruamel_yaml\main.py", line 935, in load
return loader._constructor.get_single_data()
File "C:\Users\Owner\anaconda3\lib\site-packages\ruamel_yaml\constructor.py", line 109, in get_single_data
node = self.composer.get_single_node()
File "C:\Users\Owner\anaconda3\lib\site-packages\ruamel_yaml\composer.py", line 78, in get_single_node
document = self.compose_document()
File "C:\Users\Owner\anaconda3\lib\site-packages\ruamel_yaml\composer.py", line 104, in compose_document
self.parser.get_event()
File "C:\Users\Owner\anaconda3\lib\site-packages\ruamel_yaml\parser.py", line 163, in get_event
self.current_event = self.state()
File "C:\Users\Owner\anaconda3\lib\site-packages\ruamel_yaml\parser.py", line 239, in parse_document_end
token = self.scanner.peek_token()
File "C:\Users\Owner\anaconda3\lib\site-packages\ruamel_yaml\scanner.py", line 182, in peek_token
self.fetch_more_tokens()
File "C:\Users\Owner\anaconda3\lib\site-packages\ruamel_yaml\scanner.py", line 282, in fetch_more_tokens
return self.fetch_value()
File "C:\Users\Owner\anaconda3\lib\site-packages\ruamel_yaml\scanner.py", line 651, in fetch_value
raise ScannerError(
ruamel_yaml.scanner.ScannerError: mapping values are not allowed here
in "<unicode string>", line 89, column 65:
... e" content="{"version": "4", "rollouts& ...
^ (line: 89)
`$ C:\Users\Owner\anaconda3\Scripts\conda-env-script.py create -f environment_py.yml`
environment variables:
CIO_TEST=<not set>
CONDA_AUTO_UPDATE_CONDA=false
CONDA_DEFAULT_ENV=base
CONDA_EXE=C:\Users\Owner\anaconda3\condabin\..\Scripts\conda.exe
CONDA_PREFIX=C:\Users\Owner\anaconda3
CONDA_PROMPT_MODIFIER=(base)
CONDA_PYTHON_EXE=C:\Users\Owner\anaconda3\python.exe
CONDA_ROOT=C:\Users\Owner\anaconda3
CONDA_SHLVL=1
CURL_CA_BUNDLE=<not set>
HOMEPATH=\Users\Owner
MIC_LD_LIBRARY_PATH=C:\Program Files (x86)\Common Files\Intel\Shared
Libraries\compiler\lib\mic
PATH=C:\Users\Owner\anaconda3;C:\Users\Owner\anaconda3\Library\mingw-w64\bi
n;C:\Users\Owner\anaconda3\Library\usr\bin;C:\Users\Owner\anaconda3\Li
brary\bin;C:\Users\Owner\anaconda3\Scripts;C:\Users\Owner\anaconda3\bi
n;C:\Users\Owner\anaconda3\condabin;C:\Program Files (x86)\Common
Files\Intel\Shared Libraries\redist\intel64\compiler;C:\ProgramData\Or
acle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\
Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Program
Files\Java\jdk-9.0.1\bin;C:\Program
Files\Java\jdk-9.0.1\bin;C:\Program Files
(x86)\QuickTime\QTSystem;C:\WINDOWS\System32\OpenSSH;C:\Program Files\
dotnet;C:\Users\Owner\AppData\Local\Programs\Python\Python37-32;C:\Pro
gram Files\Intel\WiFi\bin;C:\Program Files\Common
Files\Intel\WirelessCommon;C:\Program Files (x86)\Intel\Intel(R)
Management Engine Components\DAL;C:\Program Files\Intel\Intel(R)
Management Engine Components\DAL;C:\Program Files\MySQL\MySQL Shell 8.
0\bin;C:\Users\Owner\AppData\Local\Programs\Python\Python37-32\Scripts
;C:\Users\Owner\AppData\Local\Programs\Python\Python37-32;C:\Users\Own
er\AppData\Local\Microsoft\WindowsApps;C:\Users\Owner\AppData\Local\at
om\bin;C:\Users\Owner\AppData\Local\Microsoft\WindowsApps;C:\Program
Files\Intel\WiFi\bin;C:\Program Files\Common
Files\Intel\WirelessCommon
PSMODULEPATH=C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\Windows
PowerShell\v1.0\Modules
PYTHON_HOME=C:\Users\Owner\AppData\Local\Programs\Python\Python37-32
REQUESTS_CA_BUNDLE=<not set>
SSL_CERT_FILE=<not set>
VBOX_MSI_INSTALL_PATH=C:\Program Files\Oracle\VirtualBox\
active environment : base
active env location : C:\Users\Owner\anaconda3
shell level : 1
user config file : C:\Users\Owner\.condarc
populated config files : C:\Users\Owner\.condarc
conda version : 4.9.2
conda-build version : 3.20.5
python version : 3.8.5.final.0
virtual packages : __cuda=11.0=0
__win=0=0
__archspec=1=x86_64
base environment : C:\Users\Owner\anaconda3 (writable)
channel URLs : https://repo.anaconda.com/pkgs/main/win-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/win-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/msys2/win-64
https://repo.anaconda.com/pkgs/msys2/noarch
package cache : C:\Users\Owner\anaconda3\pkgs
C:\Users\Owner\.conda\pkgs
C:\Users\Owner\AppData\Local\conda\conda\pkgs
envs directories : C:\Users\Owner\anaconda3\envs
C:\Users\Owner\.conda\envs
C:\Users\Owner\AppData\Local\conda\conda\envs
platform : win-64
user-agent : conda/4.9.2 requests/2.24.0 CPython/3.8.5 Windows/10 Windows/10.0.18362
administrator : False
netrc file : None
offline mode : False
An unexpected error has occurred. Conda has prepared the above report.