-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ModuleNotFoundError: No module named '10' #5654
Comments
@wangzihchao Hi there! I'm here to help you with any issues, answer questions, and even guide you on how to become a contributor. Let's squash those bugs together! The module named "10" does not exist. The error To resolve this error, ensure that you are correctly specifying the module name when starting the Worker service. The correct command to start the Worker service on Linux or macOS is: celery -A app.celery worker -P gevent -c 1 -Q dataset,generation,mail --loglevel INFO And for Windows: celery -A app.celery worker -P solo --without-gossip --without-mingle -Q dataset,generation,mail --loglevel INFO Make sure you are in the correct directory and that the |
Itis not work,nothing changed |
The Here are the steps to resolve this issue:
Ensure your Docker setup meets the requirements, such as having Docker Desktop configured with at least 2 virtual CPUs and 8GB of initial memory on macOS, or using WSL 2 on Windows [1][2][3][4]. |
Self Checks
Dify version
0.6.9
Cloud or Self Hosted
Self Hosted (Docker), Self Hosted (Source)
Steps to reproduce
There was an issue deploying the woker module:
Traceback (most recent call last):
File "/usr/local/bin/celery", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.10/site-packages/celery/main.py", line 15, in main
sys.exit(_main())
File "/usr/local/lib/python3.10/site-packages/celery/bin/celery.py", line 236, in main
return celery(auto_envvar_prefix="CELERY")
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/click/decorators.py", line 33, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/celery/bin/base.py", line 134, in caller
return f(ctx, *args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/celery/bin/worker.py", line 348, in worker
worker = app.Worker(
File "/usr/local/lib/python3.10/site-packages/celery/worker/worker.py", line 98, in init
self.setup_instance(**self.prepare_args(**kwargs))
File "/usr/local/lib/python3.10/site-packages/celery/worker/worker.py", line 119, in setup_instance
self._conninfo = self.app.connection_for_read()
File "/usr/local/lib/python3.10/site-packages/celery/app/base.py", line 819, in connection_for_read
return self._connection(url or self.conf.broker_read_url, **kwargs)
File "/usr/local/lib/python3.10/site-packages/celery/app/base.py", line 878, in _connection
return self.amqp.Connection(
File "/usr/local/lib/python3.10/site-packages/kombu/connection.py", line 201, in init
if not get_transport_cls(transport).can_parse_url:
File "/usr/local/lib/python3.10/site-packages/kombu/transport/init.py", line 90, in get_transport_cls
_transport_cache[transport] = resolve_transport(transport)
File "/usr/local/lib/python3.10/site-packages/kombu/transport/init.py", line 75, in resolve_transport
return symbol_by_name(transport)
File "/usr/local/lib/python3.10/site-packages/kombu/utils/imports.py", line 59, in symbol_by_name
module = imp(module_name, package=package, **kwargs)
File "/usr/local/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 992, in _find_and_load_unlocked
File "", line 241, in _call_with_frames_removed
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 992, in _find_and_load_unlocked
File "", line 241, in _call_with_frames_removed
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named '10'
And the celery config is that:
CELERY_BROKER_URL:redishot://:redispassword@redishot:6379/1
BROKER_USE_SSL 'false'
What is the module named “10”?
✔️ Expected Behavior
compose worker sucessfully
❌ Actual Behavior
compose worker failed
The text was updated successfully, but these errors were encountered: