pydart2 icon indicating copy to clipboard operation
pydart2 copied to clipboard

Unable to import pydart2

Open edwardcen opened this issue 5 years ago • 2 comments

I am using a conda virtualenv and am running into issues with import pydart2 on Ubuntu 16.04.

from . import pydart2_api as papi
ImportError: cannot import name 'pydart2_api'

As per https://github.com/sehoonha/pydart2/issues/12, I have tried:

  1. virtualenvs in python 3.5, 3.6, 3.7
  2. install dartsim in 6.2.0, 6.3.0, 6.3.1, 6.8.2
  3. installing pydart2 via pip and building from source files
  4. setting export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/lib:/usr/lib:/usr/local/lib per https://github.com/sehoonha/pydart2/issues/17

I also tried installing dart from apt-get, but get a very long build error when running python setup.py build as in https://github.com/purdue-biorobotics/flappy/issues/2.

Interestingly, the error messages are different for using dartsim 6.2 and 6.3 Though I can find no specific preference for 6.3.0, when using 6.2.0, the import error is

ImportError: libdart.so.6.3: cannot open shared object file: No such file or directory

while when using 6.3.0 or 6.3.1, the error message is

ImportError: /usr/local/lib/libdart.so.6.3: undefined symbol: _ZNK5boost9re_detail31cpp_regex_traits_implementationIcE9transformB5cxx11EPKcS4_

Thanks!

edwardcen avatar Oct 03 '19 04:10 edwardcen

Same problem. Has anyone figured it out? Thanks!

chenxgu avatar Mar 05 '20 18:03 chenxgu

Same problem

Ericcsr avatar Jan 09 '22 12:01 Ericcsr