我导入hmmlearn时,芹菜'Worker-n'pid:xxxx以'exitcode 1'退出 [英] celery 'Worker-n' pid:xxxx exited with 'exitcode 1' when I import hmmlearn

查看:172
本文介绍了我导入hmmlearn时,芹菜'Worker-n'pid:xxxx以'exitcode 1'退出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

In my tasks.py file, when I import hmmlearn,

from hmmlearn import hmm

启动我的芹菜工人,我遇到以下错误

and start my celery workers, I get the following error

[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'

在我关闭工作人员之后,

And after I shutdown the 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代码执行,没有任何问题.

If I just comment out that import and code using that import, everything works fine. But, I'm able to execute all the tasks(including the hmm code) as standalone python code on ipython without any issues.

我正在使用conda发行版,其中包含以下详细信息

I'm using the conda distribution with following details

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

我该怎么办?

推荐答案

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

This might be because celery 3.1.xx comes bundled with billiard 3.3.

如果将该软件包升级(在撰写本文时为3.5),则该服务可能会再次运行.

If you upgrade that package (to 3.5 at time of writing), the service might work again.

pip install --upgrade billiard

这篇关于我导入hmmlearn时,芹菜'Worker-n'pid:xxxx以'exitcode 1'退出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆