Closed AgentDaun closed 4 years ago
Sorry, but this is too broad for me to help. You're probably not in the right virtual environment, or running the wrong python executable.
@AgentDaun unintall your django_dramitq and reinstall it. That question is you virualenv promble, i meet it once
Hey there! I have the same issue and I think it is because I don't use a virtualenv. When I have a closer look at the stack trace the problem is that the dramatic executable is searched inside the python bin directory. If you use Anaconda (like me) then it is located inside the %PythonRoot%/Scripts folder and this is why the error says "No such file or directory".
To make it find the right executable you can replace the function "_resolve_executable" in the folder %PythonRoot%/lib/site-packages/django_dramatiq/management/commands/rundramatiq.py with the following:
def _resolve_executable(self, exec_name):
bin_dir = os.path.dirname(sys.executable)
bin_dir = os.path.join(bin_dir, "Scripts")
if bin_dir:
return os.path.join(bin_dir, exec_name)
return exec_name
I hope this helps!
I get the same error using a Windows Docker Container with base image Python:3.7. It works perfectly with Linux Containers.
Getting Windows and Linux support was the main reason why I would like to switch from Celery to Dramatiq. Is there any chance to get this fixed? Search in both directories?
@magraeber Searching both directories seems reasonable, but I don't have a Windows machine to test this. If anyone is willing to do the work, I'll happily merge such a change.
@Bogdanp Perfect, I will work on that and prepare a pull request.
Closed in 4c70775bbdd7b4a6844afeec48ddb58d3bb7275d
settings.py:
I've installed "django_dramatiq, dramatiq, watch, Redis" in /admin exists all tasks that i created