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

Python wrapper fails upon import #14

Open
generalizedeigenvector opened this issue May 5, 2020 · 6 comments
Open

Python wrapper fails upon import #14

generalizedeigenvector opened this issue May 5, 2020 · 6 comments

Comments

@generalizedeigenvector
Copy link

I compiled and installed the C++ and then Python according to instructions and when I finally do import minisam I get this error:


ImportError Traceback (most recent call last)
in
----> 1 import minisam

~/anaconda3/lib/python3.7/site-packages/minisam/init.py in
1
2 # wrapped c++ module
----> 3 from . _minisam_py_wrapper import *
4
5

ImportError: /home/maintenance/anaconda3/lib/python3.7/site-packages/minisam/_minisam_py_wrapper.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _Z13wrap_geometryRN8pybind116moduleE

What am I missing?

@Limzui
Copy link

Limzui commented Nov 2, 2020

Did you manage to solve this? I am also getting this error

@streamB
Copy link

streamB commented Nov 21, 2020

Same error here, does anyone has a solution?

@stoutheo
Copy link

After you have done all the cmake and make commands.
Can you go into the build folder and try to execute with your virtual environment (activated) : python3 setup.py

Then, start python3 and and try to import minisam
do you still get the error?

@wanderingcar
Copy link

wanderingcar commented Feb 18, 2021

I'm having same problem, too.
With Python 3.9 in Windows, it works.But with Python 3.6 in Ubuntu, it shows error same with above.

@motiv-ncb
Copy link

I saw the same thing and was finally able to import minisam in Python without seeing the undefined symbol error by installing an older version of Sophus (commit a0fe89a323e20c42d3cecb590937eb7a06b8343a) and then re-installing minisam. This is Ubuntu 18.04 on an ARM64 (Jetson Xavier NX) by the way.

@Lishen1
Copy link

Lishen1 commented Nov 23, 2021

you have to compile with Sophus dependency. without it doesn't work.

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

7 participants