minutely cronjobs: ModuleNotFoundError: No module named 'settings
Hi,
on a system running Debian 10 the minutely cronjobs fail since it was rebooted. The following is the output of django-admin >/dev/null && django-admin runjobs minutely --pythonpath /usr/share/mailman3-suite --settings settings
Traceback (most recent call last): File "/usr/bin/django-admin", line 21, in <module> management.execute_from_command_line() File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 364, in execute_from_command_line utility.execute() File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 308, in execute settings.INSTALLED_APPS File "/usr/lib/python3/dist-packages/django/conf/__init__.py", line 56, in __getattr__ self._setup(name) File "/usr/lib/python3/dist-packages/django/conf/__init__.py", line 41, in _setup self._wrapped = Settings(settings_module) File "/usr/lib/python3/dist-packages/django/conf/__init__.py", line 110, in __init__ mod = importlib.import_module(self.SETTINGS_MODULE) File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1006, in _gcd_import File "<frozen importlib._bootstrap>", line 983, in _find_and_load File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked ModuleNotFoundError: No module named 'settings'
I'm wondering why this module is missing and reinstalled several django packages, but none of them has explicitly a settings module.
Kind regards Bjoern
On 2/7/20 4:10 AM, Bjoern Franke wrote:
on a system running Debian 10 the minutely cronjobs fail since it was rebooted. The following is the output of django-admin >/dev/null && django-admin runjobs minutely --pythonpath /usr/share/mailman3-suite --settings settings
...
I'm wondering why this module is missing and reinstalled several django packages, but none of them has explicitly a settings module.
The settings module that's missing is your Django settings.py for HyperKitty and Postorius. Based on your command above, it should be found at /usr/share/mailman3-suite/settings.py
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Hi,
The settings module that's missing is your Django settings.py for HyperKitty and Postorius. Based on your command above, it should be found at /usr/share/mailman3-suite/settings.py
thanks for the hint, it seems there were some remains to be cleaned up after Debian changed from mailman3-suite to mailman3-web.
Best Regards Bjoern
participants (2)
-
Bjoern Franke
-
Mark Sapiro