openai / roboschool

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

cpp_household: libpcre16.so.3 => not found #193

Open SolbiatiAlessandro opened 5 years ago

SolbiatiAlessandro commented 5 years ago

I am trying to install roboschool on a Google AI Platform instance.

I get the following error
from roboschool import cpp_household as cpp_household ImportError: libpcre16.so.3: cannot open shared object file: No such file or directory Unfortunately I can't ssh into the machine and can not give more detail on how to repro. I investigated a bit and running the command ldd cpp_household.so I see how the machine can not find libpcre16.so.3. Here is the output of the command:

I  master-replica-0     libicui18n.so.57 => /root/.local/lib/python3.5/site-packages/roboschool/.libs/libicui18n.so.57 (0x00007f91d39a2000) master-replica-0 
I  master-replica-0     libicuuc.so.57 => /root/.local/lib/python3.5/site-packages/roboschool/.libs/libicuuc.so.57 (0x00007f91d35d9000) master-replica-0 
I  master-replica-0     libpcre16.so.3 => not found master-replica-0 
I  master-replica-0     libdouble-conversion.so.1 => /root/.local/lib/python3.5/site-packages/roboschool/.libs/libdouble-conversion.so.1 (0x00007f91d33c8000) master-replica-0 
I  master-replica-0     libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f91d30b7000) master-replica-0 

I tried the following: apt-get install libpcre-3 And it tells me that libpcre3 is already the newest version (2:8.38-3.1).

Any idea on why I don't have this specific library? Any idea on how to fix it?

SolbiatiAlessandro commented 5 years ago

I tried apt-get install libpcre16-3 And I get E: Unable to locate package libpcre16-3

SolbiatiAlessandro commented 5 years ago

To give more context on the missing library: libpcre3

SolbiatiAlessandro commented 5 years ago

any idea on this?

ameenba commented 5 years ago

same troubles here - did you solve it?

SolbiatiAlessandro commented 5 years ago

Hi, I tried for two weeks but without success. I even opened an issue with my Google Cloud Support but they didn't reply. I am still trying, post here if you find a solution or some hint.

CommanderCero commented 5 years ago

So I installed roboschool just by using pip install roboschool. Then I got the same error and I fixed it with apt-get install libpcre3-dev, well partially...

SolbiatiAlessandro commented 5 years ago

@CommanderCero were you on google cloud? because it doesn't work for me

CommanderCero commented 5 years ago

@SolbiatiAlessandro

I've tested this on an Ubuntu 16 and 18 VM, aswell on an "actual" Ubuntu 18 OS and in all versions when i run pip install roboschool and afterwards try to import roboschool it throws ImportError: libpcre16.so.3: cannot open shared object file: No such file or directory

I've also managed to fix this issue in all version by installing libpcre3-dev. Well if it would really help solve the issue for other people is still questionable, as mentioned it still didn't work afterwards...

leoi137 commented 5 years ago

@CommanderCero were you on google cloud? because it doesn't work for me

I tried sudo apt-get install libpcre16-3 and it worked for me. Did you install the graphics library libgl1-mesa-dev? If you haven't I would try it using: sudo apt-get install libgl1-mesa-dev, I am not entirely sure if this will fix the problem as libpcre is a regular expressions engine.

zhan0903 commented 5 years ago

So I installed roboschool just by using pip install roboschool. Then I got the same error and I fixed it with apt-get install libpcre3-dev, well partially...

What if I don't have the root right to install libpcre3-dev, can I install it by conda or other methods?

bibbygoodwin commented 5 years ago

I'm also finding myself in a permission issue here - I'd been relying on a pip install roboschool working smoothly on a server I don't have sudo rights on. Are there alternative routes to installing these missing packages, or workarounds? I think the conda installation instructions here still suppose sudo access for library installations.

realjohnward commented 5 years ago

I tried sudo apt-get install libpcre16-3 and it worked for me. @leoi137 's solution worked for me.

andrei-radulescu-banu commented 3 years ago

It's still not installing properly. On Ubuntu 18.04.5, after installing libpcre16-3:

$ sudo apt-get install libpcre16-3
$ python -c "import roboschool"
Illegal instruction

On Centos 7, libpcre16.so.3 is not available as a package.

Does not work to install roboschool from sources either. That module is deprecated, it has been replaced by PyBullet.

On MacOS, get the following error:

$ ./bin/setup
Error: caskroom/cask was moved. Tap homebrew/cask instead.

I think it would help if we knew the exact Ubuntu version this is expected to work with. Even if it's an older Ubuntu, it could be run in a Docker container.

chaennlee commented 1 year ago

you did it? I cant solve that problem still..