0

I'm building python-aruco.[https://github.com/fehlfarbe/python-aruco/tree/aruco1.3.0] Installation succeeded. However, when you start up the sample, you get an error like this.

Traceback (most recent call last):
  File "example.py", line 5, in <module>
    import aruco
  File "/usr/local/lib/python3.5/dist-packages/aruco.py", line 28, in <module>
    _aruco = swig_import_helper()
  File "/usr/local/lib/python3.5/dist-packages/aruco.py", line 24, in swig_import_helper
    _mod = imp.load_module('_aruco', fp, pathname, description)
  File "/usr/lib/python3.5/imp.py", line 242, in load_module
    return load_dynamic(name, filename, file)
  File "/usr/lib/python3.5/imp.py", line 342, in load_dynamic
    return _load(spec)
ImportError: /usr/local/lib/python3.5/dist-packages/_aruco.cpython-35m-x86_64-linux-gnu.so: undefined symbol: _ZN5aruco5Debug8setLevelEi

The pass is be passed, but what is the problem?

enter image description here

Environment

  • ubuntu16.04
  • python3.5
  • aruco-3.0.11

terminal image

Taazar
  • 1,545
  • 18
  • 27
hello_nezumi
  • 35
  • 2
  • 9
  • Are you sure you pointed the build to appropriate Python header files? – sophros Nov 19 '18 at 13:41
  • @sophros Sorry, I do not know how to confirm..., but setup.py is completed, I think it's okay – hello_nezumi Nov 19 '18 at 14:46
  • First of all `python3.5 -V` will tell you the exact version of Python you are using. Then check `apt list --installed |grep libpython`. What is the version of the headers you are having. – sophros Nov 19 '18 at 14:52
  • And run `ldd /usr/local/lib/python3.5/dist-packages/_aruco.cpython-35m-x86_64-linux-gnu.so` to check the dependencies of the library. Maybe some of them are not satisfied and symlinks would do. – sophros Nov 19 '18 at 14:54
  • @sophros Thank you for the polite explanation. Screenshot added above. Looks like the link is satisfied? – hello_nezumi Nov 19 '18 at 15:04
  • Yes. All requirements seem to be satisfied. Sorry to say, I have no further ideas. – sophros Nov 19 '18 at 15:07
  • @sophros thank you comment, I work hard. – hello_nezumi Nov 19 '18 at 15:38

0 Answers0