Comments (7)
I think the key bit is:
ImportError: /lib/x86_64-linux-gnu/librsvg-2.so.2: undefined symbol: cairo_tag_end
First, what is your exact operating system?
from datoviz.
Also, what is your Python environment?
from datoviz.
I'm on Ubuntu 20.04.2 LTS and use Anaconda 4.9.2 with python 3.7.9
from datoviz.
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.
from datoviz.
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 option(DATOVIZ_WITH_FFMPEG "Build Datoviz with FFMPEG support" ON)
by option(DATOVIZ_WITH_FFMPEG "Build Datoviz with FFMPEG support" OFF)
. This will disable the screencast feature, but will also remove the broken librsvg dependency.
For future reference, here are the dependencies of Datoviz when ffmpeg support is OFF (Ubuntu 20.04):
$ ldd build/libdatoviz.so
linux-vdso.so.1 (0x00007ffdba957000)
libglfw.so.3 => /lib/x86_64-linux-gnu/libglfw.so.3 (0x00007efc65bc4000)
libvulkan.so.1 => /home/cyrille/vulkan/x86_64/lib/libvulkan.so.1 (0x00007efc6596f000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007efc6594c000)
libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x00007efc65914000)
libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007efc65733000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007efc655e2000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007efc655c7000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007efc653d5000)
/lib64/ld-linux-x86-64.so.2 (0x00007efc66024000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007efc653cf000)
libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007efc65292000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007efc65276000)
libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007efc6524a000)
libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007efc65244000)
libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007efc6523c000)
libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007efc65222000)
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.
from datoviz.
Thanks! Running the python script as follows works for me:
LD_PRELOAD=/lib/x86_64-linux-gnu/libcairo.so.2 python bindings/cython/examples/quickstart.py
from datoviz.
Great, thanks! Will update the install instructions for Anaconda users on Ubuntu.
from datoviz.
Related Issues (20)
- Problem running examples HOT 2
- The grid does not update when the zoom is changed with panel.set_lim
- feature-request : panzoom drag + key besides of drag + right click to zoom independently in X and Y HOT 5
- feature-request : export as svg or pdf HOT 9
- Total CUDA Vulkan Interop without CPU Overhead HOT 2
- Selecting which GPU to use HOT 1
- Error running Datoviz-test: python -c "import datoviz; datoviz.demo()" HOT 2
- can i integrate the datoviz to my pyqt5 or pyside2 project?? HOT 2
- Is Repo Still Active? HOT 2
- [Windows10] when install it with pip, Error : not a supported wheel on this platform HOT 1
- missing the 3D wavefield example HOT 1
- [Apple M1] Compile and pip errors: Generating _shaders.c ninja: build stopped: subcommand failed. HOT 5
- Datoviz expects to be top level CMake project HOT 2
- Datoviz demo showing pure white screen HOT 10
- Full list of public headers HOT 3
- making ipython optional HOT 12
- conda(-forge) package? HOT 8
- Drawing more than 50 images to a scene HOT 2
- Installation in sites-package missing when running `./manage.sh cython` HOT 4
- "cimported module has no attribute" when compiling with Cython 3.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from datoviz.