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

Can't get anything after run "python setup.py install" #9

Closed
lh0616 opened this issue Jan 22, 2019 · 6 comments
Closed

Can't get anything after run "python setup.py install" #9

lh0616 opened this issue Jan 22, 2019 · 6 comments
Labels

Comments

@lh0616
Copy link

lh0616 commented Jan 22, 2019

I have downloaded libtorch and
export LIBTORCH_ROOT=/media/omnisky/data/liuhao/libtorch/
and installed camke3.13.3 and
export PATH=/media/omnisky/data/liuhao/cmake-3.13.3/bin/cmake:$PATH
then i run python setup.py install but got nothing
image
I have waited about one hour, is there anything wrong?Should i wait so long time?

@traveller59
Copy link
Owner

The compile process should finished in one minute and print lots of logs. you need to pass ctrl + c and provide more message about this

@lh0616
Copy link
Author

lh0616 commented Jan 22, 2019

I found that python version had been changed to 3.5 , now i have upgrade python to 3,6 and get new problem:
`No local packages or download links found for torch>=1.0.0
Traceback (most recent call last):
File "setup.py", line 82, in
zip_safe=False,
File "/usr/lib/python3.6/distutils/core.py", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 269, in init
self.fetch_build_eggs(attrs['setup_requires'])
File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 313, in fetch_build_eggs
replace_conflicting=True,
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 826, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 1092, in best_match
return self.obtain(req, installer)
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 1104, in obtain
return installer(requirement)
File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 380, in fetch_build_egg
return cmd.easy_install(req)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 657, in easy_install
raise DistutilsError(msg)
distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('torch>=1.0.0')
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook
from apport.fileutils import likely_packaged, get_recent_crashes
File "/usr/lib/python3/dist-packages/apport/init.py", line 5, in
from apport.report import Report
File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in
import apport.fileutils
File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in
from apport.packaging_impl import impl as packaging
File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 23, in
import apt
File "/usr/lib/python3/dist-packages/apt/init.py", line 23, in
import apt_pkg
ModuleNotFoundError: No module named 'apt_pkg'

Original exception was:
Traceback (most recent call last):
File "setup.py", line 82, in
zip_safe=False,
File "/usr/lib/python3.6/distutils/core.py", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 269, in init
self.fetch_build_eggs(attrs['setup_requires'])
File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 313, in fetch_build_eggs
replace_conflicting=True,
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 826, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 1092, in best_match
return self.obtain(req, installer)
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 1104, in obtain
return installer(requirement)
File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 380, in fetch_build_egg
return cmd.easy_install(req)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 657, in easy_install
raise DistutilsError(msg)
distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('torch>=1.0.0')
`

I have download stable libtorch and export LIBTORCH_ROOT="/media/omnisky/data/liuhao/libtorch/", can you give me some advices?thank you very much

@traveller59
Copy link
Owner

you need to install pytorch 1.0 in your python environment first. I am trying to build spconv against pytorch instead of libtorch.

@lh0616
Copy link
Author

lh0616 commented Jan 22, 2019

Do you means that i should install pytorch1.0 and libtorch in the meantimes.

@traveller59
Copy link
Owner

no, newest code don't require libtorch anymore. just install pytorch.

@dekura
Copy link

dekura commented Jun 13, 2020

You can refer to #152

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

No branches or pull requests

3 participants