cyhex / streamcrab

Real-Time, Twitter sentiment analyzer engine
http:/www.streamcrab.com
144 stars 49 forks source link

RuntimeError caused by inappropriate multithreading implementation on Microsoft Windows #25

Open andorfermichael opened 8 years ago

andorfermichael commented 8 years ago
RuntimeError:
            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__':
                    freeze_support()
                    ...

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

The causing function calls are the following ones: pool.start() worker.start()

which are called when running start-classifier.py

These function calls also cause the following error:

TypeError: can't pickle thread.lock objects

cyhex commented 8 years ago

Looks nasty, unfortunately i have no experience with windows systems, perhaps someone else could suggest/commit a fix for this issue...