Modify ↓
Ticket #87 (new defect)
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
Note: See
TracTickets for help on using
tickets.

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