[GH-ISSUE #1437] "deploy instance" failed #1139

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

Originally created by @bigdocloud on GitHub (Mar 19, 2018).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1437

Impacted versions

  • Modoboa: 1.10.3
  • installer used: No ?
  • Webserver:

Steps to reproduce

$ modoboa-admin.py deploy instance --collectstatic --domain mail.peop.com --dburl default:postgres://dev:dev@localhost:5432/peopmail

Current behavior

Traceback (most recent call last):
File "/home/dd/anaconda3/envs/py35mail/bin/modoboa-admin.py", line 9, in
handle_command_line()
File "/home/dd/anaconda3/envs/py35mail/lib/python3.5/site-packages/modoboa/core/commands/init.py", line 87, in handle_command_line
commands = scan_for_commands()
File "/home/dd/anaconda3/envs/py35mail/lib/python3.5/site-packages/modoboa/core/commands/init.py", line 70, in scan_for_commands
[smart_str(cmdname)])
File "/home/dd/anaconda3/envs/py35mail/lib/python3.5/site-packages/modoboa/core/commands/deploy.py", line 27, in
import pip
File "/home/dd/anaconda3/envs/py35mail/lib/python3.5/site-packages/pip/init.py", line 45, in
from pip.vcs import git, mercurial, subversion, bazaar # noqa
File "/home/dd/anaconda3/envs/py35mail/lib/python3.5/site-packages/pip/vcs/mercurial.py", line 9, in
from pip.download import path_to_url
File "/home/dd/anaconda3/envs/py35mail/lib/python3.5/site-packages/pip/download.py", line 40, in
from pip._vendor import requests, six
File "/home/dd/anaconda3/envs/py35mail/lib/python3.5/site-packages/pip/_vendor/requests/init.py", line 98, in
from . import packages
File "/home/dd/anaconda3/envs/py35mail/lib/python3.5/site-packages/pip/_vendor/requests/packages.py", line 12, in
sys.modules['pip._vendor.requests.packages.' + mod] = sys.modules["pip._vendor." + mod]
KeyError: 'pip._vendor.urllib3.contrib'

Expected behavior

modoboa installed.

Hi guys, not sure if it is a bug. It is a fresh env: python3.5.4 + modoboa1.10.3
even i run ''help deploy", it generates similar issue.

Originally created by @bigdocloud on GitHub (Mar 19, 2018). Original GitHub issue: https://github.com/modoboa/modoboa/issues/1437 # Impacted versions * Modoboa: 1.10.3 * installer used: No ? * Webserver: # Steps to reproduce $ modoboa-admin.py deploy instance --collectstatic --domain mail.peop.com --dburl default:postgres://dev:dev@localhost:5432/peopmail # Current behavior Traceback (most recent call last): File "/home/dd/anaconda3/envs/py35mail/bin/modoboa-admin.py", line 9, in handle_command_line() File "/home/dd/anaconda3/envs/py35mail/lib/python3.5/site-packages/modoboa/core/commands/init.py", line 87, in handle_command_line commands = scan_for_commands() File "/home/dd/anaconda3/envs/py35mail/lib/python3.5/site-packages/modoboa/core/commands/init.py", line 70, in scan_for_commands [smart_str(cmdname)]) File "/home/dd/anaconda3/envs/py35mail/lib/python3.5/site-packages/modoboa/core/commands/deploy.py", line 27, in import pip File "/home/dd/anaconda3/envs/py35mail/lib/python3.5/site-packages/pip/init.py", line 45, in from pip.vcs import git, mercurial, subversion, bazaar # noqa File "/home/dd/anaconda3/envs/py35mail/lib/python3.5/site-packages/pip/vcs/mercurial.py", line 9, in from pip.download import path_to_url File "/home/dd/anaconda3/envs/py35mail/lib/python3.5/site-packages/pip/download.py", line 40, in from pip._vendor import requests, six File "/home/dd/anaconda3/envs/py35mail/lib/python3.5/site-packages/pip/_vendor/requests/init.py", line 98, in from . import packages File "/home/dd/anaconda3/envs/py35mail/lib/python3.5/site-packages/pip/_vendor/requests/packages.py", line 12, in sys.modules['pip._vendor.requests.packages.' + mod] = sys.modules["pip._vendor." + mod] KeyError: 'pip._vendor.urllib3.contrib' # Expected behavior modoboa installed. Hi guys, not sure if it is a bug. It is a fresh env: python3.5.4 + modoboa1.10.3 even i run ''help deploy", it generates similar issue.
Author
Owner

@maisim commented on GitHub (Mar 19, 2018):

Seems to be a bug with pip 9.0.2 (released 2 days ago)
https://github.com/pypa/pip/issues/5079
Can you try with pip 9.0.1 ?
pip install pip==9.0.1

<!-- gh-comment-id:374223412 --> @maisim commented on GitHub (Mar 19, 2018): Seems to be a bug with pip 9.0.2 (released 2 days ago) https://github.com/pypa/pip/issues/5079 Can you try with pip 9.0.1 ? pip install pip==9.0.1
Author
Owner

@ghost commented on GitHub (Mar 19, 2018):

@haolle try deleting the pip cache in ~/.cache/pip

<!-- gh-comment-id:374274907 --> @ghost commented on GitHub (Mar 19, 2018): @haolle try deleting the pip cache in ```~/.cache/pip```
Author
Owner

@bigdocloud commented on GitHub (Mar 19, 2018):

yeah, I downgraded pip to 9.0.1 and reinstalled modoboa, and then the instance deployment process passed.
thanks for all replies and suggestions.

<!-- gh-comment-id:374402304 --> @bigdocloud commented on GitHub (Mar 19, 2018): yeah, I downgraded pip to 9.0.1 and reinstalled modoboa, and then the instance deployment process passed. thanks for all replies and suggestions.
Author
Owner

@bigdocloud commented on GitHub (Mar 19, 2018):

manually install modoboa.
cannot locate modoboa instance to configure cron file. can anyone tell the instance path?
thanks.

<!-- gh-comment-id:374424481 --> @bigdocloud commented on GitHub (Mar 19, 2018): manually install modoboa. cannot locate modoboa instance to configure cron file. can anyone tell the instance path? thanks.
Author
Owner

@bigdocloud commented on GitHub (Mar 20, 2018):

alright, i found it in current folder where i ran the deploy command. instance folder name is "instance".

<!-- gh-comment-id:374434627 --> @bigdocloud commented on GitHub (Mar 20, 2018): alright, i found it in current folder where i ran the deploy command. instance folder name is "instance".
Author
Owner

@maisim commented on GitHub (Mar 20, 2018):

#1439

<!-- gh-comment-id:374509757 --> @maisim commented on GitHub (Mar 20, 2018): #1439
Author
Owner

@kryskool commented on GitHub (Mar 24, 2018):

The PR #1439 have been merged
I close this issue

<!-- gh-comment-id:375855456 --> @kryskool commented on GitHub (Mar 24, 2018): The PR #1439 have been merged I close this issue
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#1139
No description provided.