openai / roboschool

DEPRECATED: Open-source software for robot simulation, integrated with OpenAI Gym.
Other
2.13k stars 488 forks source link

ImportError: libQt5OpenGL.so.5: cannot open shared object file: No such file or directory #212

Closed joshua-matt closed 3 years ago

joshua-matt commented 3 years ago

When I try to run python test_manual.py, I get the above error message, which is thrown in importing cpp_household_d on line 11 of scene_abstract.py. I see that the sought file is present in the .libs folder. I'm using Ubuntu 20.04; is there some package I need to install?

TheCrazyT commented 3 years ago

could be another missing dependency. I would do: ldd libQt5OpenGL.so.5 Inside the .libs folder to see if it shows any missing files.

joshua-matt commented 3 years ago

Here is the output. What do I do with this information? image

TheCrazyT commented 3 years ago

Looks ok, else it won't show the paths. Could you do the same for cpp_household_d.so please?

(If path is missing there you probably need to add the path of the .libs folder to the LD_LIBRARY_PATH environment variable, but not shure if it is really needed. I think "pip" should normaly install those libraries in a system folder, if I remember correctly.)

joshua-matt commented 3 years ago

Adding the .libs folder to LD_LIBRARY_PATH (in /etc/environment) fixed the problem! If anyone else has this issue, remember you have to log out and log back in to have changes to environment variables apply. I also needed the gym version to be 0.15.4.