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

error while loading shared libraries: libpython3.7m.so.1.0: cannot open shared object file: No such file or directory #280

Closed
meua opened this issue May 4, 2023 · 2 comments
Labels
bug Something isn't working daemon linux python Python API runtime rust

Comments

@meua
Copy link
Contributor

meua commented May 4, 2023

Describe the bug

(dora3.7) jarvis@jia:~/coding/rust_home/github.com/dora-rs/dora/binaries/daemon/src$ cargo run
   Compiling pyo3-build-config v0.18.2
   Compiling clap v4.1.11
   Compiling pyo3-ffi v0.18.2
   Compiling pyo3 v0.18.2
   Compiling arrow v35.0.0
   Compiling dora-node-api v0.2.2 (/home/jarvis/coding/rust_home/github.com/dora-rs/dora/apis/rust/node)
   Compiling dora-operator-api-python v0.2.2 (/home/jarvis/coding/rust_home/github.com/dora-rs/dora/apis/python/operator)
   Compiling dora-runtime v0.2.2 (/home/jarvis/coding/rust_home/github.com/dora-rs/dora/binaries/runtime)
   Compiling dora-daemon v0.2.2 (/home/jarvis/coding/rust_home/github.com/dora-rs/dora/binaries/daemon)
    Finished dev [unoptimized + debuginfo] target(s) in 9.55s
     Running `/home/jarvis/coding/rust_home/github.com/dora-rs/dora/target/debug/dora-daemon main.rs`
/home/jarvis/coding/rust_home/github.com/dora-rs/dora/target/debug/dora-daemon: error while loading shared libraries: libpython3.7m.so.1.0: cannot open shared object file: No such file or directory

To Reproduce
Steps to reproduce the behavior:

  1. Dora start daemon: cd /path/to/dora-rs/dora cargo run

Environments (please complete the following information):

  • System info: ubuntu 20.04
  • Dora version: main branch
@github-actions github-actions bot added bug Something isn't working daemon linux python Python API runtime rust labels May 4, 2023
@meua
Copy link
Contributor Author

meua commented May 4, 2023

Solve this problem reference link: google-deepmind/acme#47

 export LD_LIBRARY_PATH=/path/to/anaconda3/envs/dora3.7/lib

haixuanTao added a commit that referenced this issue May 4, 2023
…ncies

Previous implementation of the runtime would link `libpython` even though it
might not be required.

This commit put pyo3 dependency under a feature flag that is only active if
the runtime is called from python for a python operator.

This fix:
- https://github.com/dora-rs/dora/actions/runs/4879188973/jobs/8705515472
- #280 (comment)
- and dora-rs/dora-drives#58 (comment)
@haixuanTao
Copy link
Collaborator

closed by #281 that is going to be in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working daemon linux python Python API runtime rust
Projects
None yet
Development

No branches or pull requests

2 participants