-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
index out of range error (might be related to #47) #53
Comments
i have the same error, with clean ubuntu 16.04, install all dependencies, clean git clone, same error |
@gaijinsr I got it working on my pi3, I was getting the same error as you and I made a few changes to make it work for me (My setup does differ as I'm using rasparian and shairport-sync as an input).
let me know if that works. |
@lpearl: Great, I'd like to try this, but are you sure about the line number? In my main.py, c.f. |
@gaijinsr My bad I meant after 857. From what I could tell when looking at the code it's trying to pick a device on the list of devices with an index of x (x being whatever index the device chosen is). x is in a list and instead of picking the position the device is in (in the list), it asks for the index at a position of the index which makes no sense. so adding that code should fix it. There is definitely a more efficient way of fixing it but I don't want to delete any of the code that's already there. |
@lpearl Didn't work for me. Any advice?
|
@gaijinsr What error did you get? How are you giving the devices an audio input? What system are you running Ubuntu on? |
@lpearl Great, this worked for me!! |
I change the code and I got this
Traceback (most recent call last):
File "main.py", line 831, in <module>
class Microphone():
File "main.py", line 858, in Microphone
for i in range(len(self.devices)):
NameError: name 'self' is not defined
…On Wed, Jan 30, 2019, 11:53 AM lpearl ***@***.*** wrote:
@gaijinsr <https://github.com/gaijinsr> What error did you get? How are
you giving the devices an audio input? What system are you running Ubuntu
on?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#53 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/As6sG4WZFe_DCEFQL4BlRG3NO6pN4Lwdks5vIdwngaJpZM4YvsVV>
.
|
Hi,
running on Ubuntu 18.04, without jackd running (audio-reactive-led-strip works great like this, btw), I get
With jackd running, I get
and the window freezes and uses 100% CPU. Any idea what is happening here?
By the way, I patched audio-reactive-led-strip to send output in the format of Systematic-LEDs
because I have a WS2811 strip and some WS2801 strips that are not supported by the libraries
used in the ESP8266 code in audio-reactive-led-strip. Tell me if you are interested in the code
(I did not post it because I thought you consider audio-reactive-led-strip dead.)
The text was updated successfully, but these errors were encountered: