pip install 2014.1 on windows fails

Bug #1293542 reported by Joakim Karlsson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pytz
Fix Released
Critical
Stuart Bishop

Bug Description

Installing 2014.1 on windows fails for me:

> python --version
Python 3.3.4

> pip --version
pip 1.4 from c:\src\proworld\venv\lib\site-packages (python 3.3)

>pip install pytz==2014.1

Result:

Downloading/unpacking pytz==2014.1
  Downloading pytz-2014.1.tar.bz2 (160kB): 160kB downloaded
  Running setup.py egg_info for package pytz

    warning: no files found matching '*.pot' under directory 'pytz'
    warning: no previously-included files found matching 'test_zdump.py'
Cleaning up...
  Exception:
Traceback (most recent call last):
  File "c:\src\proworld\venv\lib\site-packages\pip\commands\install.py", line 236, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "c:\src\proworld\venv\lib\site-packages\pip\req.py", line 1129, in prepare_files
    req_to_install.assert_source_matches_version()
  File "c:\src\proworld\venv\lib\site-packages\pip\req.py", line 392, in assert_source_matches_version
    version = self.installed_version
  File "c:\src\proworld\venv\lib\site-packages\pip\req.py", line 388, in installed_version
    return self.pkg_info()['version']
  File "c:\src\proworld\venv\lib\site-packages\pip\req.py", line 355, in pkg_info
    data = self.egg_info_data('PKG-INFO')
  File "c:\src\proworld\venv\lib\site-packages\pip\req.py", line 295, in egg_info_data
    data = fp.read()
  File "c:\src\proworld\venv\lib\encodings\cp1252.py", line 23, in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 18979: character maps to <undefined>

Revision history for this message
Stuart Bishop (stub) wrote :

I have no idea why pip would be attempting to decode any pytz data as cp1252.

Changed in pytz:
status: New → Incomplete
Revision history for this message
Stuart Bishop (stub) wrote :

An em-dash crept into README.txt and it is no longer ASCII. This file is used as the long description in setup.py.

Changed in pytz:
status: Incomplete → Triaged
importance: Undecided → Critical
Revision history for this message
Stuart Bishop (stub) wrote :

If I am correct about the Windows failure, this is now fixed. Please reopen if the issue still occurs under Windows.

Changed in pytz:
status: Triaged → Fix Released
assignee: nobody → Stuart Bishop (stub)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.