Hi there,

I have a little issue when I try to compile my work.
I have tried with pyinstaller1.5 and 1.6.
I use python 2.7

I make a very simple test with subprocess to try it!

test.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import subprocess, sys

print sys.path[0]+"\\test2.py"

f = open(sys.path[0]+"\\test2.py", 'r')
print f.read()
f.close()

subprocess.Popen([ "python", sys.path[0]+"\\test2.py"])

###

test2.py
#!/usr/bin/env python
# -*- coding: utf-8 -*
message = "\n\rYour message sent at %s to %s has been received by the
recipient.\n\r" % ('123456', '123456')
print message

So after pyinstaller has create an executable file on windows, I run
it and I got this:
Traceback (most recent call last):
  File "<string>", line 14, in <module>
  File "E:\pyinstaller\test\build\pyi.win32\test\out01-PYZ.pyz
\subprocess", line 679, in __init__
  File "E:\pyinstaller\test\build\pyi.win32\test\out01-PYZ.pyz
\subprocess", line 896, in _execute_child
WindowsError: [Error 2] Fichier introuvable
RC: -1 from test
OK.
Deactivating activation context
Releasing activation context
Done

I have also tried to include the specified file (test2.py) on the spec
file, or to copy the test2.py on my dist directory.
Has you can see on my first script I print the test2.py, because it
say that the file is not found ! but it print my file ? so I don't
understand where is the issue, the subprocess doesn't work with
pyinstaller ??
Could you please help me?

Thank you for your help.

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