[GH-ISSUE #881] Autoreply showing swagger problem in log #780

Closed
opened 2026-02-27 11:13:30 +03:00 by kerem · 4 comments
Owner

Originally created by @benfante on GitHub (May 19, 2016).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/881

Hi,
when an e-mail is relayed through autoreply I see following message in the log (and the autoreply doesn't work, of course). Any Idea? I'm running Modoboa 1.5.3, with Postfix autoreply plugin 1.1.6.

May 19 10:03:45 mail postfix/pipe[3323]: 282432069B9: to=<email@mydomain@autoreply.mydomain>, orig_to=<email@mydomain>, relay=autoreply, delay=5.3, delays=0.13/0.03/0/5.1, dsn=5.3.0, status=bounced (Command died with status 1: "/opt/environments/modoboa/bin/python". Command output: Traceback (most recent call last): File "/var/www/modoboa_benfante/manage.py", line 10, in <module> execute_from_command_line(sys.argv) File "/opt/environments/modoboa/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line utility.execute() File "/opt/environments/modoboa/lib/python2.7/site-packages/django/core/management/__init__.py", line 328, in execute django.setup() File "/opt/environments/modoboa/lib/python2.7/site-packages/django/__init__.py", line 18, in setup apps.populate(settings.INSTALLED_APPS) File "/opt/environments/modoboa/lib/python2.7/site-packages/django/apps/registry.py", line 85, in populate app_config = AppConfig.create(entry) File "/opt/environments/modoboa/lib/python2.7/site-packages/django/apps/config.py", line 86, in create module = import_module(entry) File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) ImportError: No module named rest_framework_swagger )

Originally created by @benfante on GitHub (May 19, 2016). Original GitHub issue: https://github.com/modoboa/modoboa/issues/881 Hi, when an e-mail is relayed through autoreply I see following message in the log (and the autoreply doesn't work, of course). Any Idea? I'm running Modoboa 1.5.3, with Postfix autoreply plugin 1.1.6. `May 19 10:03:45 mail postfix/pipe[3323]: 282432069B9: to=<email@mydomain@autoreply.mydomain>, orig_to=<email@mydomain>, relay=autoreply, delay=5.3, delays=0.13/0.03/0/5.1, dsn=5.3.0, status=bounced (Command died with status 1: "/opt/environments/modoboa/bin/python". Command output: Traceback (most recent call last): File "/var/www/modoboa_benfante/manage.py", line 10, in <module> execute_from_command_line(sys.argv) File "/opt/environments/modoboa/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line utility.execute() File "/opt/environments/modoboa/lib/python2.7/site-packages/django/core/management/__init__.py", line 328, in execute django.setup() File "/opt/environments/modoboa/lib/python2.7/site-packages/django/__init__.py", line 18, in setup apps.populate(settings.INSTALLED_APPS) File "/opt/environments/modoboa/lib/python2.7/site-packages/django/apps/registry.py", line 85, in populate app_config = AppConfig.create(entry) File "/opt/environments/modoboa/lib/python2.7/site-packages/django/apps/config.py", line 86, in create module = import_module(entry) File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) ImportError: No module named rest_framework_swagger )`
kerem closed this issue 2026-02-27 11:13:30 +03:00
Author
Owner

@tonioo commented on GitHub (May 20, 2016):

It looks like your virtual environment is not fully functional because it tries to locate the missing requirement inside the default python installation (/usr/lib/python2.7).
I suggest you recreate your virtualenv.

<!-- gh-comment-id:220547652 --> @tonioo commented on GitHub (May 20, 2016): It looks like your virtual environment is not fully functional because it tries to locate the missing requirement inside the default python installation (/usr/lib/python2.7). I suggest you recreate your virtualenv.
Author
Owner

@tonioo commented on GitHub (Jun 2, 2016):

@benfante ping

<!-- gh-comment-id:223292836 --> @tonioo commented on GitHub (Jun 2, 2016): @benfante ping
Author
Owner

@benfante commented on GitHub (Jun 6, 2016):

Hi,
sorry for the late.

I spent some hours trying to solve this problem, but...no results. The error is still there.

I recreated the virtual environment environment and also reinstalled modoboa, but nothing changed.

I also installed the package django-rest-swagger in the root environment, and still nothing changed.

Can I try anything else?

<!-- gh-comment-id:223922975 --> @benfante commented on GitHub (Jun 6, 2016): Hi, sorry for the late. I spent some hours trying to solve this problem, but...no results. The error is still there. I recreated the virtual environment environment and also reinstalled modoboa, but nothing changed. I also installed the package django-rest-swagger in the root environment, and still nothing changed. Can I try anything else?
Author
Owner

@benfante commented on GitHub (Jun 7, 2016):

Sorry, I was updating the wrong virtual environment. Now it's ok.

Thank you for your support.

<!-- gh-comment-id:224177329 --> @benfante commented on GitHub (Jun 7, 2016): Sorry, I was updating the wrong virtual environment. Now it's ok. Thank you for your support.
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#780
No description provided.