启动Django服务器时出现PicklingError

时间:2020-01-03 05:33:08

标签: python django

 ForkingPickler(file, protocol).dump(obj)
_pickle.PicklingError: Can't pickle <function colors at 0x000001D69FE72620>: attribute lookup colors on __main__ failed

(venv) D:\ingenero\cpchemserver>Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Program Files\Python36\lib\multiprocessing\spawn.py", line 99, in spawn_main
    new_handle = reduction.steal_handle(parent_pid, pipe_handle)
  File "C:\Program Files\Python36\lib\multiprocessing\reduction.py", line 82, in steal_handle
    _winapi.PROCESS_DUP_HANDLE, False, source_pid)
OSError: [WinError 87] The parameter is incorrect

0 个答案:

没有答案