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

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

Open
SolbiatiAlessandro opened this issue Jun 9, 2019 · 14 comments
Open

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

SolbiatiAlessandro opened this issue Jun 9, 2019 · 14 comments

Comments

@SolbiatiAlessandro
Copy link

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

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

@SolbiatiAlessandro
Copy link
Author

To give more context on the missing library: libpcre3

@SolbiatiAlessandro
Copy link
Author

any idea on this?

@ameenba
Copy link

ameenba commented Jul 1, 2019

same troubles here - did you solve it?

@SolbiatiAlessandro
Copy link
Author

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

CommanderCero commented Jul 4, 2019

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

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

@CommanderCero
Copy link

CommanderCero commented Jul 10, 2019

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

leoi137 commented Jul 19, 2019

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

zhan0903 commented Aug 4, 2019

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

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

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

@andrei-radulescu-banu
Copy link

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

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

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

9 participants