EvilzoneLabs / BeastBot

EZBot - irc.evilzone.org's official network bot
http://www.evilzone.org
GNU General Public License v3.0
3 stars 3 forks source link

Fix EOLError from multiprocessing when running on windows without cygwin #6

Open kulverstukas1 opened 9 years ago

kulverstukas1 commented 9 years ago

Fix EOLError from multiprocessing when running on windows without cygwin.

kulverstukas1 commented 9 years ago

Stacktrace: Traceback (most recent call last): File "", line 1, in File "C:\Python27\lib\multiprocessing\forking.py", line 381, in main self = load(from_parent) File "C:\Python27\lib\pickle.py", line 1378, in load return Unpickler(file).load() File "C:\Python27\lib\pickle.py", line 858, in load dispatchkey File "C:\Python27\lib\pickle.py", line 880, in load_eof raise EOFError EOFError

Error log: CRITICAL - 21:17:59 - Can't pickle <built-in method recvfrom_into of _socket.socket object at 0x01926EF0>: it's not found as main.recvfrom_into - Filename: BeastBot.py - Line Number: 85 - Function: main - Line Text: functionProc.start())

kenjoe41 commented 9 years ago

https://docs.python.org/2/library/multiprocessing.html#windows http://stackoverflow.com/a/9671030/4671205 Damn, those restrictions. Should find a way to bypass them. My windows install isn't perfect yet to test out but try removing the except catching all errors and we see which error type it throws and which function it complains about.

chris2727 commented 9 years ago

I personally will not be working on this. If this is something kenjoe, kulver or someone else wishes to work on, then I would still be greatful. I will keep this issue open just for awarness. :)