-
Notifications
You must be signed in to change notification settings - Fork 25
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
Unable to load the shared library #8
Comments
I think the key bit is:
First, what is your exact operating system? |
Also, what is your Python environment? |
I'm on Ubuntu 20.04.2 LTS and use Anaconda 4.9.2 with python 3.7.9 |
Okay, I think this is the issue: https://stackoverflow.com/a/63305833/1595060 If I understand correctly, Anaconda overrides a system lib (librsvg) with its own, and the librsvg provided in Ubuntu 20.04 (used when compiling Datoviz) doesn't match the one provided by Anaconda (used when running Python). So you have to tell Python to use the system librsvg instead of the Anaconda one. The link above should provide some guidance, I'll try to find a more automated way to fix this. |
For the record, it seems this library is one of the many dependencies brought by ffmpeg when Datoviz is compiled with ffmpeg support (ffmpeg is only used by the integrated live screencast video feature, but it may also be used in the future if we ever implement a Video visual). So, you could also go in the CMakeLists.txt and disable compilation with ffmpeg by replacing For future reference, here are the dependencies of Datoviz when ffmpeg support is OFF (Ubuntu 20.04):
Note for future package managers: if creating a conda package, I guess you should make sure that you use the Anaconda ffmpeg and other libraries instead of the system libraries. |
Thanks! Running the python script as follows works for me: |
Great, thanks! Will update the install instructions for Anaconda users on Ubuntu. |
I'm at the last step of the installation but unfortunately I ran into another issue. When I run the python example it gives the error
I ran
source setup-env.sh
which is basically the command given in the error message, but when I run$LD_LIBRARY_PATH
it saysbash: :/home/guido/Repositories/datoviz/build: No such file or directory
However, this is the correct path so I don't understand why it can't find it.
The text was updated successfully, but these errors were encountered: