not-matt / Systematic-LEDs

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

Python 3.6 #28

Open Neophytez opened 6 years ago

Neophytez commented 6 years ago

I'm running this on RP3 - does this require python 3.6? Also having problem running/setting up this. Is there tutorial available (or is scottlawsonbc/audio-reactive-led-strip the only one)?

tarthim commented 6 years ago

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.

Neophytez commented 6 years ago

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.

csph commented 6 years ago

On my RPi3 I got exactly the same errors :/ Does anybody know what to do?

marcheffels commented 6 years ago

TypeError: in method 'ws2811_led_set', argument 3 of type 'uint32_t' I have the same error on my RPi Zero W

not-matt commented 6 years ago

Think this is fixed now, could you test in the new pull request? "minor fixes"

Neophytez commented 6 years ago

Great! Will test in the following days and report back :)

Neophytez commented 6 years ago

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
not-matt commented 6 years ago

Steps to reproduce that error?

On Thu, Jun 28, 2018, 17:14 Lenar Rahmatullin notifications@github.com wrote:

sudo python3 main.py

Traceback (most recent call last): File "main.py", line 2014, in 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

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

Neophytez commented 6 years ago

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
not-matt commented 6 years ago

Pop the QMainWindow back, that's pretty important ;) backup then delete lib/settings.ini often fixes weird errors, try that?

On Thu, Jun 28, 2018, 18:49 Lenar Rahmatullin notifications@github.com wrote:

Installed missing modules, disabled GUI in config, executed sudo python3 main.py:

Traceback (most recent call last): File "main.py", line 884, in 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 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

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

Neophytez commented 6 years ago

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.

not-matt commented 6 years ago

I'm out rn, I'll have a good look tomorrow. Probably an import error, have a look and make sure you're using the new pull request, there was a problem where pyqt wasn't fully imported when not using the GUI. Fixed this one fairly recently

On Thu, Jun 28, 2018, 18:57 Lenar Rahmatullin notifications@github.com wrote:

If I put that back, following error occurs:

Traceback (most recent call last): File "main.py", line 884, in 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).

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/not-matt/Systematic-LEDs/issues/28#issuecomment-401121055, or mute the thread https://github.com/notifications/unsubscribe-auth/Ae5azFj43Fsj5LUqZ1Kj-p9woc9yLEUiks5uBRkXgaJpZM4S-FOB .

Neophytez commented 6 years ago

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?

not-matt commented 6 years ago

It ought to be, but that QXcb error is bizarre. Is your pyqt installation okay?

On Thu, Jun 28, 2018, 19:27 Lenar Rahmatullin notifications@github.com wrote:

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 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?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/not-matt/Systematic-LEDs/issues/28#issuecomment-401129509, or mute the thread https://github.com/notifications/unsubscribe-auth/Ae5azNNSCAWfeco6-vDLQSuVKzmpBNXxks5uBR_8gaJpZM4S-FOB .

Neophytez commented 6 years ago

Yeah, installed it without any errors. Well I don't have any display connected to RP3, maybe that's a problem?

not-matt commented 6 years ago

Shouldn't be, I'll let you know if I figure it out though.

On Thu, Jun 28, 2018, 19:44 Lenar Rahmatullin notifications@github.com wrote:

Yeah, installed it without any errors. Well I don't have any display connected to RP3, maybe that's a problem?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/not-matt/Systematic-LEDs/issues/28#issuecomment-401134731, or mute the thread https://github.com/notifications/unsubscribe-auth/Ae5azG-qcbcW8MbLbJBLSIF7NV5iKkMSks5uBSQogaJpZM4S-FOB .

ranzhe commented 5 years ago

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:

  1. Clone the repo
  2. Try to run main.py

Additional information:

surajkhan commented 5 years ago

@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.

ranzhe commented 5 years ago

@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)

config.zip

surajkhan commented 5 years ago

@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?

surajkhan commented 5 years ago

@ranzhe even after updating its starting new errors, can you send me your entire project dump?

M1nCh3 commented 5 years ago

when im running python main.py

Could not find settings.ini No user colours found No user gradients found

am i missing something?

not-matt commented 5 years ago

Nope, that's fine - just debug stuff!

On Wed, Nov 21, 2018, 5:04 PM M1nCh3 <notifications@github.com wrote:

when im running python main.py

Could not find settings.ini No user colours found No user gradients found

am i missing something?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/not-matt/Systematic-LEDs/issues/28#issuecomment-440740282, or mute the thread https://github.com/notifications/unsubscribe-auth/Ae5azNIuATxxN05UNlC2hAweCWeFKsXwks5uxYeGgaJpZM4S-FOB .

M1nCh3 commented 5 years ago

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

M1nCh3 commented 5 years ago

im already follow guide from your youtube chanel. but it happen like this.

surajkhanfau commented 5 years ago

@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.

M1nCh3 commented 5 years ago

which commits that link to my problem?

surajkhanfau commented 5 years ago

@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.

M1nCh3 commented 5 years ago

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

FabioEnne commented 5 years ago

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.

plabonhasan commented 5 years ago

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