Closed OwenHua666 closed 4 years ago
Hey @OwenHua666,
You need to install pytorch3d from the pytorch3d-nightly conda channel.
I had the same issue, and ended up creating a separated 'clean' environment.yml with all the dependencies : https://github.com/ilnmtlbnm/synsin/blob/master/environment.yml
You can just conda env create -f environment.yml
then conda activate synsin_env
and you're all set.
Don't forget to bash download_models.sh
, the demos will work, from there you can start to dig deeper.
Thanks for the help @ilnmtlbnm ! Hope that fixes your problem @OwenHua666
I will try and let you guys know. Thanks a lot!
Hey @OwenHua666,
You need to install pytorch3d from the pytorch3d-nightly conda channel.
I had the same issue, and ended up creating a separated 'clean' environment.yml with all the dependencies : https://github.com/ilnmtlbnm/synsin/blob/master/environment.yml
You can just
conda env create -f environment.yml
thenconda activate synsin_env
and you're all set.Don't forget to
bash download_models.sh
, the demos will work, from there you can start to dig deeper.
I had the same issue and can confirm that this helped. Thank you! 😊
Closing this issue as everything seems to be resolved. Feel free to re-open if anything new emerges.
Getting this error after I ran 'conda env create -f environment.yml'
Traceback (most recent call last):
File "C:\Users\computers\anaconda3\lib\site-packages\conda\exceptions.py", line 1079, in __call__
return func(*args, **kwargs)
File "C:\Users\computers\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\computers\anaconda3\lib\site-packages\conda_env\cli\main_create.py", line 81, in execute
spec = specs.detect(name=name, filename=get_filename(args.file), directory=os.getcwd())
File "C:\Users\computers\anaconda3\lib\site-packages\conda_env\specs\__init__.py", line 43, in detect
if spec.can_handle():
File "C:\Users\computers\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\computers\anaconda3\lib\site-packages\conda_env\env.py", line 165, in from_file
return from_yaml(yamlstr, filename=filename)
File "C:\Users\computers\anaconda3\lib\site-packages\conda_env\env.py", line 143, in from_yaml
data = validate_keys(data, kwargs)
File "C:\Users\computers\anaconda3\lib\site-packages\conda_env\env.py", line 38, in validate_keys
for key in data.keys():
AttributeError: 'NoneType' object has no attribute 'keys'
$ C:\Users\computers\anaconda3\Scripts\conda-env-script.py create -f environment.yml
environment variables:
CIO_TEST=
active environment : None
user config file : C:\Users\computers\.condarc
populated config files : C:\Users\computers.condarc conda version : 4.10.1 conda-build version : 3.21.4 python version : 3.8.8.final.0 virtual packages : win=0=0 archspec=1=x86_64 base environment : C:\Users\computers\anaconda3 (writable) conda av data dir : C:\Users\computers\anaconda3\etc\conda conda av metadata url : https://repo.anaconda.com/pkgs/main 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\computers\anaconda3\pkgs C:\Users\computers.conda\pkgs C:\Users\computers\AppData\Local\conda\conda\pkgs envs directories : C:\Users\computers\anaconda3\envs C:\Users\computers.conda\envs C:\Users\computers\AppData\Local\conda\conda\envs platform : win-64 user-agent : conda/4.10.1 requests/2.25.1 CPython/3.8.8 Windows/10 Windows/10.0.19041 administrator : False netrc file : None offline mode : False
An unexpected error has occurred. Conda has prepared the above report.
conda create –-name synsin_env –-file requirements.txt
gives the error: CondaValueError: The target prefix is the base prefix. Aborting. I tried to install the required libs using virtual environment, butimport quaternion
fails and pytorch3d also report an error.