not-matt / Systematic-LEDs

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

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

Closed Andriejus closed 5 years ago

Andriejus commented 5 years ago

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 https://github.com/not-matt/Systematic-LEDs/issues/62#issuecomment-457965946

lpearl commented 5 years ago

@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 commented 5 years ago

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 commented 5 years ago

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