aiortc / aiortc

WebRTC and ORTC implementation for Python using asyncio
BSD 3-Clause "New" or "Revised" License
4.27k stars 764 forks source link

librsvg ERROR on aiortc/examples/server #352

Closed Sanix-Darker closed 4 years ago

Sanix-Darker commented 4 years ago

After following steps on the README and launch python server.py, am getting this error :

Traceback (most recent call last):
  File "server.py", line 11, in <module>
    from av import VideoFrame
  File "/home/d4rk3r/.local/lib/python3.7/site-packages/av/__init__.py", line 9, in <module>
    from av._core import time_base, pyav_version as __version__, library_versions
ImportError: /lib/x86_64-linux-gnu/librsvg-2.so.2: undefined symbol: cairo_tag_end

How can i fix it please ? Am on Debian 10 Buster !

jlaine commented 4 years ago

Please reinstall in a clean virtual environment, or at the very least clear out your ~/.local/lib/python3.7 which apparently contains some bad packages.

Sanix-Darker commented 4 years ago

ok...i found how to fix it :

apt install libavdevice-dev libavfilter-dev libopus-dev libvpx-dev pkg-config
apt-get install libsrtp2-dev

And running python server.py as root !

======== Running on http://0.0.0.0:8080 ========
(Press CTRL+C to quit)
jlaine commented 4 years ago

For the packages to install, yes this is documented in the README, maybe read it next time.

There is absolutely no reason to run the process as root.