TypeError: argument 1 must be an integer, not _subprocess_handle/OSError: [WinError 87]
Posted hpcm
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了TypeError: argument 1 must be an integer, not _subprocess_handle/OSError: [WinError 87]相关的知识,希望对你有一定的参考价值。
Error Msg:
Traceback (most recent call last): File "c:python27libsite-packagesceleryworkerworker.py", line 203, in start self.blueprint.start(self) File "c:python27libsite-packagesceleryootsteps.py", line 119, in start step.start(parent) File "c:python27libsite-packagesceleryootsteps.py", line 370, in start return self.obj.start() File "c:python27libsite-packagesceleryconcurrencyase.py", line 131, in start self.on_start() File "c:python27libsite-packagesceleryconcurrencyprefork.py", line 112, in on_start **self.options) File "c:python27libsite-packagesilliardpool.py", line 1008, in __init__ self._create_worker_process(i) File "c:python27libsite-packagesilliardpool.py", line 1117, in _create_worker_process w.start() File "c:python27libsite-packagesilliardprocess.py", line 122, in start self._popen = self._Popen(self) File "c:python27libsite-packagesilliardcontext.py", line 383, in _Popen return Popen(process_obj) File "c:python27libsite-packagesilliardpopen_spawn_win32.py", line 64, in __init__ _winapi.CloseHandle(ht) TypeError: argument 1 must be an integer, not _subprocess_handle I:Celerycelery-examples>Traceback (most recent call last): File "<string>", line 1, in <module> File "c:python27libsite-packagesilliardspawn.py", line 159, in spawn_main new_handle = steal_handle(parent_pid, pipe_handle) File "c:python27libsite-packagesilliard eduction.py", line 121, in steal_handle _winapi.PROCESS_DUP_HANDLE, False, source_pid)
OSError: [WinError 87]
问题:
windows中现阶段不支持Celery4.x版本, 注意你的默认python版本, 可能python3中安装正常Celery3.x, 但是默认使用python
解决:
pip uninstall celery
pip3 uninstall celery
pip install celery==3.1
pip3 install celery==3.1
以上是关于TypeError: argument 1 must be an integer, not _subprocess_handle/OSError: [WinError 87]的主要内容,如果未能解决你的问题,请参考以下文章
npm ERR! typeerror Error: Missing required argument #1
Python_异常:TypeError: write() argument must be str, not list
报错解决——TypeError: LoadLibrary() argument 1 must be str, not None
Python TypeError: get_logger() missing 1 required positional argument: 'self'
TypeError: save() missing 1 required positional argument: 'self'
我正在尝试定义 LSTM 并收到错误“TypeError: add() missing 1 required positional argument: 'layer'”