gpt4 book ai didi

rabbitmq - celery 'Worker-n' pid :xxxx exited with 'exitcode 1' when I import hmmlearn

转载 作者:行者123 更新时间:2023-12-03 12:04:39 29 4
gpt4 key购买 nike

在我的 tasks.py 文件中,当我导入 hmmlearn 时,

from hmmlearn import hmm

并启动我的 celery worker ,我收到以下错误
[2017-06-14 09:18:27,638: INFO/MainProcess] Received task: 
sm.tasks.mytask[4e46806e-6f0f-420f-baac-c727c2a382d4]
[2017-06-14 09:18:27,716: ERROR/MainProcess] Process 'Worker-4' pid:5264
exited with 'exitcode 1'
[2017-06-14 09:18:29,857: ERROR/MainProcess] Process 'Worker-7' pid:3172
exited with 'exitcode 1'
[2017-06-14 09:18:29,857: ERROR/MainProcess] Process 'Worker-6' pid:5768
exited with 'exitcode 1'
[2017-06-14 09:18:29,857: ERROR/MainProcess] Process 'Worker-5' pid:5236
exited with 'exitcode 1'
[2017-06-14 09:18:31,450: ERROR/MainProcess] Process 'Worker-8' pid:5876
exited with 'exitcode 1'

在我关闭 worker 之后,
[2017-06-14 09:19:28,545: WARNING/MainProcess] c:\anaconda3\lib\site-
packages\celery\apps\worker.py:161: CDeprecationWarning:
Starting from version 3.2 Celery will refuse to accept pickle by default.

如果我只是使用该导入注释掉该导入和代码,则一切正常。但是,我能够在 ipython 上将所有任务(包括 hmm 代码)作为独立的 python 代码执行,没有任何问题。

我正在使用具有以下详细信息的 conda 发行版
Current conda install:

platform : win-64
conda version : 4.3.21
conda is private : False
conda-env version : 4.3.21
conda-build version : 1.21.3
python version : 3.5.2.final.0
requests version : 2.14.2

λ conda list | grep celery
celery 3.1.18 <pip>

λ conda list | grep kombu
kombu 3.0.37 <pip>

λ conda list | grep hmmlearn
hmmlearn 0.1.1 np111py35_0 omnia

我该怎么办?

最佳答案

这可能是因为 celery 3.1.xx 与台球 3.3 捆绑在一起。

如果您升级该软件包(在撰写本文时升级到 3.5),该服务可能会再次运行。

pip install --upgrade billiard

关于rabbitmq - celery 'Worker-n' pid :xxxx exited with 'exitcode 1' when I import hmmlearn,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44550407/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com