Germey / CookiesPool

CookiesPool Based on Redis
153 stars 102 forks source link

运行python3 run.py报错 #3

Open suwenkun1126 opened 7 years ago

suwenkun1126 commented 7 years ago

clone到本地然后运行python3 run.py报错如下,不知道要怎么解决?

E:\python\Pycharm\CookiesPool>python3 run.py
Traceback (most recent call last):
  File "run.py", line 8, in <module>
    main()
  File "run.py", line 5, in main
    s.run()
  File "E:\python\Pycharm\CookiesPool\cookiespool\scheduler.py", line 46, in run
    generate_process.start()
  File "C:\Python34\lib\multiprocessing\process.py", line 105, in start
    self._popen = self._Popen(self)
  File "C:\Python34\lib\multiprocessing\context.py", line 212, in _Popen
    return _default_context.get_context().Process._Popen(process_obj)
  File "C:\Python34\lib\multiprocessing\context.py", line 313, in _Popen
    return Popen(process_obj)
  File "C:\Python34\lib\multiprocessing\popen_spawn_win32.py", line 66, in __init__
    reduction.dump(process_obj, to_child)
  File "C:\Python34\lib\multiprocessing\reduction.py", line 59, in dump
    ForkingPickler(file, protocol).dump(obj)
_pickle.PicklingError: Can't pickle <function Scheduler.generate_cookie at 0x02A03DF8>: attribute lookup generate_co
okie on cookiespool.scheduler failed

E:\python\Pycharm\CookiesPool>Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Python34\lib\multiprocessing\spawn.py", line 106, in spawn_main
    exitcode = _main(fd)
  File "C:\Python34\lib\multiprocessing\spawn.py", line 116, in _main
    self = pickle.load(from_parent)
EOFError: Ran out of input