openai / roboschool

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

ImportError: cannot import name 'cpp_household' [Google Colab] #207

Closed alec-tschantz closed 5 years ago

alec-tschantz commented 5 years ago

Using !pip install roboschool and then import roboschool on a Google Colab .ipynb throws:

/usr/local/lib/python3.6/dist-packages/roboschool/__init__.py in <module>() --> 112 from roboschool.gym_pendulums import RoboschoolInvertedPendulum

/usr/local/lib/python3.6/dist-packages/roboschool/gym_pendulums.py in <module>() ----> 1 from roboschool.scene_abstract import SingleRobotEmptyScene

/usr/local/lib/python3.6/dist-packages/roboschool/scene_abstract.py in <module>() ---> 12 from roboschool import cpp_household as cpp_household ImportError: cannot import name cpp_household

This has only started occurring today - the same notebooks ran without errors yesterday. I have tried installing a previous version of roboschool (1.0.48), as (1.0.49) was committed yesterday, but the same import error is thrown.

I notice a couple of related issues were raised recently (#203 & #202) but raising a separate issue due to the ease of reproducing on Colab.

alec-tschantz commented 5 years ago

After resetting runtimes, the full error import error is:

ImportError: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.28 not found (required by /usr/local/lib/python3.6/dist-packages/roboschool/.libs/libQt5Core.so.5)

On Google Colab, can confirm GLIBC 2.27 (not 2.28) is installed (!ldd --version -> (Ubuntu GLIBC 2.27-3ubuntu1) 2.27

Stack Overflow has some suggestions for upgrading GLIBC, but it is non-trivial on Colab.

Any suggested workarounds?

pdeubel commented 5 years ago

I had the exact same issue as you with version 1.0.49, but it went away when I installed 1.0.48. Maybe you can try that again, perhaps it did not refresh your version of roboschool or something like that.

AkhilSinghRana commented 5 years ago

I had the exact same issue as you with version 1.0.49, but it went away when I installed 1.0.48. Maybe you can try that again, perhaps it did not refresh your version of roboschool or something like that.

Perfect

alec-tschantz commented 5 years ago

I had the exact same issue as you with version 1.0.49, but it went away when I installed 1.0.48. Maybe you can try that again, perhaps it did not refresh your version of roboschool or something like that.

Great - !pip install roboschool==1.0.48 does indeed work. Restarting the kernel doesn't clear installed packages, which makes sense in hindsight. Thank you very much.

lhxxxxx commented 12 months ago

but how can I install roboschool 1.0.48 in pycharm