"Failed to get real commands" when trying to run django's manage.py tasks.
I upgraded to 4.5 today and now when I run tools -> run manage.py task it says "fetching django commands" with a progress bar, then dies with the error "Failed to get real commands on module <modulename>, python process died with code 0: unknown error.
It does pop open the "new?" manage.py@<modulename> window down below, and running tasks there seems to work ok. I've restarted the application but the error still appears. So I can no longer use the popup window for run manage.py task.
Any thoughts?
It does pop open the "new?" manage.py@<modulename> window down below, and running tasks there seems to work ok. I've restarted the application but the error still appears. So I can no longer use the popup window for run manage.py task.
Any thoughts?
Please sign in to leave a comment.
Could you please attach screenshot which shows the issue?
I started modifying my settings file according to the changes in Django 1.8 and during the developing process I used print in the file as a poor mans debugger. Somehow this new manage.py stuff doesn't like this. When I removed the print everything was fine.
Thanks for your reply.
Jared, do you have the same problem? Could you please attach screenshot with the issue?
Hi Anna,
Matthias was correct. I had "development" settings file that loads settings.py first then adds some development django 'apps' that aren't in the main settings file. Bottom line is there was a print statement that said something like 'running with dev1 settings' which broke things. After commenting the print everything seems to work fine now. Thanks!
Hey,
I am getting the same error here is the screenshot. This app i just created today. Like an year back I have created some applications which work well but the new one gives this error. That time I used to use a licensed version and now my license got expired has this been an impact on the newly created project?
I had a similar issue:
I believe the issue was caused by having created another project with the same name and/or deleting a project in the same place and re-creating.
I resolved it by going to File > Settings > Project: [myprojectname] > Project Interpreter (or ctrl + alt+ s)
Click the cog icon in the top right
Select "Show All..."
Now delete duplicated or broken Interpreters
OK (the project interpreters window)
On the Settings window (ctrl + alt + s), make sure a correct project interpreter is selected.
OK