DjangoGirls / djangogirls

Website for DjangoGirls.org
http://djangogirls.org/
BSD 3-Clause "New" or "Revised" License
462 stars 283 forks source link

ModuleNotFoundError: No module named 'djrill' #725

Closed sentry-io[bot] closed 2 years ago

sentry-io[bot] commented 2 years ago

Sentry Issue: DJANGO-GIRLS-WEBSITE-2S

ModuleNotFoundError: No module named 'djrill'
(25 additional frame(s) were not displayed)
...
  File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
amakarudze commented 2 years ago

To provide more context, this error is being triggered by a management command, core/management/handle_emails.py which is supposed to send automatic emails to organizers but is somehow broken after we switched from using Mandrill which had djrill dependency to using Sendgrid. These are the lines that are throwing this exception:

amakarudze commented 2 years ago

Just realised the source of this error stack, which is environment variables defined in multiple places on the server and should be fixed there.