-
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
Python 3.6 #28
Comments
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. |
When running sudo python3 main.py:
When running sudo python main.py:
When running python3 main.py:
I noticed that if I run scottlawsonbc with sudo python3 visualization.py:
It gives same error. |
On my RPi3 I got exactly the same errors :/ |
|
Think this is fixed now, could you test in the new pull request? "minor fixes" |
Great! Will test in the following days and report back :) |
sudo python3 main.py
|
Steps to reproduce that error?
…On Thu, Jun 28, 2018, 17:14 Lenar Rahmatullin ***@***.***> wrote:
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
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#28 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Ae5azKGUCgqFiKaKlSareRJPU5Q1HLl3ks5uBQDPgaJpZM4S-FOB>
.
|
Installed missing modules, disabled GUI in config, executed sudo python3 main.py:
Changed class GUI(QMainWindow): to class GUI():, executed command again:
|
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 ***@***.***> wrote:
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
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#28 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Ae5azHgiasvG73NSLrl1wPjconyZtvwfks5uBRcggaJpZM4S-FOB>
.
|
If I put that back, following error occurs:
I'm not using GUI, so that function is not important in my case (running RPI3 in CLI mode). |
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 ***@***.***> wrote:
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).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#28 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Ae5azFj43Fsj5LUqZ1Kj-p9woc9yLEUiks5uBRkXgaJpZM4S-FOB>
.
|
The following error occurs, when I disable GUI in config.py: 'USE_GUI': False
If I leave it at True:
So is it possible to use with RP3 using only CLI? |
It ought to be, but that QXcb error is bizarre. Is your pyqt installation
okay?
…On Thu, Jun 28, 2018, 19:27 Lenar Rahmatullin ***@***.***> 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 <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?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#28 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Ae5azNNSCAWfeco6-vDLQSuVKzmpBNXxks5uBR_8gaJpZM4S-FOB>
.
|
Yeah, installed it without any errors. Well I don't have any display connected to RP3, maybe that's a problem? |
Shouldn't be, I'll let you know if I figure it out though.
…On Thu, Jun 28, 2018, 19:44 Lenar Rahmatullin ***@***.***> 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
<#28 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Ae5azG-qcbcW8MbLbJBLSIF7NV5iKkMSks5uBSQogaJpZM4S-FOB>
.
|
Getting almost the same error as @Neophytez:
Steps to reproduce:
Additional information:
|
@surajkhan finally i was able to manage my issue and make it running on my macOS. Also i had buffer overflow crashes, had to edit line 19 in lib/microphone.py to fix that: |
@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? |
@ranzhe even after updating its starting new errors, can you send me your entire project dump? |
when im running python main.py Could not find settings.ini am i missing something? |
Nope, that's fine - just debug stuff!
…On Wed, Nov 21, 2018, 5:04 PM M1nCh3 ***@***.*** 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
<#28 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Ae5azNIuATxxN05UNlC2hAweCWeFKsXwks5uxYeGgaJpZM4S-FOB>
.
|
and what should i do about it? |
im already follow guide from your youtube chanel. but it happen like this. |
@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. |
which commits that link to my problem? |
@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. |
this is what i get (RGB) C:\systematic\python>python main.py please tell me what wrong and what i should change in main or config. |
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. |
problem(RGB) C:\systematic\python>python main.py dear i am not professional, how can i easy way to solved it |
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)?
The text was updated successfully, but these errors were encountered: