Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#21032 closed Uncategorized (fixed)

pip 1.4 and pytz break installation of test requirements

Reported by: Kevin Christopher Henry Owned by: nobody
Component: Testing framework Version: master
Severity: Normal Keywords:
Cc: Kevin Christopher Henry Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


pip 1.4 isn't installing pytz properly because of how the latter formats its version numbers (see the bug report here). This is breaking the installation of the test requirements as suggested in the documentation. Specifically, none of the requirements are installed because pip can't find a valid version of pytz.

This could be solved for now by changing the requirements file to read pytz>=2013b (or some other acceptable version), which explicitly authorizes pre-release versions (which is what pip thinks pytz's version numbers represent).

If ignored this bug will presumably fix itself when pytz changes it's version numbers to conform to pip's expectations.

Change History (3)

comment:1 Changed 5 years ago by jcatalan

Resolution: wontfix
Status: newclosed

While this actually affects django in that the docs suggest to install pytz using pip, I don't think this is a bug that should be solved within django. You can just use a previous version of pip to workaround this while pytz fixes this issue.

I tried for instance with pip 1.1 and it worked.

If this still doesn't solve your problem please let me know and we can reopen this ticket.



comment:2 Changed 5 years ago by Aymeric Augustin

Resolution: wontfix
Status: closednew

On the other hand, it's simple enough to change the requirements file so it actually works with the current version of pip.

Last edited 5 years ago by Aymeric Augustin (previous) (diff)

comment:3 Changed 5 years ago by Aymeric Augustin <aymeric.augustin@…>

Resolution: fixed
Status: newclosed

In a9589dd280ba84db3131f32b423ef45c67a5a236:

Fixed #21032 -- pip 1.4 can't install pytz.

Note: See TracTickets for help on using tickets.
Back to Top