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.

Python import sounddevice as sd (ImportError: No module name sounddevice)

See original GitHub issue

I 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:closed
  • Created 8 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
GarrettHartleycommented, Mar 29, 2016

$ 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

0reactions
mgeiercommented, May 31, 2016

@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?

Read more comments on GitHub >

github_iconTop 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 >

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