-
Notifications
You must be signed in to change notification settings - Fork 422
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
libtensorflow_framework.so.2 cannot open #375
Comments
Hello, I will keep this open just in case you can provide a better solution. But for now I have solved the problem by manually installing missing libraries from the Tensorflow C lib and adding those |
I seem to have the same issue when trying to build a docker. It works fine on compiling but then at runtime crashes with Dockrfile is fairly simple: https://github.com/MTRNord/matrix-spam-ml/blob/1f40222d1723b7f59a053f2813518454944e2faf/Dockerfile |
It happened to me once because the download failed. It worked for me removing the directory with the shared library and repeating cargo build. |
Is there any updates on this? I can not get my project to work in a docker container due to this error. |
@day-mon Could you share your Dockerfile? |
I just fixed it by downgrading the tensorflow version |
Hi
I tried to make a new binary package in which I will have just the code from the example.
I made the package with
cargo new test_tf --bin
and inCargo.toml
I added tensorflow dependencytensorflow = { version = "0.19.0", features = ["eager"] }.
After this I made cargo build and tried cargo run but I keep getting this:
error while loading shared libraries:
libtensorflow_framework.so.2
: cannot open shared object file: No such file or directoryAnd I have libtensorflow_framework.so.2 under:
I do not know why is this happening, from what I have understood, this is a linker error, but the linking should be taken care of by tensorflow crate?
For what is worth, my OS is
Ubuntu 22.04.1 LTS
when I try to check shared dependencies, I get this:
For some reason there is no tensorflow lib in lib64 directory?
Should I install libs there manually or this should be done by
Tensorflow
crate?I checked the
target/build
directory and in there I can find these .so files:What could cause the linking problem?
The text was updated successfully, but these errors were encountered: