fehlfarbe / python-aruco

Python wrappers for ArUco library
Other
67 stars 16 forks source link

Fix iterator problem with Python and make the Python3 instructions more clear #15

Closed programmin1 closed 7 years ago

programmin1 commented 7 years ago

This describes how I got this working with Python3 on Ubuntu. There are actually some iterator problems with the swig generated bindings but you can get around that. The instructions should be more clear on how to install the required libraries too.

fehlfarbe commented 7 years ago

Thanks for your pull request! I just merged the changes in the README file and fixed the python3 problem in aruco.i interface file. The python2/3 switch seems to be broken so the python3 VectorIterator was overwritten by incompatible python2 VectorIterator (see: https://stackoverflow.com/questions/28246107/type-error-iter-python3). I replaced it by a version that should be compatible with python 2 & 3.

fehlfarbe commented 7 years ago

Ah and I also edited README.md in 2377711 I think it's better to use export LD_LIBRARY_PATH=/usr/local/lib/:$LD_LIBRARY_PATH. This adds the additional path on the front and doesn't overwrite other paths in the list :)