question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Raspberry Pi compatibility

See original GitHub issue

Had some issues using this on a Raspberry Pi 3 Model B+. The first issue is that the version of libsrtp2 in Debian Stretch is too old to support pylibsrtp which this repo depends on. I managed to fix this by installing the version of libsrtp2-dev from debian testing (buster) and mixing package sources. No big deal there.

The bigger issue with the raspberry pi is that the native aiortc.codecs._opus module is not generated in the version of aiortc that I installed with pip from PyPI. Attempts to import this package failed with error messages below [1]. I can confirm that the _opus.abi3.so (nor _vpx.abi3.so) file did not exist in the library folder where aiortc was installed when I used PIP. I had to build aiortc from source (and install tons of build dependencies like mesa and fontconfig to do it, even though this is not a graphical system), and that works just fine with the examples. Is there a bug with installing this package on ARM?

  • [1]
  File "cli.py", line 7, in <module>
    from aiortc import RTCPeerConnection
  File "/usr/local/lib/python3.5/dist-packages/aiortc/__init__.py", line 10, in <module>
    from .rtcpeerconnection import RTCPeerConnection  # noqa
  File "/usr/local/lib/python3.5/dist-packages/aiortc/rtcpeerconnection.py", line 8, in <module>
    from .codecs import MEDIA_CODECS
  File "/usr/local/lib/python3.5/dist-packages/aiortc/codecs/__init__.py", line 3, in <module>
    from .opus import OpusDecoder, OpusEncoder
  File "/usr/local/lib/python3.5/dist-packages/aiortc/codecs/opus.py", line 4, in <module>
    from ._opus import ffi, lib
ImportError: No module named 'aiortc.codecs._opus'```

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

4reactions
jlainecommented, Sep 5, 2018

I fired up a virtual Pi using Qemu and the latest Raspbian pi image, and:

  • apt install libsrtp2-dev (from buster, as you rightly pointed out the one in stretch is too old)
  • apt install libffi-dev libopus-dev libvpx-dev (stretch version is fine)
  • pip3 install aiortc

I was very surprised to see:

Collecting aiortc
  Downloading https://www.piwheels.org/simple/aiortc/aiortc-0.9.6-py3-none-any.whl (52kB)
    100% |████████████████████████████████| 61kB 53kB/s

It looks as though piwheels is doing something wrong, it’s shipping a supposedly version and arch independent wheel - which can’t be right since aiortc builds two binary extensions.

The situation is frustrating, we definitely want to use piwheels for aiortc’s dependencies (hello numpy and opencv) but apparently not for aiortc itself. I can’t tell yet whether I did something wrong in aiortc’s setup.py or whether piwheels is doing something wrong.

3reactions
jlainecommented, Sep 9, 2018

Thanks to @bennuttall and @waveform80 you can now install aiortc and its dependencies directly in wheel format for Raspberry Pi. Go do something cool @willmtemple and blog about it 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Raspberry Pi Compatibility - Ubuntu MATE
Supported Raspberry Pi Models ; Raspberry Pi Zero, 512 MB, ARMv6 ; Raspberry Pi Zero W · 512 MB, ARMv6 ; Raspberry Pi...
Read more >
Raspberry Pi OS | Compatible with: | All Raspberry Pi models
It's perfectly okay to install the Raspberry Pi OS with Desktop on any Pi including the older and original versions. I have installed...
Read more >
Yodeck Raspberry Pi Compatibility Chart
Model Memory CPU cores Max resolution Ethernet WiFi Status Raspberry Pi 4B 8GB 4 2160p (4K) ✔️ ✔️ Recommended Raspberry Pi 4B 4GB 4 2160p...
Read more >
Raspberry Pi Alternatives (clones) 2022 - Pallav Aggarwal
Raspberry Pi Alternatives (clones) 2022 · 1. Asus Tinker Board · 2. Aeon UP Board · 3. BananaPi BPI-M4 · 4. Orange Pi...
Read more >
RPi SD cards - eLinux.org
Manufacturer Type Size Class ok 7DAYSHOP.CzOM SDHC 8 10 nok Acumem SDHC 8 6 nok Adata SDHC 2 ?
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found