not-matt / Systematic-LEDs

Audio reactive, all in one, room lighting for your computer.
MIT License
100 stars 35 forks source link

Python error using pyaudio #69

Closed richyxi closed 5 years ago

richyxi commented 5 years ago

I got this error errno -9996] invalid input device (no default output device) somebody has any clue

Maerchensarg commented 5 years ago

Can confirm this. GUI pops up for a seconds and quits:

(RGB) C:\Users\STFU\Desktop\Systematic-LEDs-master\Systematic-LEDs-master\python>python main.py Could not find settings.ini No user colours found No user gradients found Traceback (most recent call last): File "main.py", line 2046, in microphone = Microphone(microphone_update) File "main.py", line 842, in init device_info = py_audio.get_device_info_by_host_api_device_index(0,i) File "C:\Users\STFU\Anaconda2\envs\RGB\lib\site-packages\pyaudio.py", line 852, in get_device_info_by_host_api_device_index host_api_device_index) OSError: [Errno -9996] Invalid device

richyxi commented 5 years ago

Maybe because u re using anaconda 2 environment, try using anaconda 3 with python 3.6 to see different results

On Sun, Feb 3, 2019, 8:57 AM Maerchensarg <notifications@github.com wrote:

Can confirm this. GUI pops up for a seconds and quits:

(RGB) C:\Users\STFU\Desktop\Systematic-LEDs-master\Systematic-LEDs-master\python>python main.py Could not find settings.ini No user colours found No user gradients found Traceback (most recent call last): File "main.py", line 2046, in microphone = Microphone(microphone_update) File "main.py", line 842, in init device_info = py_audio.get_device_info_by_host_api_device_index(0,i) File "C:\Users\STFU\Anaconda2\envs\RGB\lib\site-packages\pyaudio.py", line 852, in get_device_info_by_host_api_device_index host_api_device_index) OSError: [Errno -9996] Invalid device

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/not-matt/Systematic-LEDs/issues/69#issuecomment-460058829, or mute the thread https://github.com/notifications/unsubscribe-auth/As6sG6mAS18AduTsbCW2PqWV0eY6qLOBks5vJvjbgaJpZM4afR4p .

Maerchensarg commented 5 years ago

Thank you. It works with Anaconda 3. Sorry for the inconvenience.

richyxi commented 5 years ago

Don't worry bro

On Sun, Feb 3, 2019, 12:41 PM Maerchensarg <notifications@github.com wrote:

Thank you. It works with Anaconda 3. Sorry for the inconvenience.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/not-matt/Systematic-LEDs/issues/69#issuecomment-460076808, or mute the thread https://github.com/notifications/unsubscribe-auth/As6sG_84UL_R9j5WHay-g2iXfW6by55dks5vJy12gaJpZM4afR4p .