ansible-container icon indicating copy to clipboard operation
ansible-container copied to clipboard

build fails with pip 10

Open jblom opened this issue 6 years ago • 10 comments

ISSUE TYPE
  • Bug Report
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'

jblom avatar Jul 18 '18 06:07 jblom

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

Voronenko avatar Jul 18 '18 07:07 Voronenko

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.

jblom avatar Jul 18 '18 08:07 jblom

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

sysarcher avatar Jul 30 '18 07:07 sysarcher

same issue for me.

nuty avatar Jul 31 '18 09:07 nuty

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

Voronenko avatar Sep 18 '18 10:09 Voronenko

Same issue here:

  • os x 10.14.1
  • pip 18.1
  • python 3.7
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/

andreibogdan avatar Nov 02 '18 11:11 andreibogdan

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

Voronenko avatar Nov 04 '18 09:11 Voronenko

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

$ python -m pip install pip==9.0.3

remkohdev avatar Nov 25 '18 03:11 remkohdev

Another workaround is to run version from git:

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

morganchristiansson avatar Nov 29 '18 17:11 morganchristiansson

#945 is also duplicate

morganchristiansson avatar Nov 29 '18 17:11 morganchristiansson