spawnl issues with Win 7 access rights

Propad npropadovic at googlemail.com
Mon Oct 24 09:47:22 EDT 2011


Hello Tim,
thanx for the fast answer. Sorry to hear there are such issues.
I'm obviously not free to choose my version of Python, or I'would be
using the latest'n'greatest. It's more like this: I'm obliged to use
the version delivered with dSpace tools (which is HiL - ECU-testing
software for the automotive and aerospace industries).
I'just might be able to use 2.5, which dSpace delivered  2-3 years
ago; but I'm not sure of that, and not sure it would help in any way.
So some solution without tweaking the code or anything would be realy
nice. I can't imagine anything of such importance was not tested at
all during the beta phase - so it could be the tests were not run with
such a tricky configuration of windows.

Any hints are appreciated!

Cheers,
Nenad

On 24 Okt., 15:18, Tim Golden <m... at timgolden.me.uk> wrote:
> On 24/10/2011 13:43, Propad wrote:
>
>
>
>
>
> > Hello everybody,
> > I have some trouble with a program I run both on a WinXP and on Win 7.
> > It boils down to this several lines:
>
> > import os
> > vePath = r'C:\Programme\RA Consulting_Webservices\DiagRA-MCD
> > \DiagRA_D.exe'
> > #vePath = r'C:\Windows\notepad.exe'
> > process_id = os.spawnl(os.P_NOWAIT, vePath)
>
> > Under Win XP they  open DiagRA just fine; under Win 7 I'm getting:
> > OSError: [Errno 22] Invalid argument
> > Needless to say, I checked the path under Win 7; it is correct.
>
> > As you can see, I tried the same lines with notepad, just in case;
> > same result. Works fine under XP, IOError under Win 7.
>
> > So I'm pretty sure it's some kind of Win 7 access rights issue... Can
> > anybody point me to a concise overview of the issues involved, and
> > maybe even the known solutions? Again, it's os.spawnl in Python 2.2,
> > under Win 7.
>
> That's impressive. I ran this (on Python 2.7 on Win7):
>
> <code>
> import os
>
> os.spawnl (os.P_NOWAIT, r"c:\windows\notepad.exe")
>
> </code>
>
> and Python crashed hard! Long time since I've seen that happen.
>
> This may or may not be related to what you're seeing but it's
> definitely a problem. I'll check the bugs database and/or
> file a bug.
>
> I *can* reproduce your problem running Python22 on Win7. Now,
> no-one's going to be applying patches to Python 2.2 at this
> stage: in the 2.x series, only 2.7 is getting anything other
> than urgent security fixes. And even 2.7's only getting clear
> bugfixes. Just so you know.
>
> Without checking the code, I'm going to assume that the 2.2 codebase
> is handing off to the MS C Runtime Library for posix-related calls
> such as the spawn* family. So it may not even be Python's code directly
> which is returning this error.
>
> TJG- Zitierten Text ausblenden -
>
> - Zitierten Text anzeigen -




More information about the Python-list mailing list