Closed xxx-007 closed 3 years ago
Did you set this line: https://github.com/stepjam/PyRep/blob/master/examples/example_baxter_pick_and_pass.py#L18
to
pr.launch(SCENE_FILE, headless=True)
?
no ,i do not , l only run xvfb-run python3 examples/example_baxter_pick_and_pass.py
in terminal, then i meet the error.
and i also try pr.launch(SCENE_FILE, headless=True)
,but when i run at from pyrep import PyRep
,i meet other error :ImportError: libcoppeliaSim.so.1: cannot open shared object file: No such file or directory
headless mode means you do not have a gui interface. simulation run in terminal. so you have to set headless = True
i set headless=True
,but i still have the error :ImportError: libcoppeliaSim.so.1: cannot open shared object file: No such file or directory
,my code can not run at from pyrep import PyRep
,there is a image:
Could you also try:
cd example
python3 example_baxter_pick_and_pass.py
that also cannot solve my problem.now the condition is this : if i run in terminal ,there is a error:
if i run in pytharm ,there is another error:
i do not know how to solve those two problems.
Is your Coppelia has the newest version? The current version is 4.1
This to me looks like a PyRep-CoppeliaSim version mismatch. What version of PyRep and CoppeliaSim are you using? Also, can you run the following:
echo $LD_LIBRARY_PATH // $COPPELIASIM_ROOT // $QT_QPA_PLATFORM_PLUGIN_PATH
vrep is CoppeliaSim_Edu_V4_0_0_Ubuntu16_04
PyRep is version='4.1.0'
Please update your CoppeliaSim
after updating,vrep is CoppeliaSim_Edu_V4_1_0_Ubuntu16_04
my code is
but there still have the error
What happens when you run from terminal?
cd example
python3 example_baxter_pick_and_pass.py
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)
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.
You can now do GPU rendering: https://github.com/stepjam/PyRep/blob/master/README.md#running-headless
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 !