Comments (23)
Sorry, but this way still doesn't work.
Here attached the error.
error.txt
from torch-points-kernels.
I think it is because it builds with ninja. Maybe try to uinstall ninja or deactivate Ninja in the setup.py
file:
This
https://github.com/nicolas-chaulet/torch-points-kernels/blob/8cc7b071f17ced552e7061db9ef22b2ae24a3fb9/setup.py#L64
becomes
return {"build_ext": BuildExtension.with_options(no_python_abi_suffix=True, use_ninja=False)}
If that works, feel free to open a PR with the fix!
from torch-points-kernels.
I think it is because it builds with ninja. Maybe try to uinstall ninja or deactivate Ninja in the
setup.py
file:
This
https://github.com/nicolas-chaulet/torch-points-kernels/blob/8cc7b071f17ced552e7061db9ef22b2ae24a3fb9/setup.py#L64becomes
return {"build_ext": BuildExtension.with_options(no_python_abi_suffix=True, use_ninja=False)}
If that works, feel free to open a PR with the fix!
I suspect the problem is caused by the gcc version,and I just uninstall the pytorch=1.5,and install pytorch=1.4 instead, the problem fix, I see the c++14 instead with the c++11
from torch-points-kernels.
Yes, but gcc 4.9+ is enough, are you sure it's that?
from torch-points-kernels.
from torch-points-kernels.
I think it is because it builds with ninja. Maybe try to uinstall ninja or deactivate Ninja in the
setup.py
file:
Thisbecomes
return {"build_ext": BuildExtension.with_options(no_python_abi_suffix=True, use_ninja=False)}
If that works, feel free to open a PR with the fix!
Hi, I met the same error, my pytorch is 1.5 too, but I don't want to uninstall it,
so, after 'git clone projrct ' and modified the setup file, what need to do next? I tried 'python setup.py build_ext --inplace', but I got another error:
(sparse) zhangjingy@yons-desktop:~/project/torch-points-kernels$ python setup.py build_ext --inplaceTraceback (most recent call last):
File "setup.py", line 87, in
"License :: OSI Approved :: MIT License",
File "/home/zhangjingy/.local/lib/python3.6/site-packages/setuptools/init.py", line 144, in setup
return distutils.core.setup(**attrs)
File "/home/zhangjingy/anaconda3/envs/sparse/lib/python3.6/distutils/core.py", line 134, in setup
ok = dist.parse_command_line()
File "/home/zhangjingy/anaconda3/envs/sparse/lib/python3.6/distutils/dist.py", line 472, in parse_command_line
args = self._parse_command_opts(parser, args)
File "/home/zhangjingy/.local/lib/python3.6/site-packages/setuptools/dist.py", line 925, in _parse_command_opts
nargs = _Distribution._parse_command_opts(self, parser, args)
File "/home/zhangjingy/anaconda3/envs/sparse/lib/python3.6/distutils/dist.py", line 534, in _parse_command_opts
if not issubclass(cmd_class, Command):
TypeError: issubclass() arg 1 must be a class
from torch-points-kernels.
Finally, I solve this error by installing torch==1.1.0, I met the similar issue when installed torch-points3d ,and I solved by using the same solution.
from torch-points-kernels.
Not sure what is going on here... The tests are running on pytorch 1.4 and 1.5 just fine, I have installed it in multiple places with those versions as well. So something is different in your setup but no idea what. Can you try to run the following commands in an empty folder?
python3 -m venv tpk-env
source tpk-env/bin/activate
pip install torch
pip install torch-points-kernels
from torch-points-kernels.
Not sure what is going on here... The tests are running on pytorch 1.4 and 1.5 just fine, I have installed it in multiple places with those versions as well. So something is different in your setup but no idea what. Can you try to run the following commands in an empty folder?
python3 -m venv tpk-env source tpk-env/bin/activate pip install torch pip install torch-points-kernels
sure
I tried, and it works~
from torch-points-kernels.
Not sure what is going on here... The tests are running on pytorch 1.4 and 1.5 just fine, I have installed it in multiple places with those versions as well. So something is different in your setup but no idea what. Can you try to run the following commands in an empty folder?
python3 -m venv tpk-env source tpk-env/bin/activate pip install torch pip install torch-points-kernels
sure
I tried, and it works~
so I think it maybe caused by anaconda~
I tried recreate a new virtual env by running following commands:
conda create --name test python=3.7.4 conda activate test conda install pytorch==1.5.0 pip install torch-points-kernels
then, the error occurred again~
from torch-points-kernels.
Ok, so this is about conda installation. Reopening the issue. I have pushed a patch but can't verify on my end easily, could you please try with your conda setup above please? The command would be:
conda create --name test python=3.7.4
conda activate test
conda install pytorch==1.5.0
pip install git+https://github.com/nicolas-chaulet/torch-points-kernels.git#bug/conda
from torch-points-kernels.
@nicolas-chaulet
recently, I try to install this rpo in my project. And the envs is pytorch==1.1.0 , beacaus of the version of the Nvidia only surport the cuda9.0, and the pytorch==1.4 can't be installed. Whern I run the setup.py , the gcc has some error about the 'TORCH_CHECK', I just inplace it of the 'AT_CHECK', and it can build the 'points_cpu.cpython-36m-x86_64-linux-gnu.so ' and 'points_cuda.cpython-36m-x86_64-linux-gnu.so', when I install it in my conda envs and import the torch_points_kernels, it has another error :
module 'torch_points_kernels' has no attribute 'points_cpu'
but the file is existed! can you tell me
from torch-points-kernels.
Hi @laiming997, after compiling the repo, are you able to run the tests? python -m unittest
from torch-points-kernels.
Hi @laiming997, after compiling the repo, are you able to run the tests?
python -m unittest
no , when run the tests, it has many error.
the error like :
E..EEEE
ERROR: test.test_ballquerry (unittest.loader._FailedTest)
ImportError: Failed to import test module: test.test_ballquerry
Traceback (most recent call last):
File "/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
import(name)
File "/home/dy113/laiming/RandLA/torch-points-kernels/test/test_ballquerry.py", line 13, in
from torch_points_kernels import ball_query
File "/home/dy113/laiming/RandLA/torch-points-kernels/test/../torch_points_kernels/init.py", line 1, in
from .torchpoints import *
File "/home/dy113/laiming/RandLA/torch-points-kernels/test/../torch_points_kernels/torchpoints.py", line 11, in
import torch_points_kernels.points_cuda as tpcuda
ImportError: dynamic module does not define module export function (PyInit_points_cuda)
======================================================================
ERROR: test.test_grouping (unittest.loader._FailedTest)
ImportError: Failed to import test module: test.test_grouping
Traceback (most recent call last):
File "/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
import(name)
File "/home/dy113/laiming/RandLA/torch-points-kernels/test/test_grouping.py", line 5, in
from torch_points_kernels import grouping_operation
File "/home/dy113/laiming/RandLA/torch-points-kernels/test/../torch_points_kernels/init.py", line 1, in
from .torchpoints import *
File "/home/dy113/laiming/RandLA/torch-points-kernels/test/../torch_points_kernels/torchpoints.py", line 7, in
import torch_points_kernels.points_cpu as tpcpu
AttributeError: module 'torch_points_kernels' has no attribute 'points_cpu'
======================================================================
ERROR: test.test_interpolate (unittest.loader._FailedTest)
ImportError: Failed to import test module: test.test_interpolate
Traceback (most recent call last):
File "/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
import(name)
File "/home/dy113/laiming/RandLA/torch-points-kernels/test/test_interpolate.py", line 4, in
from torch_points_kernels import three_interpolate, three_nn
File "/home/dy113/laiming/RandLA/torch-points-kernels/test/../torch_points_kernels/init.py", line 1, in
from .torchpoints import *
File "/home/dy113/laiming/RandLA/torch-points-kernels/test/../torch_points_kernels/torchpoints.py", line 7, in
import torch_points_kernels.points_cpu as tpcpu
AttributeError: module 'torch_points_kernels' has no attribute 'points_cpu'
======================================================================
ERROR: test.test_knn (unittest.loader._FailedTest)
ImportError: Failed to import test module: test.test_knn
Traceback (most recent call last):
File "/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
import(name)
File "/home/dy113/laiming/RandLA/torch-points-kernels/test/test_knn.py", line 9, in
from torch_points_kernels import three_nn, knn
File "/home/dy113/laiming/RandLA/torch-points-kernels/test/../torch_points_kernels/init.py", line 1, in
from .torchpoints import *
File "/home/dy113/laiming/RandLA/torch-points-kernels/test/../torch_points_kernels/torchpoints.py", line 7, in
import torch_points_kernels.points_cpu as tpcpu
AttributeError: module 'torch_points_kernels' has no attribute 'points_cpu'
======================================================================
ERROR: torch_points_kernels (unittest.loader._FailedTest)
ImportError: Failed to import test module: torch_points_kernels
Traceback (most recent call last):
File "/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/unittest/loader.py", line 462, in _find_test_path
package = self._get_module_from_name(name)
File "/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
import(name)
File "/home/dy113/laiming/RandLA/torch-points-kernels/test/../torch_points_kernels/init.py", line 1, in
from .torchpoints import *
File "/home/dy113/laiming/RandLA/torch-points-kernels/test/../torch_points_kernels/torchpoints.py", line 7, in
import torch_points_kernels.points_cpu as tpcpu
AttributeError: module 'torch_points_kernels' has no attribute 'points_cpu'
Ran 7 tests in 0.003s
FAILED (errors=5)
from torch-points-kernels.
Looks like it did not install or compile properly... In principle you should have a folder structure that looks like:
from torch-points-kernels.
and I just install with the recorded file.the file information is :
/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/site-packages/torch_points_kernels-0.6.4-py3.6-linux-x86_64.egg/torch_points_kernels/points_cpu.py
/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/site-packages/torch_points_kernels-0.6.4-py3.6-linux-x86_64.egg/torch_points_kernels/points_cuda.py
/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/site-packages/torch_points_kernels-0.6.4-py3.6-linux-x86_64.egg/torch_points_kernels/init.py
/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/site-packages/torch_points_kernels-0.6.4-py3.6-linux-x86_64.egg/torch_points_kernels/points_cpu.cpython-36m-x86_64-linux-gnu.so
/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/site-packages/torch_points_kernels-0.6.4-py3.6-linux-x86_64.egg/torch_points_kernels/knn.py
/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/site-packages/torch_points_kernels-0.6.4-py3.6-linux-x86_64.egg/torch_points_kernels/points_cuda.cpython-36m-x86_64-linux-gnu.so
/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/site-packages/torch_points_kernels-0.6.4-py3.6-linux-x86_64.egg/torch_points_kernels/torchpoints.py
/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/site-packages/torch_points_kernels-0.6.4-py3.6-linux-x86_64.egg/torch_points_kernels/pycache/points_cuda.cpython-36.pyc
/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/site-packages/torch_points_kernels-0.6.4-py3.6-linux-x86_64.egg/torch_points_kernels/pycache/points_cpu.cpython-36.pyc
/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/site-packages/torch_points_kernels-0.6.4-py3.6-linux-x86_64.egg/torch_points_kernels/pycache/knn.cpython-36.pyc
/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/site-packages/torch_points_kernels-0.6.4-py3.6-linux-x86_64.egg/torch_points_kernels/pycache/torchpoints.cpython-36.pyc
/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/site-packages/torch_points_kernels-0.6.4-py3.6-linux-x86_64.egg/torch_points_kernels/pycache/init.cpython-36.pyc
/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/site-packages/torch_points_kernels-0.6.4-py3.6-linux-x86_64.egg/EGG-INFO/PKG-INFO
/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/site-packages/torch_points_kernels-0.6.4-py3.6-linux-x86_64.egg/EGG-INFO/requires.txt
/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/site-packages/torch_points_kernels-0.6.4-py3.6-linux-x86_64.egg/EGG-INFO/dependency_links.txt
/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/site-packages/torch_points_kernels-0.6.4-py3.6-linux-x86_64.egg/EGG-INFO/not-zip-safe
/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/site-packages/torch_points_kernels-0.6.4-py3.6-linux-x86_64.egg/EGG-INFO/native_libs.txt
/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/site-packages/torch_points_kernels-0.6.4-py3.6-linux-x86_64.egg/EGG-INFO/SOURCES.txt
/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/site-packages/torch_points_kernels-0.6.4-py3.6-linux-x86_64.egg/EGG-INFO/top_level.txt
/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/site-packages/torch_points_kernels-0.6.4-py3.6-linux-x86_64.egg/test/test_knn.py
/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/site-packages/torch_points_kernels-0.6.4-py3.6-linux-x86_64.egg/test/test_grouping.py
/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/site-packages/torch_points_kernels-0.6.4-py3.6-linux-x86_64.egg/test/init.py
/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/site-packages/torch_points_kernels-0.6.4-py3.6-linux-x86_64.egg/test/test_interpolate.py
/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/site-packages/torch_points_kernels-0.6.4-py3.6-linux-x86_64.egg/test/test_fps.py
/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/site-packages/torch_points_kernels-0.6.4-py3.6-linux-x86_64.egg/test/speed_radius.py
/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/site-packages/torch_points_kernels-0.6.4-py3.6-linux-x86_64.egg/test/test_ballquerry.py
/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/site-packages/torch_points_kernels-0.6.4-py3.6-linux-x86_64.egg/test/pycache/test_interpolate.cpython-36.pyc
/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/site-packages/torch_points_kernels-0.6.4-py3.6-linux-x86_64.egg/test/pycache/test_ballquerry.cpython-36.pyc
/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/site-packages/torch_points_kernels-0.6.4-py3.6-linux-x86_64.egg/test/pycache/test_knn.cpython-36.pyc
/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/site-packages/torch_points_kernels-0.6.4-py3.6-linux-x86_64.egg/test/pycache/test_fps.cpython-36.pyc
/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/site-packages/torch_points_kernels-0.6.4-py3.6-linux-x86_64.egg/test/pycache/speed_radius.cpython-36.pyc
/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/site-packages/torch_points_kernels-0.6.4-py3.6-linux-x86_64.egg/test/pycache/init.cpython-36.pyc
/home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/site-packages/torch_points_kernels-0.6.4-py3.6-linux-x86_64.egg/test/pycache/test_grouping.cpython-36.pyc
/home/dy113/anaconda3/envs/laiming_pytorch/bin/convert-caffe2-to-onnx
/home/dy113/anaconda3/envs/laiming_pytorch/bin/convert-onnx-to-caffe2
/home/dy113/anaconda3/envs/laiming_pytorch/bin/f2py
/home/dy113/anaconda3/envs/laiming_pytorch/bin/f2py3
/home/dy113/anaconda3/envs/laiming_pytorch/bin/f2py3.6
from torch-points-kernels.
Yes, looks like everything is installed correctly. Not sure what's going on here...It may be related to a conda install again. I haven't tested it with conda so it could be that the packaging is different somehow, I would start there to firgure out what's wrong. I can see that you have a points_cpu.py
file what is in there? Also if you do the following, does it work?
cd /home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/site-packages/torch_points_kernels-0.6.4-py3.6-linux-x86_64.egg/torch_points_kernels
python
and then
import torch
import points_cpu
from torch-points-kernels.
thank you for your quickly reply. and I just try import torch
import points_cpu
under the path, and it works. but import knn
, it failed. I doubt there are something wrong generating the file in the site-packages directory of the conda..
here is the files in the 'torch_points_kernels-0.6.4-py3.6-linux-x86_64.egg'
from torch-points-kernels.
when I run the command python setup.py install
it show in the end like that:
g++ -pthread -shared -B /home/dy113/anaconda3/envs/laiming_pytorch/compiler_compat -L/home/dy113/anaconda3/envs/laiming_pytorch/lib -Wl,-rpath=/home/dy113/anaconda3/envs/laiming_pytorch/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.6/cpu/src/fps.o build/temp.linux-x86_64-3.6/cpu/src/interpolate.o build/temp.linux-x86_64-3.6/cpu/src/neighbors.o build/temp.linux-x86_64-3.6/cpu/src/knn.o build/temp.linux-x86_64-3.6/cpu/src/bindings.o build/temp.linux-x86_64-3.6/cpu/src/ball_query.o -L/home/dy113/anaconda3/envs/laiming_pytorch/lib -lpython3.6m -o build/lib.linux-x86_64-3.6/torch_points_kernels/points_cpu.cpython-36m-x86_64-linux-gnu.so
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/torch_points_kernels
copying build/lib.linux-x86_64-3.6/torch_points_kernels/init.py -> build/bdist.linux-x86_64/egg/torch_points_kernels
copying build/lib.linux-x86_64-3.6/torch_points_kernels/points_cpu.cpython-36m-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/egg/torch_points_kernels
copying build/lib.linux-x86_64-3.6/torch_points_kernels/knn.py -> build/bdist.linux-x86_64/egg/torch_points_kernels
copying build/lib.linux-x86_64-3.6/torch_points_kernels/points_cuda.cpython-36m-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/egg/torch_points_kernels
copying build/lib.linux-x86_64-3.6/torch_points_kernels/torchpoints.py -> build/bdist.linux-x86_64/egg/torch_points_kernels
creating build/bdist.linux-x86_64/egg/test
copying build/lib.linux-x86_64-3.6/test/test_knn.py -> build/bdist.linux-x86_64/egg/test
copying build/lib.linux-x86_64-3.6/test/test_grouping.py -> build/bdist.linux-x86_64/egg/test
copying build/lib.linux-x86_64-3.6/test/init.py -> build/bdist.linux-x86_64/egg/test
copying build/lib.linux-x86_64-3.6/test/test_interpolate.py -> build/bdist.linux-x86_64/egg/test
copying build/lib.linux-x86_64-3.6/test/test_fps.py -> build/bdist.linux-x86_64/egg/test
copying build/lib.linux-x86_64-3.6/test/speed_radius.py -> build/bdist.linux-x86_64/egg/test
copying build/lib.linux-x86_64-3.6/test/test_ballquerry.py -> build/bdist.linux-x86_64/egg/test
byte-compiling build/bdist.linux-x86_64/egg/torch_points_kernels/init.py to init.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/torch_points_kernels/knn.py to knn.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/torch_points_kernels/torchpoints.py to torchpoints.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/test/test_knn.py to test_knn.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/test/test_grouping.py to test_grouping.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/test/init.py to init.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/test/test_interpolate.py to test_interpolate.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/test/test_fps.py to test_fps.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/test/speed_radius.py to speed_radius.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/test/test_ballquerry.py to test_ballquerry.cpython-36.pyc
creating stub loader for torch_points_kernels/points_cuda.cpython-36m-x86_64-linux-gnu.so
creating stub loader for torch_points_kernels/points_cpu.cpython-36m-x86_64-linux-gnu.so
byte-compiling build/bdist.linux-x86_64/egg/torch_points_kernels/points_cuda.py to points_cuda.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/torch_points_kernels/points_cpu.py to points_cpu.cpython-36.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying torch_points_kernels.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying torch_points_kernels.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying torch_points_kernels.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying torch_points_kernels.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying torch_points_kernels.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
test.pycache.speed_radius.cpython-36: module references file
test.pycache.test_ballquerry.cpython-36: module references file
test.pycache.test_fps.cpython-36: module references file
test.pycache.test_knn.cpython-36: module references file
torch_points_kernels.pycache.points_cpu.cpython-36: module references file
torch_points_kernels.pycache.points_cuda.cpython-36: module references file
creating dist
creating 'dist/torch_points_kernels-0.6.4-py3.6-linux-x86_64.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing torch_points_kernels-0.6.4-py3.6-linux-x86_64.egg
creating /home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/site-packages/torch_points_kernels-0.6.4-py3.6-linux-x86_64.egg
Extracting torch_points_kernels-0.6.4-py3.6-linux-x86_64.egg to /home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/site-packages
Removing torch-points-kernels 0.0.0 from easy-install.pth file
Adding torch-points-kernels 0.6.4 to easy-install.pth file
Installed /home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/site-packages/torch_points_kernels-0.6.4-py3.6-linux-x86_64.egg
Processing dependencies for torch-points-kernels==0.6.4
Searching for torch==1.1.0
Best match: torch 1.1.0
Adding torch 1.1.0 to easy-install.pth file
Installing convert-caffe2-to-onnx script to /home/dy113/anaconda3/envs/laiming_pytorch/bin
Installing convert-onnx-to-caffe2 script to /home/dy113/anaconda3/envs/laiming_pytorch/bin
Using /home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/site-packages
Searching for numpy==1.18.1
Best match: numpy 1.18.1
Adding numpy 1.18.1 to easy-install.pth file
Installing f2py script to /home/dy113/anaconda3/envs/laiming_pytorch/bin
Installing f2py3 script to /home/dy113/anaconda3/envs/laiming_pytorch/bin
Installing f2py3.6 script to /home/dy113/anaconda3/envs/laiming_pytorch/bin
Using /home/dy113/anaconda3/envs/laiming_pytorch/lib/python3.6/site-packages
Finished processing dependencies for torch-points-kernels==0.6.4
from torch-points-kernels.
Not sure what is going on here... The tests are running on pytorch 1.4 and 1.5 just fine, I have installed it in multiple places with those versions as well. So something is different in your setup but no idea what. Can you try to run the following commands in an empty folder?
python3 -m venv tpk-env source tpk-env/bin/activate pip install torch pip install torch-points-kernels
- Hello, I followed your instructions, but still can't install.Will you help me with this problem?
(randla) (base) rosa@2427-1:~/env$ pip install torch-points-kernels
Collecting torch-points-kernels
Using cached torch-points-kernels-0.6.4.tar.gz (32 kB)
Requirement already satisfied: torch>=1.1.0 in ./randla/lib/python3.7/site-packages (from torch-points-kernels) (1.5.0+cu101)
Requirement already satisfied: numpy in ./randla/lib/python3.7/site-packages (from torch>=1.1.0->torch-points-kernels) (1.18.5)
Requirement already satisfied: future in ./randla/lib/python3.7/site-packages (from torch>=1.1.0->torch-points-kernels) (0.18.2)
Using legacy setup.py install for torch-points-kernels, since package 'wheel' is not installed.
Installing collected packages: torch-points-kernels
Running setup.py install for torch-points-kernels ... error
ERROR: Command errored out with exit status 1:
command: /home/rosa/env/randla/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-9n2yqlb9/torch-points-kernels/setup.py'"'"'; file='"'"'/tmp/pip-install-9n2yqlb9/torch-points-kernels/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-ssqnrk10/install-record.txt --single-version-externally-managed --compile --install-headers /home/rosa/env/randla/include/site/python3.7/torch-points-kernels
cwd: /tmp/pip-install-9n2yqlb9/torch-points-kernels/
Complete output (23 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/torch_points_kernels
copying torch_points_kernels/torchpoints.py -> build/lib.linux-x86_64-3.7/torch_points_kernels
copying torch_points_kernels/knn.py -> build/lib.linux-x86_64-3.7/torch_points_kernels
copying torch_points_kernels/init.py -> build/lib.linux-x86_64-3.7/torch_points_kernels
running build_ext
/home/rosa/env/randla/lib/python3.7/site-packages/torch/utils/cpp_extension.py:304: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.
warnings.warn(msg.format('we could not find ninja.'))
building 'torch_points_kernels.points_cuda' extension
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/cuda
creating build/temp.linux-x86_64-3.7/cuda/src
gcc -pthread -B /home/rosa/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Icuda/include -I/home/rosa/env/randla/lib/python3.7/site-packages/torch/include -I/home/rosa/env/randla/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/rosa/env/randla/lib/python3.7/site-packages/torch/include/TH -I/home/rosa/env/randla/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda-10.1/include -I/home/rosa/env/randla/include -I/home/rosa/anaconda3/include/python3.7m -c cuda/src/ball_query.cpp -o build/temp.linux-x86_64-3.7/cuda/src/ball_query.o -O3 -DVERSION_GE_1_3 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=points_cuda -DTORCH_EXTENSION_NAME=points_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from cuda/include/utils.h:2:0,
from cuda/src/ball_query.cpp:3:
/home/rosa/env/randla/lib/python3.7/site-packages/torch/include/ATen/cuda/CUDAContext.h:5:30: fatal error: cuda_runtime_api.h: 没有那个文件或目录
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /home/rosa/env/randla/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-9n2yqlb9/torch-points-kernels/setup.py'"'"'; file='"'"'/tmp/pip-install-9n2yqlb9/torch-points-kernels/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-ssqnrk10/install-record.txt --single-version-externally-managed --compile --install-headers /home/rosa/env/randla/include/site/python3.7/torch-points-kernels Check the logs for full command output.
from torch-points-kernels.
From what I can tell 没有那个文件或目录 means that it cannot find a file. I think something might be not properly setup with CUDA. In principle you should have something like that:
$ python -c "import torch; print(torch.__version__)"
>>> 1.4.0
$ python -c "import torch; print(torch.__version__)"
>>> 1.1.0
$ echo $PATH
>>> /usr/local/cuda/bin:...
$ echo $CPATH
>>> /usr/local/cuda/include:...
If something is missing in CPATH or PATH then set it and try again.
from torch-points-kernels.
From what I can tell 没有那个文件或目录 means that it cannot find a file. I think something might be not properly setup with CUDA. In principle you should have something like that:
$ python -c "import torch; print(torch.__version__)" >>> 1.4.0 $ python -c "import torch; print(torch.__version__)" >>> 1.1.0 $ echo $PATH >>> /usr/local/cuda/bin:... $ echo $CPATH >>> /usr/local/cuda/include:...
If something is missing in CPATH or PATH then set it and try again.
thank you, I will try it!
from torch-points-kernels.
Closing for now as it is very likely coming from conflicts in CUDA versions and variables not being properly set.
from torch-points-kernels.
Related Issues (20)
- "CUDA error: No kernel image" still exists after reinstalling torch-points-kernels
- Fail to built HOT 1
- Probably you should update your installation tutorial timely. HOT 1
- Failed to install torch-points-kernels HOT 1
- ModuleNotFoundError: No module named 'torch_points_kernels.points_cuda' HOT 6
- Both batches need to have the same number of samples HOT 4
- Trouble compiling HOT 3
- Problem about the chamfer distance
- ERROR: Failed building wheel for torch-points-kernels HOT 1
- Failed building wheel and failed running setup.py HOT 4
- ImportError: torch_points_kernels/points_cpu.so: undefined symbol: _ZNK2at6Tensor4normEN3c108optionalINS1_6ScalarEEENS1_8ArrayRefIlEEb HOT 4
- I can‘t install this module successfully,what is the process? HOT 5
- if only torch-cpu, couldn't install this mould?
- poetry doesn't work HOT 1
- Create Conda Package HOT 10
- Numpy version HOT 7
- ModuleNotFoundError: No module named 'torch_points_kernels.points_cuda' HOT 2
- Contributing to versions to pypi HOT 3
- build torch-points-kernels HOT 1
- Getting CUDA arch error while building from source. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from torch-points-kernels.