Re: python 2.5 scripting in vim on windows: subprocess problem



On 22/10/2007, Andy Kittner <andkit@xxxxxx> wrote:
Are you running this on vim or gvim? If you are running on gvim, my
guess is that the handles that you are passing are not valid. In
either case, try creating explicit handles that are valid (such as for
/dev/null) and create the process with these handles.
Just as a side note: my vim was a gvim-7.1.140 with dynamic python
support, so it doesn't look like a general problem.
I've also tried *-1-140 from cream's sourceforge website and it works
just like my custom-built one.

I'm passing hadles that I get from subprocess.Popen. Just passing
command to Popen constructor and using his handles to read data. No
other handle-manipulations.
When exactly does it throw the exception? Directly on creation of the
Popen object, or when you try to read stdout?
It throws exception on subprocess.Popen object instantiation.
os.system() works fine but I want Popen functionality.
.



Relevant Pages

  • Re: FILESYS exception with hive registry in 4.2
    ... It appears that urlmon is passing -1 to RegCloseKey. ... registry code in filesys.exe, bad parameters are caught ... this exception is handled inside filesys.exe ...
    (microsoft.public.windowsce.platbuilder)
  • Re: does python have useless destructors?
    ... > experienced Python programmer. ... Keeping track of all of the possible places where an exception may ... > It is simple, clean, and most of all, very explicit. ...
    (comp.lang.python)
  • Re: F2003 question on object oriented features
    ... preferred to make that explicit in the declaration. ... That's the legalistic answer - that the standard makes an exception ... for the passed-object dummy and this fits in the exception. ...
    (comp.lang.fortran)
  • Re: New Jersey Could Ban Manual GPS Devices in Cars
    ... Although most Australian states have also explicitly banned mobile phone use - even though IMO it comes under the undue care and attention banner. ... It's in the Australian Road Rules there is a very explicit rule against having any display device within view of the driver. ... Although the driver controlling the navigation device is not _explicitly_ disallowed (it's allowed via the exception) it does indeed come under the due care banner as you said. ...
    (sci.geo.satellite-nav)
  • Re: Addr2Line2Locations for GPS
    ... Could you please, post here or send me via e-mail, the exception trace you were to examine and the file to which it was applying? ... Call stack traceback locations: ... Then after execute Addr2Line2Locations I got the following message: ... Message: s-valint.adb:63 explicit raise ...
    (comp.lang.ada)