Am 26.04.2011 20:17, schrieb Dan Halbert:
(Thanks for the PIL comment, Florian.)
Now a different issue. I am getting warnings like these from pyinstaller-1.5rc1 
on Windows 7:

W: Cannot get binary dependencies for file:
W: C:\Windows\system32\API-MS-Win-Core-ErrorHandling-L1-1-0.dll
W:Traceback (most recent call last):
   File "C:\Users\dhalbert\Documents\pyinstaller-1.5-rc1\bindepend.py", line 
683, in getImports
     return _getImports_pe_lib_pefile(pth)
   File "C:\Users\dhalbert\Documents\pyinstaller-1.5-rc1\bindepend.py", line 
191, in _getImports_pe_lib_pefile
     for entry in pe.DIRECTORY_ENTRY_IMPORT:
AttributeError: PE instance has no attribute 'DIRECTORY_ENTRY_IMPORT'

Warnings are also given for:

   C:\Windows\system32\API-MS-Win-Core-LibraryLoader-L1-1-0.dll
   C:\Windows\system32\API-MS-Win-Core-Misc-L1-1-0.dll
   C:\Windows\system32\API-MS-Win-Core-Profile-L1-1-0.dll
   C:\Windows\system32\API-MS-Win-Core-String-L1-1-0.dll
   C:\Windows\system32\API-MS-Win-Core-SysInfo-L1-1-0.dll

PyInstaller 1.5rc1 can still pull in unwanted (and unneeded) dependencies in some cases. This has been fixed in trunk since r1358, where most things from the Windows directories are excluded.

The warnings seems to be just that: resulting executables run fine.

I can reproduce this with a program that just consists of "import psycopg2". I 
am using the latest psycopg2:
http://www.stickpeople.com/projects/python/win-psycopg/psycopg2-2.4.win32-py2.6-pg9.0.3-release.exe

(This is on Windows 7 64-bit, but all the Python stuff is 32-bit. I'm using 
Python 2.6.5.)

Yes, the 64-bit is probably the reason for the above traceback (PyInstaller can't analyze 64-bit binaries it seems). I'd recommend using the latest trunk if you can (the current r1374 should be pretty stable), otherwise it is probably best to delete the API-* files in your dist folder because they could cause problems when running on other systems.

--
Florian Höch

--
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en.

Reply via email to