Comments (31)
Think this is fixed now, could you test in the new pull request? "minor fixes"
from systematic-leds.
Getting almost the same error as @Neophytez:
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 2013, in <module>
microphone = Microphone(microphone_update)
File "main.py", line 834, in __init__
self.setDevice(self.default_device_id)
File "main.py", line 845, in setDevice
self.device_id = self.devices[device_id]["index"]
IndexError: list index out of range
Steps to reproduce:
- Clone the repo
- Try to run main.py
Additional information:
- OS: macOS X 10.11
- Python version: 3.7.0
- PyQt5 version: 5.11.2
from systematic-leds.
Python 3.6 would be best for this fork, 2.X is not supported, scottlawsonbc/audio-reactive-led-strip does work on 2.X afaik. Only tutorial is curently scottlawsonbc's, although Google is of great help as well (WS2812B strips are pretty well documented). We can try and help you out here if you have any questions, though.
from systematic-leds.
When running sudo python3 main.py:
Traceback (most recent call last):
File "main.py", line 1436, in
microphone.start_stream(microphone_update)
File "/home/pi/Systematic-LEDs/python/lib/microphone.py", line 34, in start_st ream
callback(y)
File "main.py", line 1352, in microphone_update
boards[board].show(outputs[board])
File "/home/pi/Systematic-LEDs/python/lib/devices.py", line 258, in show
self.strip._led_data[i] = rgb[i]
File "/usr/local/lib/python3.5/dist-packages/rpi_ws281x-1.0.0-py3.5-linux-armv 7l.egg/neopixel.py", line 49, in setitem
return ws.ws2811_led_set(self.channel, pos, value)
TypeError: in method 'ws2811_led_set', argument 3 of type 'uint32_t'
When running sudo python main.py:
File "main.py", line 1109
for key, label, ui_element, *opts in visualizers[self.board].dynamic_effects _config[effect]:
^
SyntaxError: invalid syntax
When running python3 main.py:
Can't open /dev/mem: Permission denied
Traceback (most recent call last):
File "main.py", line 1403, in
dma=config.settings["devices"][board]["configuration"]["LED_DMA"])
File "/home/pi/Systematic-LEDs/python/lib/devices.py", line 239, in init
self.strip.begin()
File "/usr/local/lib/python3.5/dist-packages/rpi_ws281x-1.0.0-py3.5-linux-armv7l.egg/neopixel.py", line 106, in begin
raise RuntimeError('ws2811_init failed with code {0} ({1})'.format(resp, message))
RuntimeError: ws2811_init failed with code -5 (mmap() failed)
I noticed that if I run scottlawsonbc with sudo python3 visualization.py:
Traceback (most recent call last):
File "visualization.py", line 354, in
led.update()
File "/home/pi/audio-reactive-led-strip/python/led.py", line 143, in update
_update_pi()
File "/home/pi/audio-reactive-led-strip/python/led.py", line 107, in _update_pi
strip._led_data[i] = rgb[i]
File "/usr/local/lib/python3.5/dist-packages/rpi_ws281x-1.0.0-py3.5-linux-armv7l.egg/neopixel.py", line 49, in setitem
return ws.ws2811_led_set(self.channel, pos, value)
TypeError: in method 'ws2811_led_set', argument 3 of type 'uint32_t'
It gives same error.
from systematic-leds.
On my RPi3 I got exactly the same errors :/
Does anybody know what to do?
from systematic-leds.
TypeError: in method 'ws2811_led_set', argument 3 of type 'uint32_t'
I have the same error on my RPi Zero W
from systematic-leds.
Great! Will test in the following days and report back :)
from systematic-leds.
sudo python3 main.py
Traceback (most recent call last):
File "main.py", line 2014, in <module>
microphone = Microphone(microphone_update)
File "main.py", line 835, in __init__
self.setDevice(self.default_device_id)
File "main.py", line 846, in setDevice
self.device_id = self.devices[device_id]["index"]
IndexError: list index out of range
from systematic-leds.
from systematic-leds.
Installed missing modules, disabled GUI in config, executed sudo python3 main.py:
Traceback (most recent call last):
File "main.py", line 884, in <module>
class GUI(QMainWindow):
NameError: name 'QMainWindow' is not defined
Changed class GUI(QMainWindow): to class GUI():, executed command again:
Could not find settings.ini
No user colours found
No user gradients found
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_alsa.pcm.front.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM front
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_alsa.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround21
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_alsa.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround21
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_alsa.pcm.surround40.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround40
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_alsa.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround41
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_alsa.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround50
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_alsa.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround51
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_alsa.pcm.surround71.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround71
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_alsa.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM iec958
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_alsa.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM spdif
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_alsa.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM spdif
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Traceback (most recent call last):
File "main.py", line 2014, in <module>
microphone = Microphone(microphone_update)
File "main.py", line 835, in __init__
self.setDevice(self.default_device_id)
File "main.py", line 846, in setDevice
self.device_id = self.devices[device_id]["index"]
IndexError: list index out of range
from systematic-leds.
from systematic-leds.
If I put that back, following error occurs:
Traceback (most recent call last):
File "main.py", line 884, in <module>
class GUI(QMainWindow):
NameError: name 'QMainWindow' is not defined
I'm not using GUI, so that function is not important in my case (running RPI3 in CLI mode).
There is no settings.ini file in lib folder.
from systematic-leds.
from systematic-leds.
The following error occurs, when I disable GUI in config.py: 'USE_GUI': False
Traceback (most recent call last):
File "main.py", line 884, in <module>
class GUI(QMainWindow):
NameError: name 'QMainWindow' is not defined
If I leave it at True:
Could not find settings.ini
No user colours found
No user gradients found
QXcbConnection: Could not connect to display
Aborted
So is it possible to use with RP3 using only CLI?
from systematic-leds.
from systematic-leds.
Yeah, installed it without any errors. Well I don't have any display connected to RP3, maybe that's a problem?
from systematic-leds.
from systematic-leds.
@not-matt I am getting the same error as that of @ranzhe , your project does not work on macOS. Th e original project works flawlessly. I think there is an issue with the microphone device list from system.
from systematic-leds.
@surajkhan finally i was able to manage my issue and make it running on my macOS.
I'll attach my lib/config.py file (You should update ip address with address of your esp8266).
Also i had buffer overflow crashes, had to edit line 19 in lib/microphone.py to fix that:
y = np.fromstring(stream.read(frames_per_buffer, exception_on_overflow=False), dtype=np.int16)
from systematic-leds.
@ranzhe My config.py file is alright. However I don't see any file called microphone.py inside the lib folder. So I might be missing something. It seems someone deleted microphone.py from the project directory?
from systematic-leds.
@ranzhe even after updating its starting new errors, can you send me your entire project dump?
from systematic-leds.
when im running python main.py
Could not find settings.ini
No user colours found
No user gradients found
am i missing something?
from systematic-leds.
from systematic-leds.
and what should i do about it?
when im in colour control tab it suddently not responding. what should i do?
this is new for me working with nodeMCU.
please give me tutorial link to fix this please, or just tell me what to do to fix.
thankyou for your fast respond
from systematic-leds.
im already follow guide from your youtube chanel. but it happen like this.
from systematic-leds.
@M1nCh3 When I faced the issue, I just check the older commits in the config.py file in this git repo. That should help you what to fill where if you want to solve the issue.
from systematic-leds.
which commits that link to my problem?
from systematic-leds.
@M1nCh3 in the config.py file you have a section which defines the color gradients and the error you are getting in the line 37 where it defines the colormanager. In the same file look for similar definitions after the lines 277. Just copy and paste them to above in the color manager section. This should suppress the error. But I stopped using this project because it was throwing several errors and wasn't working properly with my configuration. So I would also have a look on the dirty-leds project by vrondakis!
In addition I am unaware of the new changes pushed by the author. Hence you may try fixing the config.py and may be update us with your results.
from systematic-leds.
this is what i get
(RGB) C:\systematic\python>python main.py
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\Wirabuana\AppData\Local\conda\conda\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
please tell me what wrong and what i should change in main or config.
thankyou
from systematic-leds.
Hello! i'm trying to use it on a Wedmos D1 R1 mini..anyone got any idea ho to set the RX pin properly? the GUI starts just fine.
from systematic-leds.
problem
(RGB) C:\systematic\python>python main.py
No user colours found
No user gradients found
dear i am not professional, how can i easy way to solved it
from systematic-leds.
Related Issues (20)
- Audio setup on MAC (crashes)? HOT 3
- Python error using pyaudio HOT 4
- Raspberry Pi to ESP8266 HOT 10
- audio in RPI
- Esp8266 not sending data HOT 7
- LEDs all turn white after uploading arduino code, doesn't react to visualization
- Headless Pi Can't run HOT 1
- Problem with more then 1 board
- error compiling after update fastled 3.26 HOT 1
- Blinking leds HOT 3
- Path for configuration file of strips on mac
- I NEED HELP PLZ HOT 7
- ESP is not responding when I ping HOT 1
- Esp8266 automatic reder problem HOT 1
- Error when running main.py; OSError: [Errno -9996] Invalid device HOT 2
- problemas relacionadas com biblioteca pyaudio
- Project not compiles
- cannot uploud file on the ESP
- Version recomended
- flickering led
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from systematic-leds.