google-deepmind / envlogger

A tool for recording RL trajectories.
Apache License 2.0
91 stars 13 forks source link

ImportError: libgmpxx.so.4: cannot open shared object file: No such file or directory #11

Closed artfawl closed 4 months ago

artfawl commented 4 months ago

Hello! I have an ImportError when I try to import envlogger. I get this error on my computer and in GoogleColab notebook. How can I resolve it?

kenjitoyama commented 4 months ago

Hello @artfawl, since compiling GMP from source via Blaze isn't supported, we rely on it being installed on the target system. Please see here: https://github.com/google-deepmind/envlogger?tab=readme-ov-file#compiling-from-source

In Colab, you'll still need GMP in place, and you can easily install it with: !apt install libgmp-dev.

I was able to reproduce your error without installing GMP, and after installing it and !pip install envlogger, I'm able to do import envlogger with no problems.

Let me know if this works for you, and if it does, please close the issue. Thanks!

artfawl commented 4 months ago

yeah, that worked, thank you