Closed brisbaneroboticsclub closed 4 years ago
Yup, from the original Readme by Scott Lawson:
Visualization code is compatible with Python 2.7 or 3.5
PyAudio is a third-party dependency and should also be Python 3 compatible. What problems are you running into?
I have installed libraries (scipy/pyaudio), strandtest works. have edited both config files. have edited config.py. I get this error. I am using a pi zero and using the micro usb with a mic.
pi@raspberrypi:~/dancyPi-audio-reactive-led/python $ sudo python3 visualization.py spectrum
Traceback (most recent call last):
File "visualization.py", line 377, in
Sorry for the delay @brisbaneroboticsclub. It took me a while to replicate this but I was finally able to. I'm going to work on fixing the repo at some point but in your instance if you're still getting that error, make this change:
In line 107 of led.py (), numpy is sending the wrong type, so change that line to this:
strip._led_data[i] = int(rgb[i])
That should fix the TypeError. Good luck!
Actually you can ignore my last response because you were a month ahead of me! I just saw your commit in the latest changes in Scott's repo: https://github.com/naztronaut/dancyPi-audio-reactive-led/commit/cd2ba168efc6e0a93b8961ff44de38eac4b28a2d#diff-d50483273ef30bee89008e0ea5304265
I merged it in earlier into a separate branch.
Great work!
I'm having problems install pyaudio. I had similar problems installing SciPy.... is this Python3 compatible?