[GH-ISSUE #1699] Error on check_mx using verbose output #1338

Closed
opened 2026-02-27 11:16:35 +03:00 by kerem · 5 comments
Owner

Originally created by @y0va on GitHub (Mar 12, 2019).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1699

Impacted versions

  • Modoboa: 1.13.1
  • installer used: Yes, on install, no on upgrade
  • Webserver: Nginx

Steps to reproduce

Execute check_mx with verbosity levels:

python manage.py modo -v 3 check_mx

Current behavior

$ python manage.py modo -v 3  check_mx
/srv/modoboa/env/local/lib/python2.7/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.
  """)
Traceback (most recent call last):
  File "manage.py", line 22, in <module>
    execute_from_command_line(sys.argv)
  File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
    utility.execute()
  File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 356, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/srv/modoboa/env/local/lib/python2.7/site-packages/subcommand/base.py", line 53, in run_from_argv
    return super(SubcommandCommand, self).run_from_argv(argv)
  File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/core/management/base.py", line 283, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/core/management/base.py", line 330, in execute
    output = self.handle(*args, **options)
  File "/srv/modoboa/env/local/lib/python2.7/site-packages/subcommand/base.py", line 80, in handle
    command = command_class(**command_class_kwargs)
TypeError: 'NoneType' object is not callable

python manage.py modo check_mx

Runs without error.

Expected behavior

I see what happens when running python manage.py modo -v 3 mx_check.

Originally created by @y0va on GitHub (Mar 12, 2019). Original GitHub issue: https://github.com/modoboa/modoboa/issues/1699 # Impacted versions * Modoboa: 1.13.1 * installer used: Yes, on install, no on upgrade * Webserver: Nginx # Steps to reproduce Execute `check_mx` with verbosity levels: `python manage.py modo -v 3 check_mx` # Current behavior ``` $ python manage.py modo -v 3 check_mx /srv/modoboa/env/local/lib/python2.7/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>. """) Traceback (most recent call last): File "manage.py", line 22, in <module> execute_from_command_line(sys.argv) File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line utility.execute() File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 356, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/srv/modoboa/env/local/lib/python2.7/site-packages/subcommand/base.py", line 53, in run_from_argv return super(SubcommandCommand, self).run_from_argv(argv) File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/core/management/base.py", line 283, in run_from_argv self.execute(*args, **cmd_options) File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/core/management/base.py", line 330, in execute output = self.handle(*args, **options) File "/srv/modoboa/env/local/lib/python2.7/site-packages/subcommand/base.py", line 80, in handle command = command_class(**command_class_kwargs) TypeError: 'NoneType' object is not callable ``` `python manage.py modo check_mx` Runs without error. # Expected behavior I see what happens when running `python manage.py modo -v 3 mx_check`.
kerem 2026-02-27 11:16:35 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@cremesk commented on GitHub (Mar 12, 2019):

Some here.
Is a know Issue: 1664

<!-- gh-comment-id:471959957 --> @cremesk commented on GitHub (Mar 12, 2019): Some here. Is a know Issue: [1664](https://github.com/modoboa/modoboa/issues/1664)
Author
Owner

@y0va commented on GitHub (Mar 12, 2019):

No. As I wrote python manage.py modo check_mxcompletes without error on my system. It only fails if I pass the -v {1,2,3} switch.

<!-- gh-comment-id:471964609 --> @y0va commented on GitHub (Mar 12, 2019): No. As I wrote `python manage.py modo check_mx`completes **without** error on my system. It only fails if I pass the `-v {1,2,3}` switch.
Author
Owner

@cremesk commented on GitHub (Mar 12, 2019):

Okay thanks, good to know.

<!-- gh-comment-id:471985235 --> @cremesk commented on GitHub (Mar 12, 2019): Okay thanks, good to know.
Author
Owner

@gianks commented on GitHub (Oct 23, 2019):

Using --traceback causes the same problem here with modoboa 1.14.0

<!-- gh-comment-id:545450545 --> @gianks commented on GitHub (Oct 23, 2019): Using --traceback causes the same problem here with modoboa 1.14.0
Author
Owner

@tonioo commented on GitHub (Mar 4, 2020):

I think it's a python2 compat issue. It should be fixed now support has been dropped for this version.

<!-- gh-comment-id:594439614 --> @tonioo commented on GitHub (Mar 4, 2020): I think it's a python2 compat issue. It should be fixed now support has been dropped for this version.
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#1338
No description provided.