Open jvkloc opened 1 year ago
Hello,
The two import methods should be similar (the star import defines names listed in __all__
list of as_eventloop
module, and module names are defined when it is imported).
Do you correctly call once osc_startup()
at start of program ? This is where write_queue
global is defined.
A+ Laurent.
I have
as imports and suddenly
osc_process()
has started throwing'NoneType' object has no attribute 'wait_for_job'
in the previously all right section of the code:which is executed after
osc_msg
has been populated withint
data in a while loop. Only place I see as a possible cause is the last line ofosc_startup()
which sayswrite_queue = osctoolspools.WorkQueue()
.write_queue = None
by default inas_eventloop.py
and it should be updated inosc_process()
:Any ideas what might cause this misbehavior? I'm wondering if
from osc4py3.as_eventloop import *
would be better asimport osc4py3.as_eventloop
. Does importing*
run the variable definitions from the start of the module or does it only import thedef
objects?