ansible / ansible-container

DEPRECATED -- Ansible Container was a tool to build Docker images and orchestrate containers using only Ansible playbooks.
GNU Lesser General Public License v3.0
2.19k stars 394 forks source link

build fails with pip 10 #951

Open jblom opened 5 years ago

jblom commented 5 years ago
ISSUE TYPE
OS / ENVIRONMENT
cannot build, but I have OSX High Sierra and use Python 3.6.3 and pip 10.0.1
SUMMARY

After running the pip install I got an error that is probably related to pip 10. See https://mail.python.org/pipermail/distutils-sig/2017-October/031642.html

STEPS TO REPRODUCE
virtualenv venv
. venv/bin/activate
pip install "ansible-container[docker,openshift]"
EXPECTED RESULTS

a successful install

ACTUAL RESULTS
Collecting ansible-container[docker,openshift]
  Using cached https://files.pythonhosted.org/packages/bc/2a/b1252de3931173d26a30fc965be33c9cc0044cf7b23ce4c707f55d86830c/ansible-container-0.9.2.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/kk/v8l241ds0yb_vtgj9hmgc9600000gp/T/pip-install-11yi5z3_/ansible-container/setup.py", line 10, in <module>
        from pip.req import parse_requirements
    ModuleNotFoundError: No module named 'pip.req'
Voronenko commented 5 years ago

Thank you for your report. Fixed in scope of https://github.com/ansible/ansible-container/pull/939

Fix should be available in next pypi release.

At a moment workaround would be using virtualenv and downgrading pip to 9.0.3

jblom commented 5 years ago

Ah great, good to see it was already detected. Thanks.

For now I'll wait for the release. Several basic ansible & docker things to dive into anyway.

sysarcher commented 5 years ago

I'd like to report that I see the same error with the new versioning scheme i.e. pip 18.0

nuty commented 5 years ago

same issue for me.

Voronenko commented 5 years ago

We are providing now preview build of the develop branch, available from pypi as temporary workaround https://pypi.org/search/?q=ansible-container

andreibogdan commented 5 years ago

Same issue here:

pip install ansible-container

Collecting ansible-container
  Using cached https://files.pythonhosted.org/packages/bc/2a/b1252de3931173d26a30fc965be33c9cc0044cf7b23ce4c707f55d86830c/ansible-container-0.9.2.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/y2/td_v2vgd3mq398zn30wx7vb80000gn/T/pip-install-clh1fmuo/ansible-container/setup.py", line 10, in <module>
        from pip.req import parse_requirements
    ModuleNotFoundError: No module named 'pip.req'
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/y2/td_v2vgd3mq398zn30wx7vb80000gn/T/pip-install-clh1fmuo/ansible-container/
Voronenko commented 5 years ago

None of pypi maintainers can be contacted at a moment. May be related to recent acquisition by IBM , may be not

We are providing now preview build of the develop branch, available from pypi as temporary workaround https://pypi.org/search/?q=ansible-container

i.e.

pip install sa-ansible-container

more contributors are welcome to join the project

remkohdev commented 5 years ago

For what it is worth, I was able to workaround it, by downgrading pip,

$ python -m pip install pip==9.0.3
morganchristiansson commented 5 years ago

Another workaround is to run version from git:

https://docs.ansible.com/ansible-container/installation.html#running-from-source

morganchristiansson commented 5 years ago

945 is also duplicate