Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
alec-tschantz opened this issue Oct 5, 2019 · 5 comments
Closed

Comments

@alec-tschantz
Copy link

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
Copy link
Author

alec-tschantz commented Oct 5, 2019

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
Copy link

pdeubel commented Oct 9, 2019

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
Copy link

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
Copy link
Author

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
Copy link

lhxxxxx commented Nov 24, 2023

but how can I install roboschool 1.0.48 in pycharm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants