Hi, I'm just packaging some project for Windows using wine. When building I go this error:
W: Cannot get binary dependencies for file:
W: C:\windows\system32\kernel32.dll
W:Traceback (most recent call last):
File "PyInstaller\bindepend.py", line 522, in getImports
return _getImports_pe(pth)
File "PyInstaller\bindepend.py", line 163, in _getImports_pe
for entry in pe.DIRECTORY_ENTRY_IMPORT:
AttributeError: PE instance has no attribute 'DIRECTORY_ENTRY_IMPORT'
Is it save to replace the failing line by
for entry in getattr(pe, 'DIRECTORY_ENTRY_IMPORT, []'):
--
Schönen Gruß - Regards
Hartmut Goebel
Dipl.-Informatiker (univ.), CISSP, CSSLP
Goebel Consult
Spezialist für IT-Sicherheit in komplexen Umgebungen
http://www.goebel-consult.de
Monatliche Kolumne: http://www.cissp-gefluester.de/
Goebel Consult ist Mitglied bei http://www.7-it.de
smime.p7s
Description: S/MIME Cryptographic Signature
