Too old python pip version

stack-updates
#1

Bitrise Build Issue Report template

Description of the issue

The dependency cannot be resolved because the pip version is old.
I want to use Python Pillow. However, the installation fails.

Environment:

linux-docker-android

  • BITRISE_DOCKER_REV_NUMBER_BASE: v2019_12_12_1

Reproducibility

Always happens when run on Bitrise.io.

Local reproduction

Reproduced in this environment.
MacOS: 10.15.1
Python: 2.7.12
pip: 8.1.1

$ pip install Pillow
Updating pip to the latest version (19.3.1) solved the problem.

Build log

Collecting Pillow
  Downloading https://files.pythonhosted.org/packages/39/47/f28067b187dd664d205f75b07dcc6e0e95703e134008a14814827eebcaab/Pillow-7.0.0.tar.gz (38.2MB)
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-8ilHBD/Pillow/setup.py", line 304
        yield from self.features
                 ^
    SyntaxError: invalid syntax
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-8ilHBD/Pillow/
You are using pip version 8.1.1, however version 19.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
0 Likes

#2

Hi there,

Thank you for reaching out.

I was able to reproduce the behaviour and have reached out internally to have this fixed in the general image. In the meantime, please use this workaround:

    - script@1.1.5:
        title: Upgrade pip
        inputs:
        - content: pip install -U pip
    - script@1.1.5:
        inputs:
        - content: pip install Pillow

Please don’t hesitate to follow-up if you have any other questions.

1 Like

#3

This problem was resolved thanks to your support !
I wait for the image fixed.

1 Like