Closed pixdrift closed 6 years ago
Fixed in scope of https://github.com/ansible/ansible-container/pull/939
@pixdrift Workaround would be to downgrade pip to 0.9.3 in your virtualenv, until fixed version will be released to pypi
@Voronenko Any timeline / ETA on when a new release will be made?
In my opinion hotfix release from develop might be done already.
At a moment maintainers for pypi are: https://pypi.org/project/ansible-container/
@j00bar was about to help with that, once has some time.
Just got this error too trying to install ansible-conainer.. pip is now at version 18 and you want me to downgrade to 9?
Another workaround is to run version from git:
https://docs.ansible.com/ansible-container/installation.html#running-from-source
There are multiple options a) from source, as @morganchristiansson suggested b) virtualenv with downgraded pip https://github.com/softasap/sa-container-bootstrap/blob/master/box-example/alpine-37/Makefile#L32 c) Use other tools like packer https://github.com/softasap/sa-container-bootstrap/blob/master/box-example-packer/alpine-35/container.json d) Publish own forked package on pypi (see https://github.com/ansible/ansible-container/wiki/Publishing-(forked)-package-on-a-pypi) Example: https://pypi.org/project/sa-ansible-container/
I invite interested guys from community to try to reach official pypi package maintainers and invite them to release hotfix version of ansible-container from develop
Pypi maintainers are listed here: https://pypi.org/project/ansible-container/
At a moment, I have possibility only to keep develop in green state.
For own purposes, I am publishing unofficial build https://pypi.org/project/sa-ansible-container/ , based on ansible-container develop.
ISSUE TYPE
container.yml
OS / ENVIRONMENT
SUMMARY
When installing
ansible-container
from pypi usingpip
the setup step fails with an import errorSTEPS TO REPRODUCE
1. Ensure pip 10.0.1 is installed 2. Attempt to install ansible-container
Reverting the
pip
version to 9.0.1 resolves the issue andansible-container
installs correctly.EXPECTED RESULTS
ansible-container installs cleanly without error
ACTUAL RESULTS
ansible-container installation fails with an import error.