TypeError: __init__() got an unexpected keyword argument 'decode'

This error is from aiortc's webcam example application. The core of this problem is that the pypi version is old, and git version is using new interface that is not available from pypi. So you need to install aiortc from git. If you just do pip install git+https://github.com/aiortc/aiortc.git and get this error:

  build/temp.linux-x86_64-cpython-39/aiortc.codecs._opus.c:570:10: fatal error: opus/opus.h: No such file or directory

    570 | #include <opus/opus.h>

        |          ^~~~~~~~~~~~~

  compilation terminated.

  error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1

  ----------------------------------------

  ERROR: Failed building wheel for aiortc


Комментарии

Популярные сообщения из этого блога

DOS атака при помощи Python

Взлом почты mail.ru live.com и yahoo.com

Как установить charlesproxy и настроить ssl на google chrome