mirror of
https://github.com/healthchecks/healthchecks.git
synced 2026-04-25 23:15:49 +03:00
[GH-ISSUE #441] ModuleNotFoundError: No module named 'cron_descriptor' #328
Labels
No labels
bug
bug
bug
feature
good-first-issue
new integration
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/healthchecks#328
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @blade1989 on GitHub (Oct 20, 2020).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/441
I keep getting this error, but when I try to install it, I get
Requirement already satisfied:message.@cuu508 commented on GitHub (Oct 20, 2020):
I would first check if there's any issue with virtualenv. Perhaps the package is installed in a different virtualenv, or is installed globally, or something along these lines.
manage.py runserver? Is it running inside an activated virtualenv?@blade1989 commented on GitHub (Oct 20, 2020):
I installed it in multiple ways, via virtualenv:
Also via root terminal I executed
pip install pretty-cron.After the update, I executed
pip install -r requirements.txt, But, no luck. the same error is presentI am using gunicorn with nginx to excecute the healthchecks
@blade1989 commented on GitHub (Oct 20, 2020):
@cuu508 my apologize, wrong button
@cuu508 commented on GitHub (Oct 20, 2020):
When/how do you get the error? while running manage.py runserver? Is it running inside an activated virtualenv?
Can you check if
cron-descriptorshows up in the output ofpip freezewhen the virtualenv is active?@blade1989 commented on GitHub (Oct 20, 2020):
Yes, I can clearly see
cron-descriptor==1.2.24in the output ofpip freeze.I just edited my previous comment, added:
I am using gunicorn with nginx to excecute the healthchecks. In case you missed that@cuu508 commented on GitHub (Oct 20, 2020):
How do you launch gunicorn? Is it installed in the virtualenv or globally?
@blade1989 commented on GitHub (Oct 20, 2020):
While visiting healthchecks via browser
I excecute it via
gunicorn hc.wsgi -w 4. I don't know if the virtualenv is being used. I think its globally? 🤔@cuu508 commented on GitHub (Oct 20, 2020):
My hunch would be that you have every dependency except cron-descriptor also installed globally, and gunicorn is not using the virtualenv.
@blade1989 commented on GitHub (Oct 20, 2020):
I also get the error from executing
./manage.py migrate@blade1989 commented on GitHub (Oct 20, 2020):
How do I make gunicorn use the virtualenv?
@cuu508 commented on GitHub (Oct 20, 2020):
One way to do that is to install gunicorn inside the virtualenv. And then run hc-venv/bin/gunicorn instead of /usr/local/bin/gunicron (or wherever it gets installed globally)
@cuu508 commented on GitHub (Oct 21, 2020):
Hey @blade1989, did you find out what the issue was?