subprocess "handle is invalid" error

Grant Edwards grante at visi.com
Wed Apr 18 19:26:54 CEST 2007


On 2007-04-18, Erik Johnson <nobody at invalid.com> wrote:
>
> "Grant Edwards" <grante at visi.com> wrote in message
> news:132cdrpqsmnvpa7 at corp.supernews.com...
>
><snip stuff about gnu-plot and py2exe problems>
>> How does one troubleshoot errors that happen three layers deep
>> in the subprocess module?
>
> I think the problem is more likely in how your py2exe is
> getting bundled, rather than any real problem with the
> subprocess module.

I've switched back to os.popen() since I seem to get the same
problems with either.  The odd thing is that it only seems to
fail when the current directory is mounted via the network
_and_ when it's being started by clicking on a file whose
filetype is associated with the application.

Running the program from the command line (cmd.exe or bash)
always works for any current directory. Running the program by
cliking on a shortcut icon on the desktop always works for any 
'start in' directory.

The one case that doesn't work is when its run by clicking on
an associated file on a network drive.

-- 
Grant Edwards                   grante             Yow! Now I'm concentrating
                                  at               on a specific tank battle
                               visi.com            toward the end of World
                                                   War II!



More information about the Python-list mailing list