Python library inside a Process


#1

Hi, Im trying to use the python datasift client library.
Howeverer The enviorment I’m using it get launched inside a Process.

when trying to use the streaming protocol I get the error:

daemonic processes are not allowed to have children

Is there a way to use the streaming on the api without creating chilidren.


#2

You should be able to use the client._stream() method to force it to consume the stream without spawning a child thread. However this hands control of that thread over to the WebSocket client, so you would not be able to perform any further actions on that thread.