modoboa / modoboa-dmarc

A set of tools to use DMARC through Modoboa.
MIT License
15 stars 11 forks source link

SyntaxError with Python 3.5 #24

Closed ghost closed 6 years ago

ghost commented 7 years ago

Hello,

I'm testing the latest version (v1.0.1) with Python 3.5, but I keep getting these errors from postfix:

Oct 27 18:19:28 foo postfix/pipe[13856]: 4E8B86003C: to=<dmarc@domain.tld>, relay=dmarc-rua-parser, delay=2.6, delays=0.98/0.02/0/1.6, dsn=5.3.0, status=bounced (Command died with status 1: "/srv/modoboa/venv/bin/python". Command output: Traceback (most recent call last):   File "/srv/modoboa/mdb/manage.py", line 22, in <module>     execute_from_command_line(sys.argv)   File "/srv/modoboa/venv/lib/python3.5/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line     utility.execute()   File "/srv/modoboa/venv/lib/python3.5/site-packages/django/core/management/__init__.py", line 359, in execute     self.fetch_command(subcommand).run_from_argv(self.argv)   File "/srv/modoboa/venv/lib/python3.5/site-packages/django/core/management/__init__.py", line 208, in fetch_command     klass = load_command_class(app_name, subcommand)   File "/srv/modoboa/venv/lib/python3.5/site-packages/django/core/management/__init__.py", line 40, in load_command_class     module = import_module('%s.management.commands.%s' % (app_name, name))   File "/srv/modoboa/venv/lib64/python3.5/importlib/__init__.py", line 126, in import_module     return _bootstrap._gcd_import(name[level:], package, level)   File "<frozen importlib._bootstrap>", line 986, in _gcd_import   File "<frozen importlib._bootstrap>", line 969, in _find_and_load   File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked   File "<frozen importlib._bootstrap>", line 673, in _load_unlocked   File "<frozen importlib._bootstrap_external>", line 669, in exec_module   File "<frozen importlib._bootstrap_external>", line 775, in get_code   File "<frozen importlib._bootstrap_external>", line 735, in source_to_code   File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed   File "/srv/modoboa/venv/lib/python3.5/site-packages/modoboa_dmarc/management/commands/import_aggregated_report.py", line 40     print "Nothing to do."                          ^ SyntaxError: Missing parentheses in call to 'print' )

Should I stay stick to Python 3.4 for a while? Though this is the only error I've encountered so far.

ghost commented 6 years ago

Merci beaucoup!