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.

Import failing on MacOS

See original GitHub issue

Hey Jeremy!

Not sure what is the best method to reach out to you, and hence opening an issue 😃 I have been trying to explore aiortc, and am trying to install the package from source on my MAC.

Even though the installation is successful when i run python setup.py install, the import seems to be failing, mainly because it is not able to find opus and vpx packages.

Traceback when I attempt to import on Python2 and Python3.6.2

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/satprasa/personal/Dropbox/My_MS_Notes/BU_learning/Algo/aiortc-electrowizard/aiortc/__init__.py", line 9, in <module>
    from .rtcpeerconnection import RTCPeerConnection  # noqa
  File "/Users/satprasa/personal/Dropbox/My_MS_Notes/BU_learning/Algo/aiortc-electrowizard/aiortc/rtcpeerconnection.py", line 8, in <module>
    from .codecs import MEDIA_CODECS
  File "/Users/satprasa/personal/Dropbox/My_MS_Notes/BU_learning/Algo/aiortc-electrowizard/aiortc/codecs/__init__.py", line 3, in <module>
    from .opus import OpusDecoder, OpusEncoder
  File "/Users/satprasa/personal/Dropbox/My_MS_Notes/BU_learning/Algo/aiortc-electrowizard/aiortc/codecs/opus.py", line 4, in <module>
    from ._opus import ffi, lib
ModuleNotFoundError: No module named 'aiortc.codecs._opus'

I have ensured that opus and libvpx are installed using brew. What am I missing? Appreciate the help!

Cheers, Sathvik aiortc_import_problem_dependencies.txt

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
jlainecommented, Jun 28, 2018

No idea for the OS X specifics, I suggest you ask for help on a generic Python forum, sorry.

I have opened issue #30 to track DTMF support. I don’t currently have a use for it but would welcome a PR as long as it comes with full unit tests.

0reactions
jlainecommented, May 2, 2020

If you have trouble building those third party packages I suggest you go seek help there.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix “Import Failed” Mail Error on Mac | OSXDaily
Quit out of Mail app if it's still open · Open the Finder in MacOS, then pull down the “Go” menu and choose...
Read more >
mail import failed os x 10.13 | Apple Developer Forums
Hello everyone,. I have installed OS X High Sierra on m iMac Retina 5K and apart some kernel panics I also get a...
Read more >
Mail App Says The Import Failed error on Mac in macOS Big Sur
Mail import fails repeatedly in macOS Big sur, How to fix The Import Failed mail error on mac, Mac mail import failed in...
Read more >
How To Fix “Import Failed” Email Errors On Mac - Apple
Quit the Mail app if it's still open · Open Finder in MacOS, then drag the “Go” menu and select “Go to Folder”...
Read more >
How to solve the error for import torch on macOs?
Check your interpreter (The python version you are using at the moment). To check the Python version in your Jupyter notebook, first import ......
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