Python import sounddevice as sd (ImportError: No module name sounddevice)
See original GitHub issueI have python code that is running on raspberry pi B++ that uses the sounddevice library that lets you play and record sounds with python. I have successfully installed the modules. I can confirm through the python command line and enter import sounddevice as sd is works without errors. I have also confirmed by typing help ('modules')
in python command line and sounddevice module appears. Only when I am running this code in an independent python program does the ImportError: No module name sounddevice
appear.
Hope some one can help.
Here is the included code:
import sounddevice as sd
The error:
ImportError: No module name sounddevice
Issue Analytics
- State:
- Created 8 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Python import sounddevice as sd (ImportError: No module ...
Only when I am running this code in an independent python program does the ImportError: No module name sounddevice appear.
Read more >Pyaudio (ImportError: No module name sounddevice)
I have successfully installed the modules. I can confirm through the python command line and enter import sounddevice as sd is works without...
Read more >Python import sounddevice as sd (ImportError - iTecNote
Only when I am running this code in an independent python program does the ImportError: No module name sounddevice appear. Hope some one...
Read more >ImportError: No module named sounddevice - SamplerBox
Hi,. I try to build sampler box but i have an error when i try to run this command: python samplerbox.py.
Read more >python-sounddevice, version 0.3.14 - Read the Docs
If NumPy is not available, you can use a `RawOutputStream`. ... somewhat like this: >>> import sounddevice as sd >>> sd.query_devices() 0 HDA...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
$ pip freeze cffi==1.5.2 Pillow==3.1.1 PyAudio==0.2.9 pycparser==2.14 sounddevice==0.3.2
I show all of the above modules installed, using pip freeze, but I still get this same error
import sounddevice as sd The error: ImportError: No module name sounddevice
@GarrettHartley No problem, I know it can be confusing to handle those different versions. I’m glad that it works now for you.
@Tondy Any news from your side?