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

ImportError #4

Open
JuanDuGit opened this issue Feb 25, 2020 · 5 comments
Open

ImportError #4

JuanDuGit opened this issue Feb 25, 2020 · 5 comments

Comments

@JuanDuGit
Copy link

Hi, thanks for sharing the code. I have compiled and installed this module successfully, but encountered the following ImportError when trying import it in python script.

>>> import PCLKeypoint Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: dynamic module does not define module export function (PyInit_PCLKeypoint)
I am using Ubuntu 18.04.3 LTS and the python version is 3.6.9.

Do you possiblly have any ideas how to fix this problem?

@lijx10
Copy link
Owner

lijx10 commented Feb 27, 2020

I have no clue why this happens. Maybe you can post your compilation results here? One more thing, importing the module at its directory may cause error. For example, running python; import pclkeypoint in the directory of pclkeypoint or the parent directory of pclkeypoint may cause errors.

@ngthanhtin
Copy link

I have also run into this problem. Did you fix this issue? if yes could you please help me?

@JuanDuGit
Copy link
Author

@ngthanhtin I suspect the issue happens at the link time. I temporily fixed this by using py2 isntead of py3. Probably not the most right thing to do, but worked for me

@ybbbbt
Copy link

ybbbbt commented May 19, 2020

It seems that the installed PCL has been linked to the python2, which may include /usr/include/python2.7 (you can find this in PCLKeypoint_LIB_DEPENDS from CMakeCache.txt ).
So I recompile the PCL 1.11.0, and the problem has gone.

@patrick100
Copy link

patrick100 commented Jul 19, 2020

It seems that the installed PCL has been linked to the python2, which may include /usr/include/python2.7 (you can find this in PCLKeypoint_LIB_DEPENDS from CMakeCache.txt ).
So I recompile the PCL 1.11.0, and the problem has gone.

this worked for me I installed pcl with sudo apt install libpcl-dev instead I compile PCL 1.11.0 on ubuntu 18.04 and problem solve

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

5 participants