Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem during installation #82

Open
Zhang-JiahangH opened this issue Mar 30, 2022 · 0 comments
Open

Problem during installation #82

Zhang-JiahangH opened this issue Mar 30, 2022 · 0 comments

Comments

@Zhang-JiahangH
Copy link

I met a problem during the installation. I tried like change CUDA_HOME's path, tried to update cudatoolist but I still didn't solve it.

Installing collected packages: alphaction
Running setup.py develop for alphaction
ERROR: Command errored out with exit status 1:
command: /home/jiahang/anaconda3/envs/alphaction/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/jiahang/AlphAction/setup.py'"'"'; file='"'"'/home/jiahang/AlphAction/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' develop --no-deps
cwd: /home/jiahang/AlphAction/
Complete output (47 lines):
No CUDA runtime is found, using CUDA_HOME='/usr'
running develop
running egg_info
creating alphaction.egg-info
writing alphaction.egg-info/PKG-INFO
writing dependency_links to alphaction.egg-info/dependency_links.txt
writing requirements to alphaction.egg-info/requires.txt
writing top-level names to alphaction.egg-info/top_level.txt
writing manifest file 'alphaction.egg-info/SOURCES.txt'
reading manifest file 'alphaction.egg-info/SOURCES.txt'
writing manifest file 'alphaction.egg-info/SOURCES.txt'
running build_ext
Traceback (most recent call last):
File "", line 1, in
File "/home/jiahang/AlphAction/setup.py", line 121, in
cmdclass={"build_ext": torch.utils.cpp_extension.BuildExtension},
File "/home/jiahang/anaconda3/envs/alphaction/lib/python3.7/site-packages/setuptools/init.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/home/jiahang/anaconda3/envs/alphaction/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/home/jiahang/anaconda3/envs/alphaction/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/home/jiahang/anaconda3/envs/alphaction/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/jiahang/anaconda3/envs/alphaction/lib/python3.7/site-packages/setuptools/command/develop.py", line 34, in run
self.install_for_development()
File "/home/jiahang/anaconda3/envs/alphaction/lib/python3.7/site-packages/setuptools/command/develop.py", line 114, in install_for_development
self.run_command('build_ext')
File "/home/jiahang/anaconda3/envs/alphaction/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/jiahang/anaconda3/envs/alphaction/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/jiahang/anaconda3/envs/alphaction/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 79, in run
_build_ext.run(self)
File "/home/jiahang/anaconda3/envs/alphaction/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "/home/jiahang/anaconda3/envs/alphaction/lib/python3.7/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/home/jiahang/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 410, in build_extensions
self._check_cuda_version()
File "/home/jiahang/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 783, in _check_cuda_version
torch_cuda_version = packaging.version.parse(torch.version.cuda)
File "/home/jiahang/anaconda3/envs/alphaction/lib/python3.7/site-packages/pkg_resources/_vendor/packaging/version.py", line 56, in parse
return Version(version)
File "/home/jiahang/anaconda3/envs/alphaction/lib/python3.7/site-packages/pkg_resources/_vendor/packaging/version.py", line 275, in init
match = self._regex.search(version)
TypeError: expected string or bytes-like object
----------------------------------------
ERROR: Command errored out with exit status 1: /home/jiahang/anaconda3/envs/alphaction/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/jiahang/AlphAction/setup.py'"'"'; file='"'"'/home/jiahang/AlphAction/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant