Closed trichter closed 8 years ago
Can anybody reproduce this issue?
Can confirm, hangs for me as well.
I encountered this before: on Python 2 one cannot wait for a thread during an import, see 16.2.9 here: https://docs.python.org/2/library/threading.html#importing-in-threaded-code
On Python 3 it should work. The initialization routine of the client class launches a couple of threads to download the things in parallel.
Thanks for the explanation. For me it is OK to close the issue, just wanted to point at it. As you prefer.
I'm closing it - there is not a lot we can do here except removing the threading (much slower startup) or move to an async execution model (something we could think about but it would probably require an extra library).
Consider the following file
data.py
:When I import with
ìmport data
python hangs here:Edit: After timeout (15s) this error pops up:
With
debug=True
indata.py
python is not blocked by the error:python data.py
is still working, of course.