[GH-ISSUE #511] cleanlogs command not working #490

Closed
opened 2026-02-27 11:12:02 +03:00 by kerem · 0 comments
Owner

Originally created by @carragom on GitHub (Jan 18, 2014).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/511

Originally assigned to: @tonioo on GitHub.

Hi,

Modoboa 1.1.0 here, when I run:

python /opt/modoboa_admin/manage.py cleanlogs

I get the following error:

Traceback (most recent call last):
  File "/opt/modoboa_admin/manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 453, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 272, in fetch_command
    klass = load_command_class(app_name, subcommand)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 77, in load_command_class
    module = import_module('%s.management.commands.%s' % (app_name, name))
  File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/usr/local/lib/python2.7/dist-packages/modoboa/core/management/commands/cleanlogs.py", line 7, in <module>
    from modoboa.core import load_settings
ImportError: cannot import name load_settings
Originally created by @carragom on GitHub (Jan 18, 2014). Original GitHub issue: https://github.com/modoboa/modoboa/issues/511 Originally assigned to: @tonioo on GitHub. Hi, Modoboa 1.1.0 here, when I run: ``` python /opt/modoboa_admin/manage.py cleanlogs ``` I get the following error: ``` Traceback (most recent call last): File "/opt/modoboa_admin/manage.py", line 10, in <module> execute_from_command_line(sys.argv) File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 453, in execute_from_command_line utility.execute() File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 392, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 272, in fetch_command klass = load_command_class(app_name, subcommand) File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 77, in load_command_class module = import_module('%s.management.commands.%s' % (app_name, name)) File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module __import__(name) File "/usr/local/lib/python2.7/dist-packages/modoboa/core/management/commands/cleanlogs.py", line 7, in <module> from modoboa.core import load_settings ImportError: cannot import name load_settings ```
kerem 2026-02-27 11:12:02 +03:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#490
No description provided.