Am 09.10.2011 21:45, schrieb Brian:
test_multiprocess.py works unpackaged
Fine.
test_multiprocess.py does not work when built with --onedir

You said, your original program did run when built with --onedir, didn't it? So we already have a problem here.

test_multiprocess.py does not work when built with --onefile
This is what I expected

test_multiprocess_2.2.py works unpackaged
This is good.
test_multiprocess_2.2.py does not work when packaged with --onedir

This is not so good :-(
   File "C:\Users\b\p\tst\d\pyinstaller-r1641\PyInstaller\iu.py", line
71, in __init__
     raise OwnerError("%s is not a directory" % path)
iu.OwnerError:<OwnerError --dummy- is not a directory>

Thanks for your other tests here. Somebody has to look much deeper into the code and follow the control-flow. I'll not have time for this before the end of this week -- and I still do not have a Windows development environment :-)

Perhaps you can try to find out a bit more. One central point is source/common/launch.c and as it looks PyInstaller\iu.py, too.

You may try this patch to solve the '--dummy--' problem:

===================================================================
--- PyInstaller/archive.py      (Revision 1649)
+++ PyInstaller/archive.py      (Arbeitskopie)
@@ -428,7 +428,7 @@
         except AttributeError:
raise ImportError, "PYZ entry '%s' (%s) is not a valid code object" % (nm, repr(co))
         if ispkg:
-            if '_MEIPASS2' in _environ:
+ if '_MEIPASS2' in _environ and _environ['_MEIPASS2'] != '--dummy--']:
                 localpath = _environ['_MEIPASS2'][:-1]
             else:
                 localpath = iu._os_path_dirname(self.path)


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