My Python program imports the xml library, which has a Pyinstaller
hook (hook-xml.py).  On Linux the binary is created just fine.
However, on Windows it throws an exception.  The exception I get is in
hookutils.py on the line:

txt = open(fnm, 'r').read()[:-1]

The specific exception is:

IOError: [Errno 2] No such file or directory: 'e:\\windows\\temp\\tmpf_cw4g'

I'm running Python 2.7 on Windows XP 64-bit if that makes a
difference.  I've fired up an interactive Python debug session and
traced through the execution.  The call to os.system() is failing with
the error message "The system cannot find the path specified."  Just
as a test I replaced the call to os.system() with popen2.popen4() in
my hookutils.py file and it worked.  The exe was created without
problem.  Maybe one of the os.spawn*() or some other method would be
"better," but at least it's working for me now.  Is this something
that could be fixed prior to the next Pyinstaller release?  I hate to
use my hacked code and would rather use an official release.

Thanks,

Isaac

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