Skip to content
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

LED strip manager hangs on.. (not responding) macOS+Anaconda #66

Closed
Andriejus opened this issue Jan 30, 2019 · 3 comments
Closed

LED strip manager hangs on.. (not responding) macOS+Anaconda #66

Andriejus opened this issue Jan 30, 2019 · 3 comments

Comments

@Andriejus
Copy link

When I run main.py - LED strip manager window pops up and hangs on.(python is not responding). its only active for 4 seconds and then wheel is just spinnng and I can not do anything:( Trying to find what is causing that. Im using Anaconda+python 3.6.5. on macOS High Sierra.

P.S. I used the same files on Windows 7 and everything was working fine.

screen shot 2019-01-29 at 11 54 54 pm

Originally posted by @Andriejus in #62 (comment)

@lpearl
Copy link

lpearl commented Jan 30, 2019

@Andriejus Try replacing line 879 in main.py with:
y = np.frombuffer(self.stream.read(self.frames_per_buffer, exception_on_overflow=False), dtype=np.int16)
and adding after line 880 in main.py:
self.stream.read(self.stream.get_read_available(), exception_on_overflow=False)

@Andriejus
Copy link
Author

WOW! it worked! Thank you SO MUCH! Now I can move on. It works with Anaconda+python 3,6,5. Also I tried to run it only with python, but I got some erros.. Wondering what is the quickiest way to launch main.py. Because it takes quite long to open anaconda and then type in commands:)

@lpearl
Copy link

lpearl commented Feb 1, 2019

@Andriejus Glad, it works! just remember to close this issue. I don't use Anaconda to run it on my mac just straight through python. The quickest way to start it up would be by making a .command file that launches main.py. I have anaconda installed on another computer so I can write the script when I get back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants