PyRep: running headless error

hello ,after installing pyrep,i run headless,my code is : sudo apt-get install xvfb xvfb-run python3 examples/example_baxter_pick_and_pass.py

but i get an error : ImportError: /home/xiximu/anaconda3/envs/pyrep_env/lib/python3.6/site-packages/pyrep/backend/_sim_cffi.cpython-36m-x86_64-linux-gnu.so: undefined symbol: simAddLog

i do not know what i should do then i can solve this problem .thank you !

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 16 (9 by maintainers)

Most upvoted comments

in terminal ,i can correctly run and i do not meet any errors.but in pycharm,i still have the error.

You are getting the error in pycharm because you are running the program from the pyrep root. When running from the pyrep root, it will instead use the local uninstalled version, which is not what you want. See: https://github.com/stepjam/PyRep#troubleshooting)

i meet the same problem while running the program outside the pyrep root. the true reason is that in terminal we have set the environment variables of LD_LIBRARY_PATH, COPPELIASIM_ROOT and QT_QPA_PLATFORM_PLUGIN_PATH in ~/.bashrc, but in Pycharm which is not set by default. by setting these environment variables in Pycharm>RUN>Edit Configurations>Environment variables, the problem has been fixed.