Python API Windows



I have started to used the Pyhton API and it seems to be working fine. However, I have tried to run some of the examples in the documentation with little success.

I am specially interested in the Live-Stream example.

Once I run it, I have this error

Attempt to start a new process before the current process
has finished its bootstrapping phase.

        This probably means that you are on Windows and you have
        forgotten to use the proper idiom in the main module:

            if __name__ == '__main__':

        The "freeze_support()" line can be omitted if the program
        is not going to be frozen to produce a Windows executable.

I know that I managed to connect to my account and fetch the status data, so It is not a problem of connectivity.

I am a bit new so I am might be missing something basic, but the documentation is scarce for Python users. Any hint and or direction will be really appreciate it.

Many thanks,


The Python library has not been tested against a Windows environment, though the WebSocket implementation within this library was designed for Unix oeprating systems. I've raised this as an issue against the repsoitory in Github.


I’ve added a fix for livestreaming on Windows platforms, please upgrade to datasift-python 2.0.7 or higher