Comments you submit will be routed for moderation. If you have an account, please log in first.
Modify

Ticket #87 (new defect)

Opened 4 years ago

Last modified 14 months ago

GrabVersion.py broken with files, containing UNICODE resource strings

Reported by: alexey Owned by: giovannibajo
Priority: high Milestone: PyInstaller 2.1
Component: PyInstaller Version: 1.4
Severity: blocker Keywords:
Cc:

Description

Trying to run GrabVersion.py on Internet Explorer from russian Win XP:

GrabVersion.py "C:\Program Files\Internet Explorer\iexplore.exe"

Got:

Traceback (most recent call last):
  File "c:\Progs\Python libs\pyinstaller\GrabVersion.py", line 30, in <module>
    print vs
  File "c:\Progs\Python libs\pyinstaller\versionInfo.py", line 156, in __repr__
    tmp.append(kid.__repr__(newindent+'  '))
  File "c:\Progs\Python libs\pyinstaller\versionInfo.py", line 315, in __repr__
    tmp.append(kid.__repr__(newindent))
  File "c:\Progs\Python libs\pyinstaller\versionInfo.py", line 371, in __repr__
    tmp.append(repr(kid))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 29-38: ordinal not in range(128)

Attachments

Change History

comment:1 Changed 3 years ago by matysek

This could be fixed by using library pefile for parsing PE infos.

comment:2 Changed 2 years ago by matysek

  • Priority changed from normal to high
  • Milestone set to PyInstaller 1.6

comment:3 Changed 14 months ago by matysek

  • Milestone changed from PyInstaller 2.0 to PyInstaller 2.1
View

Add a comment

Modify Ticket

Action
as new
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.