sumanentc / fastapi-celery-rabbitmq-application

Sample FastAPI Application to demonstrate Async architecture with Celery, RabbitMQ and Flower
MIT License
105 stars 26 forks source link

No modules named 'config' found #1

Open kailashlimba1997 opened 2 years ago

kailashlimba1997 commented 2 years ago

Traceback (most recent call last): File "", line 1, in File "c:\users\kaila\appdata\local\programs\python\python39\lib\site-packages\billiard\spawn.py", line 165, in spawn_main exitcode = _main(fd) File "c:\users\kaila\appdata\local\programs\python\python39\lib\site-packages\billiard\spawn.py", line 207, in _main self = pickle.load(from_parent) ModuleNotFoundError: No module named 'config'

ggree1 commented 1 year ago

OMG, I struggled all day long for this problem. Finally, the solution was simple. Celery doesn't support windows properly that's why you and I faced with 'prckle.load... ModuleNotFoundError'.

In windows, prefork pool opiton doesn't work, so install gevent and start up Celery with -P gevent option. or just start -P solo