-
Notifications
You must be signed in to change notification settings - Fork 36
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
Import py_client fails for not provided libpython3.8.so.1.0 #30
Comments
Similar issue mentioned in #25 If using mkdir -p $CONDA_PREFIX/etc/conda/activate.d
mkdir -p $CONDA_PREFIX/etc/conda/deactivate.d
echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CONDA_PREFIX/lib/' > $CONDA_PREFIX/etc/conda/activate.d/env_vars.sh
echo 'unset LD_LIBRARY_PATH' > $CONDA_PREFIX/etc/conda/deactivate.d/env_vars.sh You can run the above after activating your |
I am not using conda but we use bazel to build our entire repository. As mentioned, I think if launchpad is built with python 3.8 or higher it should not require the shared library. Current path I am investigating is providing an empty libpython library. Which seems to be accepted. However, I am running into an issue with protobuf.
From discussions I found (e.g. https://groups.google.com/g/protobuf/c/6lFyIbbQZVA) it seems to be a problem when not linking against protobuf when compiling the proto. Any insights here? |
Hi, I am having the same issue has @mh-private - I am also running into the same issue.
If you could look into this, it would be much appreciated! |
So update from my side: I think the proto issue of undefined symbol, results from launchpad being built against a different version of tensorflow than the one I am using. So probably next week I will try to build against my tf and see whether that resolves the issue and post an update here. |
I had the same problem with the r0.5.2 branch. I figured out that tf version 2.8 causes that error. I upgraded to 2.9 and it worked. Created a PR for this. Master branch is broken though. |
@frederikschubert fix works for me and I can build against TF 2.12.0 and Reverb 0.11.0 successfully for Python 3.9. I put a pre-built wheel for py39 at https://github.com/ethanluoyc/launchpad/releases Personally, I enjoy using the few RL-related libraries from DM (reverb, envlogger, launchpad). One painful bit is when it doesn't work then building from source is painful, also the maintainers do not seem to be responsive to these things in the sense that even if sometimes we can fix these issues from a fork accepting the changes take a long time. |
Hi,
in my project I want to use dm-acme as rl framework. However, when importing e.g.
from acme.jax import experiments
I get an error for missing shared object filelibpython3.8.so.1.0
required from dm-launchpad.Error message:
After an internal discussion we concluded that python 3.8 C extensions are not supposed to ask for
libpython3.8.so.1.0
(This is also the conclusion in this thread).So my question is, whether launchpad is built with a shared library python? If this is the case, is this on purpose or could this be changed to be linked with a static one?
The text was updated successfully, but these errors were encountered: