Am 06.12.2011 17:03, schrieb Sebastian Hilbert:
when I tried to run pyinstaller with the spec file I was greeted with a message
that python 2.6+ now needs pywin32. So I thought it was a build requirement
introduced by pyinstaller when building python2.6+ apps ?

Yes, this is a build requirement. I'm not using Windows, thus I did not have this in mind. I enhanced the message, to make this more clear and updated the README.

I will do that. However the spec file seems to work just fine in the sense that
it actually creates the exe. The exe just does not run. That was the time when

"Creates" the exe is not enough for a .spec-file :-) It has to build it *correctly*. The craftsman art is to craft the .spec file if it does not work out of the box.

I can see win32api.py in the directory where the exe is created. So that made
me think if is detected and available. No idea why it is complaining about not
being able to import. Does the fact that the win32api.pyd gets copied to the
output directory mean anything ? Do I need to see a reference to it in
outPYZ1.pyz when looking at it with ArchiveViewer ?

All pure Python modules should be collected into outPYZ1.pyz. The names used in this archive are the full qualified module names (e.g. sphinx and sphinx.pycode.nodes).

Shared libs (.so, .dll, .pyd, etc.) are *not* put into the executable but only collected into the `dist` directory. Again, the names are full qualified module names (e.g. sphinx and sphinx.pycode.nodes), but with extension (e.g. mx.DateTime.mxDateTime.mxDateTime.pyd).

So if an import fails, search for the missing modul in outPYZ1.pyz and the current directory.

After this, proceed as described at <http://www.pyinstaller.org/wiki/HowtoReportBugs#Beforesubmittingareport:Makesureeverythingispackaged>.

--
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

--
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