Closed juliomateoslangerak closed 1 year ago
Seems that for some reason it's failing to pickle the function. This works in Python 3.7 and 3.9 in Linux. You're using Python 3.8 on Windows. Did this work with Python 3.7 in Windows? Or can you try other Python version?
Same thing in Windows 10 with python 3.9
This is a duplicate of issue #179 . There's a proposed fix but there's some issues with it. There's a proposed plan to fix it but no one has implemented it yet. Closing as duplicate.
After reading this I hacked to add the function definition (and the DEVICES list) on the top level module (device_server.py) and that seems to work (for finding the problem I mean) From what I read in other places, the root reason seems to be windows not forking the process but spawning it.
Just saw tour comment. I'm closing this as duplicate in #179
When I use a function to customize a device in the config I get a nasty error.
This is reproducible with the code in the doc example (I removed the typehints). Use of 3.8 on Windows7
Passing
DEVICES = [device(SimulatedCamera, host="127.0.0.1", port=8001)]
works as expected