Mailcow-dockerized: Dockerapi Build Failed!

Created on 14 Nov 2018  路  3Comments  路  Source: mailcow/mailcow-dockerized

While building dockerapi locally its fail because of cryptography packet's cffi dependency. Here is the log

Collecting cryptography>=2.2.1 (from pyOpenSSL)
  Downloading https://files.pythonhosted.org/packages/d2/5f/6ed3135eb1e775187f7ecd4e7713f1415516725365e51f9786143f36e024/cryptography-2.4.1.tar.gz (468kB)
  Could not find a version that satisfies the requirement cffi!=1.11.3,>=1.7 (from versions: )
No matching distribution found for cffi!=1.11.3,>=1.7
You are using pip version 10.0.1, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
ERROR: Service 'dockerapi-mailcow' failed to build: The command '/bin/sh -c apk add -U --no-cache python2 python-dev py-pip gcc musl-dev tzdata openssl-dev libffi-dev   && pip2 install --upgrade docker==3.0.1 flask flask-restful pyOpenSSL   && apk del python-dev py2-pip gcc' returned a non-zero code: 1
bug

Most helpful comment

Upgrade pip with pip2 install --upgrade pip before install flask and other things with pip. It solved for me.

...
RUN apk add -U --no-cache python2 python2-dev py2-pip gcc musl-dev tzdata openssl-dev libffi-dev \
  && pip2 install --upgrade pip \
  && pip2 install --upgrade docker==3.0.1 flask flask-restful pyOpenSSL \
  && apk del python-dev py2-pip gcc
...

All 3 comments

Upgrade pip with pip2 install --upgrade pip before install flask and other things with pip. It solved for me.

...
RUN apk add -U --no-cache python2 python2-dev py2-pip gcc musl-dev tzdata openssl-dev libffi-dev \
  && pip2 install --upgrade pip \
  && pip2 install --upgrade docker==3.0.1 flask flask-restful pyOpenSSL \
  && apk del python-dev py2-pip gcc
...

Please reopen the issue, it should be fixed in the repository, too.
Thank you!

Yep, fixed it, thank you!

Edit: oh, but not yet pushed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

damdinsharav picture damdinsharav  路  3Comments

CrAazZyMaN21 picture CrAazZyMaN21  路  3Comments

constin picture constin  路  3Comments

K2rool picture K2rool  路  3Comments

Adorfer picture Adorfer  路  3Comments