Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation broken on brand-new Digital Ocean box #1081

Closed
miracle2k opened this issue Jan 24, 2017 · 10 comments
Closed

Installation broken on brand-new Digital Ocean box #1081

miracle2k opened this issue Jan 24, 2017 · 10 comments

Comments

@miracle2k
Copy link

This happens to be every time:

  1. Set up a fresh Digital Ocean box with 14.04.
  2. Do apt-get update && apt-get upgrade.
  3. Run curl -s https://mailinabox.email/setup.sh | sudo bash

It fails here:

FAILED: pip3 install --upgrade rtyaml email_validator>=1.0.0 free_tls_certificates>=0.1.3 idna>=2.0.0 cryptography>=1.0.2 boto psutil
.....
.....
ImportError: No module named 'packaging'

Full error here: https://gist.github.com/miracle2k/3f84f408db3a3143a01ad27c2645554c

Afterwards, pip3 is completely broken:

root@mail1:~# pip3
Traceback (most recent call last):
  File "/usr/bin/pip3", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/local/lib/python3.4/dist-packages/pkg_resources/__init__.py", line 70, in <module>
    import packaging.version
ImportError: No module named 'packaging'
@miracle2k
Copy link
Author

It seems to be related to cryptography pulling in a setuptools update.

I can make it work by manually upgrading setuptools first, before installing mailinabox:

pip3 install --upgrade setuptools

@cromulus
Copy link
Contributor

Perhaps make a pull request with those changes?

@AshFrancis
Copy link

AshFrancis commented Jan 25, 2017

miracle2k, could you let me know the steps to fix my installation if possible. I upgraded from 0.20 to 0.21b and pip3 is now broken as is the admin status check page.

@cromulus
Copy link
Contributor

I have replicated this.
Will try to put together a PR as this is currently a blocker for me adding new hosts.

@cromulus
Copy link
Contributor

Looks like it's an upstream issue with pip: pypa/pip#4253
I've tried the manual installation of setuptools with pip3 install --upgrade setuptools and I'm still getting the error.

I'm not exactly sure how to proceed.

@miracle2k
Copy link
Author

@AshFrancis I wasn't able to fix it, I just tried a fresh VM.

@akrawchyk
Copy link

akrawchyk commented Jan 25, 2017

I ran into this as well and was able to workaround the issue by upgrading pip3 using easy_install:

sudo easy_install -U pip3

@AshFrancis
Copy link

AshFrancis commented Jan 26, 2017

Thank you all, this fix from the discourse seems to have worked:
https://discourse.mailinabox.email/t/unable-to-run-mailinabox-command/1840/14

@cromulus
Copy link
Contributor

duplicate of #1080

@JoshData
Copy link
Member

JoshData commented Feb 2, 2017

Fixed in v0.21c posted this morning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants