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.

No device detected on Linux

See original GitHub issue

On my Linux system, sounddevice does not detect any devices:

import sounddevice as sd
sd.query_devices()

produces an empty output.

My setup: Python: 3.6.0 Name: sounddevice Version: 0.3.7 Name: cffi Version: 1.9.1 Name: PortAudio Version: 19 (installed with anaconda)

On Windows (on the same machine), sounddevice works fine

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:25 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
mgeiercommented, Jul 11, 2017

@danigamba Good to hear that it works now! I hope this problem will be fixed properly by the Anaconda people …

1reaction
drammockcommented, Apr 5, 2019

Here is what worked for me on a laptop running Xubuntu 18.04, with a conda-managed python environment:

sudo apt install libportaudio2  # probably it is already installed, but if not this is how to do it
conda install python-sounddevice  # this installed a conda version of portaudio as a dependency
conda uninstall --force portaudio  # the --force flag prevents it from removing sounddevice too

after that sounddevice worked normally.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Linux USB Not Detected or Not Working? 5 Common Issues ...
USB Device Not Working in Ubuntu? · Confirm the USB port is detected · Make any necessary repairs to the port · Fix...
Read more >
What to do if Linux does not detect a USB device?
Confirm that the USB port is detected · Make the necessary repairs in the port. · Fix or repair USB devices · Restart...
Read more >
[SOLVED] optirun fails with "No devices detected" after kernel ...
I initially installed Bumblebee following the Archlinux wiki instructions [0] and everything worked fine. After upgrading my kernel (linux ...
Read more >
OpenOCD Troubleshooting: Device Not Found (Linux)
OpenOCD Troubleshooting: Device Not Found (Linux) · Step 1: Make Sure the Device is Connected · Step 2: Check your Driver Messages ·...
Read more >
USB Stick Device not detected as a disk on Linux, but in ...
After disconnect from VM the host Ubuntu could detect and mount automatically the usb. If I unplug the usb device and try to...
Read more >

github_iconTop Related Medium Post

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