-
Notifications
You must be signed in to change notification settings - Fork 319
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
Error occurs when I install pygicp using Python3... (ImportError) #66
Comments
It seems the package was installed to your python2 environment. Try the following installation command (don't forget "3" after python) python3 setup.py install --user |
I had this issue too, seems like pcl introduces a dependency on /usr/bin/python2.7 as mentioned here and here. To check if this is what is causing your issues, take a look at the build/temp./Cmakefiles/pygicp.dir/flags.make, you should find -I /usr/bin/python2.7 . As a temporary workaround, two approaches worked for me
|
Approache 1 worked, but it should be renaming |
This is not working for me. import pygicp |
I can confirm this was also the case for me. |
Your C++ code compiles without any error! All ok!
Then when i install pygicp, no error again.
creating build/bdist.linux-x86_64/egg
copying build/lib.linux-x86_64-3.8/libfast_gicp.so -> build/bdist.linux-x86_64/egg
copying build/lib.linux-x86_64-3.8/pygicp.cpython-38-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/egg
creating stub loader for pygicp.cpython-38-x86_64-linux-gnu.so
byte-compiling build/bdist.linux-x86_64/egg/pygicp.py to pygicp.cpython-38.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying pygicp.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying pygicp.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying pygicp.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying pygicp.egg-info/not-zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO
copying pygicp.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
creating 'dist/pygicp-0.0.1-py3.8-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 pygicp-0.0.1-py3.8-linux-x86_64.egg
creating /home/hyx/miniconda3/envs/slam/lib/python3.8/site-packages/pygicp-0.0.1-py3.8-linux-x86_64.egg
Extracting pygicp-0.0.1-py3.8-linux-x86_64.egg to /home/hyx/miniconda3/envs/slam/lib/python3.8/site-packages
Adding pygicp 0.0.1 to easy-install.pth file
Installed /home/hyx/miniconda3/envs/slam/lib/python3.8/site-packages/pygicp-0.0.1-py3.8-linux-x86_64.egg
Processing dependencies for pygicp==0.0.1
Finished processing dependencies for pygicp==0.0.1
But when i import pygicp in Python3, error occurs.
But when i install it using Py2, everything is ok.
So,
How can I fix this Python3 import error?
Thanks a lot!
The text was updated successfully, but these errors were encountered: