I had set everything up on my windows machine after quite a bit of hassle. And then, when I saw I saw the title of this video, I thought let's just skip it. But then I didn't and thankfully I learnt a couple of new things like I wasn't doing like --pool=solo. I didn't know that. Hence, Iwas seeing received msg on the celery terminal but not the result from the add function. Thanks man.
thank you so much dear sir. i am trying celery since last 3 days and have checked many tutorials and blogs and no one mention --pool=solo you mentioned this. and it done my work thanx agai sir.
Great simple video, Many thanks. I had the following problems with solutions. *RabbitMQ server wouldn't start - Answer: It was already running in the background so I had to load "RabbitMQ Server - stop" from the windows start menu. *On running celery command I got "No Module named 'grp'" - Answer: It needs an earlier version to work. So I needed to : pip uninstall celery pip install celer==5.0.5
THIS HELPED ME A LOT! I'm using Windows, and I initially used your Ubuntu tutorial to use Celery, and I was wondering why my Windows machine never printed the 'print()' nor 'return' statements from my tasks. Turns out that I had to use the '--pool=solo' command. THANKS!
This Work for me !! * Celery : v4.3.0 * pip install gevent * celery -A worker -l info -P gevent * my tasks.py file is in the same directory as manage.py
I am getting "Error: Invalid value for '-A' / '--app': module 'proj.celery' has no attribute 'celery'" after running "celery -A proj worker -l info --pool=solo".
@@veryacademy yeah it worked like a charm. Turns out the last piece of command '--pool=solo' was what's missing in my case.. Thanks again mate..keep them great vids coming.
@@kelvinmagar7120 This might be worth a read, as using this might have some implications when remote-controlling (not sure what you are planning) www.distributedpython.com/2018/10/26/celery-execution-pool/
You save my life bro! I have been dealing with tasks that are accepted but never been executed due to the way I started the worker (without pool=true) 🤦♂Is there any doc where celery explain that? I read a lot but never found something like that. Anyway, Thank you so much! Greetings from colombia 👋
@@yousifshalby3421 @pranjul singh Hi guys, I found the answer to this on Stack Overflow. It's to do with the version of celery. You need to go to a previous version, with the following: pip uninstall celery pip install celery==5.0.5
Initially, I did not get how to execute it but later these 2 steps I got it in PowerShell as admin 1)C:\Program Files\RabbitMQ Server abbitmq_server-3.8.9\sbin>. abbitmq-service.bat stop 2)C:\Program Files\RabbitMQ Server abbitmq_server-3.8.9\sbin>. abbitmq-server.bat
Using windows 8 with the steps u have shown here, its showing ....Please either set ERLANG_HOME to point to your Erlang installation or place the RabbitMQ server distribution in the Erlang lib folder
Thank you Ansel, really sorry I don't have a copy of Windows 8.1 to test this problem. However it sounds like you need to go to Start > Settings > Control Panel > System > Advanced > Environment Variables. Create the system environment variable ERLANG_HOME and set it to the full path of the directory which contains bin\erl.exe. 👍
So the error I got was "BOOT FAILURE" "[error] ERROR: distribution port 25672 in use by another node: rabbit@DESKTOP" when I tried to start rabbitmq-server.bat To resolve it I opened powershell as admin > cd ../../ > cd '.\Program Files\RabbitMQ Server abbitmq_server-3.8.9\sbin\' > . abbitmq-service.bat stop > . abbitmq-server.bat - and it ran fine - hope this can help someone else. Love the videos!
Thank you for that - this can be such an awkward setup - in addition for anyone struggling, I have made a tutorial in the docker series where you can easily get Redis working in Docker with Django 👍
Initially, I did not get how to execute it but later these 2 steps I got it in PowerShell as admin 1)C:\Program Files\RabbitMQ Server abbitmq_server-3.8.9\sbin>. abbitmq-service.bat stop 2)C:\Program Files\RabbitMQ Server abbitmq_server-3.8.9\sbin>. abbitmq-server.bat
I had a problem with Rabbitmq Server, when i ran rabbitmq server file as an administrator the cmd opened and loaded for a while and then it was closed for no reason, I even don't know the error to search for in google.
Hi bro, I tried to follow all the steps you have done, I started my windows as an administrator then I installed erlang and rabbitmq from the page you mentioned, however I got a failure boot error....do you have any idea why I got that error? thanks in advance
Hi Mon, it is tricky to help you from a distance with this one, but I would be first interested in seeing the error log or if there is an error code? I presume you have done the normal things of turn it off and on again 😊 - Does Celery load up okay? What version of Windows are you using? Did you install it in the default folder? How are you trying to run the package - you said as administrator, do you start Rabbit as Admin? Have you tried reinstalling it? If there is any other text/error messages that would be interesting to know about if you can paste it here
@@veryacademy I reinstalled Erlang and Rabbitmq, now I am getting a message saying Erlang_Home not set correctly even though when I installed Erlang and rabbitmq I was logged on as an administrator. I am using windows 10 and I tried to run it by right clicking on the server file and choosing run as administrator as you have shown in the video
Ok so I installed an older version of Erlang 23.0.2 which helped a bit. Now when I start the RabbitMQ server with the start option it actually starts without any error, but if I go to open the server file as an administrator it still crashes. Can I just use the start option and not worry about opening it manually ?
@@veryacademy Hey..Even i am getting same error as @Mon W . Iam on the version 3.8.11...When i start the RabbitMQ server with thhe start option from the start menu..it actualy starts, but if i try to open the file as admin , it throws up boot error.
On windows i am getting: raise VerificationError('%s: %s' % (e.__class__.__name__, e)) cffi.VerificationError: CompileError: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.35.32215\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2 using python 3.10 and celery 5.2.7 do you have any idea?
OMG thank you. I was looking on every forum and no one gave me a solution, until I watched your video.
👍
So true. Never find this solution anywhere else. This man is a genius.
Thank you sooo much. "--pool=solo" is a life savior. Why people have not discussed it much. You are the best.
Oh my gosh!!!! Thank you, thank youuuu sir!!!! I've been sitting for 16 hours for this problem.
I had set everything up on my windows machine after quite a bit of hassle. And then, when I saw I saw the title of this video, I thought let's just skip it. But then I didn't and thankfully I learnt a couple of new things like I wasn't doing like --pool=solo. I didn't know that. Hence, Iwas seeing received msg on the celery terminal but not the result from the add function. Thanks man.
thank you so much dear sir.
i am trying celery since last 3 days and have checked many tutorials and blogs and no one mention --pool=solo
you mentioned this.
and it done my work
thanx agai sir.
You are most welcome. Do try docker though.
Great simple video, Many thanks.
I had the following problems with solutions.
*RabbitMQ server wouldn't start - Answer: It was already running in the background so I had to load "RabbitMQ Server - stop" from the windows start menu.
*On running celery command I got "No Module named 'grp'" - Answer: It needs an earlier version to work. So I needed to :
pip uninstall celery
pip install celer==5.0.5
This worked, thanks man.
You are a god amongst men. Thank you for that windows trick!
Glad it helped
THIS HELPED ME A LOT! I'm using Windows, and I initially used your Ubuntu tutorial to use Celery, and I was wondering why my Windows machine never printed the 'print()' nor 'return' statements from my tasks. Turns out that I had to use the '--pool=solo' command. THANKS!
Thank you so much. This was very helpful.
You're very welcome!
I don't know speak english verry well but thank you verry much i done 3 weeks to search solution (grâce à toi j'ai pu résoudre le problème merci)
It works with latest stuff (python, django, RabbitMQ) ("--pool=solo" is a life savior).
great i had this problem running celery on windows, but adding --pool=solo was the solution.tnx
Thanks for keeping it simple and effective
You're welcome!
This Work for me !!
* Celery : v4.3.0
* pip install gevent
* celery -A worker -l info -P gevent
* my tasks.py file is in the same directory as manage.py
Thank you. This worked!
Glad it helped!
Do i need to mention broker url as well?
Sir you are just awesome :-)
I am getting "Error: Invalid value for '-A' / '--app': module 'proj.celery' has no attribute 'celery'" after running "celery -A proj worker -l info --pool=solo".
What celery version are you using? Some people have have had problems with celery 5 and the A command.
@@veryacademy Yes I am using celery 5. Which version should I use ? Thanks.
same problem
Thanks bro! You saved my day.
Glad I could help - this can be a nightmare to get started in some Window environments! Hopefully all is good for you.
@@veryacademy yeah it worked like a charm.
Turns out the last piece of command '--pool=solo' was what's missing in my case..
Thanks again mate..keep them great vids coming.
@@kelvinmagar7120 This might be worth a read, as using this might have some implications when remote-controlling (not sure what you are planning) www.distributedpython.com/2018/10/26/celery-execution-pool/
Please, did someone deployed django and celery to a windows server instance? How to properly run it without docker in a production enviroment?
This is perfect! Well done 👍 thank you so much 😊
Glad you like it!
You save my life bro! I have been dealing with tasks that are accepted but never been executed due to the way I started the worker (without pool=true) 🤦♂Is there any doc where celery explain that? I read a lot but never found something like that. Anyway, Thank you so much! Greetings from colombia 👋
It gives me an error every time:
ModuleNotFoundError: No module named 'grp'
if u find a solution please tell because I have this problem too
@@yousifshalby3421 @pranjul singh Hi guys, I found the answer to this on Stack Overflow. It's to do with the version of celery. You need to go to a previous version, with the following:
pip uninstall celery
pip install celery==5.0.5
me too have the same problem
Initially, I did not get how to execute it but later these 2 steps I got it in PowerShell as admin
1)C:\Program Files\RabbitMQ Server
abbitmq_server-3.8.9\sbin>.
abbitmq-service.bat stop
2)C:\Program Files\RabbitMQ Server
abbitmq_server-3.8.9\sbin>.
abbitmq-server.bat
Thanks a lot
Thank you!
You're welcome!
Using windows 8 with the steps u have shown here, its showing ....Please either set ERLANG_HOME to point to your Erlang installation or place the RabbitMQ server distribution in the Erlang lib folder
Thank you Ansel, really sorry I don't have a copy of Windows 8.1 to test this problem. However it sounds like you need to go to Start > Settings > Control Panel > System > Advanced > Environment Variables. Create the system environment variable ERLANG_HOME and set it to the full path of the directory which contains bin\erl.exe. 👍
I will try. I really appreciate your quick response...this issue has hang me up for a while now...i appreciate u.
Any luck?
Its still not working
I don't know whether this issue is specifically to windows 8.1??
mmm how deploy on windows server?
So the error I got was "BOOT FAILURE" "[error] ERROR: distribution port 25672 in use by another node: rabbit@DESKTOP" when I tried to start rabbitmq-server.bat
To resolve it I opened powershell as admin > cd ../../ > cd '.\Program Files\RabbitMQ Server
abbitmq_server-3.8.9\sbin\' > .
abbitmq-service.bat stop > .
abbitmq-server.bat - and it ran fine - hope this can help someone else.
Love the videos!
Thank you for that - this can be such an awkward setup - in addition for anyone struggling, I have made a tutorial in the docker series where you can easily get Redis working in Docker with Django 👍
Thank you very much, it worked for me
Initially, I did not get how to execute it but later these 2 steps I got it in PowerShell as admin
1)C:\Program Files\RabbitMQ Server
abbitmq_server-3.8.9\sbin>.
abbitmq-service.bat stop
2)C:\Program Files\RabbitMQ Server
abbitmq_server-3.8.9\sbin>.
abbitmq-server.bat
Hey can you tell me how I could run this in a production environment on windows?
Hi Rimsha, I can honestly say I have never run in Windows in production.
@@veryacademy thanks for your reply!
I had a problem with Rabbitmq Server, when i ran rabbitmq server file as an administrator the cmd opened and loaded for a while and then it was closed for no reason, I even don't know the error to search for in google.
had a similar problem (cmd window was open maby for one milisecond), then installed erlang as an admin and it worked
@@leonwinkel6084 thanks so much I will try it
@@leonwinkel6084 i am getting an error while installing erlang as admin...did you find any such issues as well?
Hello, can you please explain more about docker?
Sure can 👍
Hi bro, I tried to follow all the steps you have done, I started my windows as an administrator then I installed erlang and rabbitmq from the page you mentioned, however I got a failure boot error....do you have any idea why I got that error? thanks in advance
Hi Mon, it is tricky to help you from a distance with this one, but I would be first interested in seeing the error log or if there is an error code? I presume you have done the normal things of turn it off and on again 😊 - Does Celery load up okay? What version of Windows are you using? Did you install it in the default folder? How are you trying to run the package - you said as administrator, do you start Rabbit as Admin? Have you tried reinstalling it? If there is any other text/error messages that would be interesting to know about if you can paste it here
@@veryacademy I reinstalled Erlang and Rabbitmq, now I am getting a message saying Erlang_Home not set correctly even though when I installed Erlang and rabbitmq I was logged on as an administrator. I am using windows 10 and I tried to run it by right clicking on the server file and choosing run as administrator as you have shown in the video
Ok so I installed an older version of Erlang 23.0.2 which helped a bit. Now when I start the RabbitMQ server with the start option it actually starts without any error, but if I go to open the server file as an administrator it still crashes. Can I just use the start option and not worry about opening it manually ?
@@veryacademy Hey..Even i am getting same error as @Mon W . Iam on the version 3.8.11...When i start the RabbitMQ server with thhe start option from the start menu..it actualy starts, but if i try to open the file as admin , it throws up boot error.
You keep saying "virtual machine" in this video. Don't you mean "virtual environment?"
On windows i am getting: raise VerificationError('%s: %s' % (e.__class__.__name__, e))
cffi.VerificationError: CompileError: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.35.32215\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2 using python 3.10 and celery 5.2.7 do you have any idea?