Good call, I should have thought of that. It appears it was not happy with the stdout parameter. It was giving a Windows invalid handle error.
I took those stdout and stderr parameters out (I didn't really need the output anyway) and it works now. Thanks for your help guys. On Tue, Apr 19, 2011 at 12:13 PM, Daniel Hyams <[email protected]> wrote: > What I'd do is wrap the subprocess call in a try/except, and dump out some > output to indicate what's wrong. Something like > > try: > subprocess.Popen(...) > except: > import traceback > traceback.print_exc() > > and then package it under pyinstaller, run, and see what you get. It might > give some guidance. > > > On Tue, Apr 19, 2011 at 9:24 AM, james <[email protected]> wrote: > >> Hello, >> I have a program which uses the createcd program from >> http://isorecorder.alexfeinman.com/CreateCD.htm via subprocess.Popen. >> This works great as long as I am running the python scripts directly. When >> I attempt to do it via pyinstaller, nothing happens. I have other utilities >> I am using through Popen with no problem via Pyinstaller. >> >> My call is: >> subprocess.Popen(command, stdin=None, stdout = subprocess.PIPE, stderr >> = subprocess.STDOUT, shell=True) >> >> where command is >> C:\\createcd\\createcd.exe -r:F:\ * >> >> Any ideas why I would get different behavior with a program build by >> pyinstaller vs running the python directly? >> >> Thanks >> James >> >> -- >> 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. >> > > > > -- > Daniel Hyams > [email protected] > > -- > 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. > -- 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.
