Issue #284 new

get_exe_prefixes passes bytes to yield_lines

Anonymous created an issue

on python 3.2, this line crashes because z.read returns bytes: for pth in yield_lines(z.read(name)):

instead, this works: for pth in yield_lines(str(z.read(name), encoding="ascii")):

Comments (3)

  1. Thomas Kluyver

    Call easy_install with a .exe package under Python 3. I ran into it trying to install pywin32, which can be downloaded from:

    http://sourceforge.net/projects/pywin32/files/pywin32/Build%20217/pywin32-217.win-amd64-py3.2.exe/download

    More suitably for a test, you can call:

    easy_install.get_exe_prefixes("pywin32-217.win-amd64-py3.2.exe")
    

    In both cases, it fails with a TypeError: 'int' object is not iterable in yield_lines, which is expecting str or an iterable of strs.

  2. Log in to comment