spacemanspiff2007 / PyArtNet

"Python wrappers for the Art-Net protocol to send DMX over Ethernet"
GNU General Public License v3.0
70 stars 14 forks source link

too many files open #43

Closed kleurbleur closed 1 year ago

kleurbleur commented 1 year ago

version used: pyartnet 1.0.1 python version: 3.9.6 via venv error: OSError: [Errno 24] Too many open files

I get an error while executing code below. When I use add_fade instead everything runs smooth, although I do get some spikes to 255 in the ArtNet output.

https://pastebin.com/pCkGWc9x

spacemanspiff2007 commented 1 year ago

Why do you think creating the node, the universe and the channel in a while loop is a good idea. For every run you create the objects. There are working examples in the documentation - please take a look at them.

kleurbleur commented 1 year ago

Right, thanks for the feedback. I'm new to asyncio and I tried the most basic setup from your examples for a continuous output. Managed to get it now!