账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    celery启动执行报错
    13
    0
    celery执行时出现如下错误:PS D:\Anaconda3\install\envs\superset_env\Lib\site-packages> celery --app=superset.tasks.celery_app:app worker --pool=prefork -O fair -c 4Loaded your LOCAL configuration at [D:\Anaconda3\install\envs\superset_env\Lib\site-packages\superset_config.py]logging was configured successfully2021-12-22 11:18:15,665:INFO:superset.utils.logging_configurator:logging was configured successfully2021-12-22 11:18:15,681:INFO:root:Configured event logger of type <class 'superset.utils.log.DBEventLogger'> -------------- celery@LAPTOP-49KFCB95 v4.3.0 (rhubarb)---- **** -------- * *** * -- Windows-10-10.0.19041-SP0 2021-12-22 11:18:17-- * - **** ---- ** ---------- [config]- ** ---------- .> app: __main__:0x1b458f7c308- ** ---------- .> transport: redis://localhost:6379/2- ** ---------- .> results: redis://localhost:6379/2- *** --- * --- .> concurrency: 4 (prefork)-- ******* ---- .> task events: OFF (enable -E to monitor tasks in this worker)--- ***** ----- -------------- [queues] .> celery exchange=celery(direct) key=celery[2021-12-22 11:18:21,133: ERROR/SpawnPoolWorker-3] Process SpawnPoolWorker-3Traceback (most recent call last): File "D:\Anaconda3\install\envs\superset_env\Lib\site-packages\billiard\process.py", line 327, in _bootstrap self.run() File "D:\Anaconda3\install\envs\superset_env\Lib\site-packages\billiard\process.py", line 114, in run self._target(*self._args, **self._kwargs) File "D:\Anaconda3\install\envs\superset_env\Lib\site-packages\billiard\pool.py", line 289, in __call__ self.after_fork() File "D:\Anaconda3\install\envs\superset_env\Lib\site-packages\billiard\pool.py", line 421, in after_fork self.initializer(*self.initargs) File "D:\Anaconda3\install\envs\superset_env\lib\site-packages\celery\concurrency\prefork.py", line 55, in process_initializer app.loader.init_worker() File "D:\Anaconda3\install\envs\superset_env\lib\site-packages\celery\loaders\base.py", line 114, in init_worker self.import_default_modules() File "D:\Anaconda3\install\envs\superset_env\lib\site-packages\celery\loaders\base.py", line 109, in import_default_modules return [self.import_task_module(m) for m in self.default_modules] File "D:\Anaconda3\install\envs\superset_env\lib\site-packages\celery\loaders\base.py", line 109, in <listcomp> return [self.import_task_module(m) for m in self.default_modules] File "D:\Anaconda3\install\envs\superset_env\lib\site-packages\celery\loaders\base.py", line 89, in import_task_module return self.import_from_cwd(module) File "D:\Anaconda3\install\envs\superset_env\lib\site-packages\celery\loaders\base.py", line 98, in import_from_cwd package=package, File "D:\Anaconda3\install\envs\superset_env\lib\site-packages\celery\utils\imports.py", line 111, in import_from_cwd return imp(module, package=package) File "D:\Anaconda3\install\envs\superset_env\lib\site-packages\celery\loaders\base.py", line 92, in import_module return importlib.import_module(module, package=package) File "D:\Anaconda3\install\envs\superset_env\lib\importlib\__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1006, in _gcd_import File "<frozen importlib._bootstrap>", line 983, in _find_and_load File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 677, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 728, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "D:\Anaconda3\install\envs\superset_env\lib\site-packages\superset\sql_lab.py", line 37, in <module> from superset.db_engine_specs import BaseEngineSpec File "D:\Anaconda3\install\envs\superset_env\lib\site-packages\superset\db_engine_specs\__init__.py", line 43, in <module> from superset.db_engine_specs.base import BaseEngineSpec File "D:\Anaconda3\install\envs\superset_env\lib\site-packages\superset\db_engine_specs\base.py", line 61, in <module> from superset.models.sql_lab import Query File "D:\Anaconda3\install\envs\superset_env\lib\site-packages\superset\models\__init__.py", line 17, in <module> from . import ( File "D:\Anaconda3\install\envs\superset_env\lib\site-packages\superset\models\alerts.py", line 55, in <module> class Alert(Model, AuditMixinNullable): File "D:\Anaconda3\install\envs\superset_env\lib\site-packages\superset\models\alerts.py", line 68, in Alert owners = relationship(security_manager.user_model, secondary=alert_owner) File "D:\Anaconda3\install\envs\superset_env\lib\site-packages\werkzeug\local.py", line 348, in __getattr__ return getattr(self._get_current_object(), name)AttributeError: 'NoneType' object has no attribute 'user_model'Process SpawnPoolWorker-3:Traceback (most recent call last):...这个报错该怎么解决呢?
    0
    打赏
    收藏
    点击回答
        全部回答
    • 0
    更多回答
    扫一扫访问手机版

    回答动态

    师傅被妖怪抓走了:发布了悬赏问题火爆全网的“元宇宙”到底是什么?预计能赚取 1积分收益
    酒后略带风情:发布了悬赏问题Android内存中Graphics与Code占用过高预计能赚取 10积分收益
    扛起拖把扫天下:发布了悬赏问题typescript如何导出接口配置?求解,谢谢!预计能赚取 10积分收益
    发布了悬赏问题Vue 如何改变返回页面的路径?如让B页面只能返回到A页面.预计能赚取 11积分收益
    发布了悬赏问题vue H5移动端;底部bottom固定定位,安卓弹起键盘导致页面变形如何解决?预计能赚取 10积分收益
    发布了悬赏问题请问为什么tomcat8.5 GET请求中文正常,POST请求还需要设置UTF-8.预计能赚取 10积分收益
    发布了悬赏问题vue2.5+ts创建以及引入jq的方法预计能赚取 11积分收益
    情场浪女:发布了悬赏问题import ggplot时报错module 'pandas' has no attribute 'tslib'预计能赚取 10积分收益
    见心书画许老师18753375161:发布了悬赏问题echarts3 legend禁止点击事件,允许悬浮事件预计能赚取 11积分收益
    aa_92cb0bd09f:发布了悬赏问题codewar上的一个问题预计能赚取 11积分收益