mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-25 17:06:01 +03:00
[GH-ISSUE #1437] "deploy instance" failed #1139
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#1139
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bigdocloud on GitHub (Mar 19, 2018).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1437
Impacted versions
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.
@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
@ghost commented on GitHub (Mar 19, 2018):
@haolle try deleting the pip cache in
~/.cache/pip@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.
@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.
@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".
@maisim commented on GitHub (Mar 20, 2018):
#1439
@kryskool commented on GitHub (Mar 24, 2018):
The PR #1439 have been merged
I close this issue