Re: spawnl issues with Win 7 access rights

2011-10-28 Thread Tim Golden
On 27/10/2011 20:53, Terry Reedy wrote: On 10/27/2011 6:36 AM, Tim Golden wrote: On 27/10/2011 11:27, Propad wrote: the suggestion to add the optional second parameter fixed the problem, spawnl now works on the Win 7 computer I'm responsible for (with Python 2.2). So the suggested cause seems t

Re: spawnl issues with Win 7 access rights

2011-10-27 Thread Terry Reedy
On 10/27/2011 6:36 AM, Tim Golden wrote: On 27/10/2011 11:27, Propad wrote: the suggestion to add the optional second parameter fixed the problem, spawnl now works on the Win 7 computer I'm responsible for (with Python 2.2). So the suggested cause seems to be right. FWIW, although it's not obv

Re: spawnl issues with Win 7 access rights

2011-10-27 Thread Tim Golden
On 27/10/2011 11:27, Propad wrote: the suggestion to add the optional second parameter fixed the problem, spawnl now works on the Win 7 computer I'm responsible for (with Python 2.2). So the suggested cause seems to be right. FWIW, although it's not obvious, the args parameter to spawnl is inte

Re: spawnl issues with Win 7 access rights

2011-10-27 Thread Propad
Hello Gentelmen, the suggestion to add the optional second parameter fixed the problem, spawnl now works on the Win 7 computer I'm responsible for (with Python 2.2). So the suggested cause seems to be right. Thank you for the great help! Cheers, Nenad On 26 Okt., 21:20, Terry Reedy wrote: >

Re: spawnl issues with Win 7 access rights

2011-10-26 Thread Terry Reedy
On 10/26/2011 10:38 AM, Tim Golden wrote: On 26/10/2011 02:11, Terry Reedy wrote: OP reports 2.6 with XP works. Where do you see that, Terry? (Or was there an offlist email?) The first message of http://bugs.python.org/issue8036 "Python 2.6 is however happy and just reports invalid arg." --

Re: spawnl issues with Win 7 access rights

2011-10-26 Thread Tim Golden
On 26/10/2011 02:11, Terry Reedy wrote: OP reports 2.6 with XP works. Where do you see that, Terry? (Or was there an offlist email?) Did that use VS 2005? Maybe C runtime changed (regressed). That's possible -- and is essentially my main guess (faute de mieux). I've got the same results on

Re: spawnl issues with Win 7 access rights

2011-10-25 Thread Terry Reedy
On 10/25/2011 8:19 AM, Tim Golden wrote: On 25/10/2011 08:01, Propad wrote: Thnx again for all the answers. As stated before, I'm limited in my options. One of them just might be to switch to Python 2.5, rewrite the code that crashes using the subprocess module, and then somehow patch the librar

Re: spawnl issues with Win 7 access rights

2011-10-25 Thread Tim Golden
On 25/10/2011 08:01, Propad wrote: Thnx again for all the answers. As stated before, I'm limited in my options. One of them just might be to switch to Python 2.5, rewrite the code that crashes using the subprocess module, and then somehow patch the library I use (which I'm not suposed to do, but.

Re: spawnl issues with Win 7 access rights

2011-10-25 Thread Propad
On 25 Okt., 02:21, Miki Tebeka wrote: > Please use the subprocess module, it's the one who's actively > maintained.http://docs.python.org/library/subprocess.html#replacing-the-os-spawn... Thnx again for all the answers. As stated before, I'm limited in my options. One of them just might be to sw

Re: spawnl issues with Win 7 access rights

2011-10-24 Thread Miki Tebeka
Please use the subprocess module, it's the one who's actively maintained. http://docs.python.org/library/subprocess.html#replacing-the-os-spawn-family -- http://mail.python.org/mailman/listinfo/python-list

Re: spawnl issues with Win 7 access rights

2011-10-24 Thread Terry Reedy
On 10/24/2011 9:47 AM, Propad wrote: y 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. The coverage of the test suite is still being improved as people volunteer t

Re: spawnl issues with Win 7 access rights

2011-10-24 Thread Terry Reedy
On 10/24/2011 10:18 AM, Tim Golden wrote: On 24/10/2011 14:18, Tim Golden wrote: I ran this (on Python 2.7 on Win7): import os os.spawnl (os.P_NOWAIT, r"c:\windows\notepad.exe") and Python crashed hard! Long time since I've seen that happen. Same with 3.2 and Win7, interpreter or IDLE.

Re: spawnl issues with Win 7 access rights

2011-10-24 Thread Tim Golden
On 24/10/2011 14:18, Tim Golden wrote: I ran this (on Python 2.7 on Win7): import os os.spawnl (os.P_NOWAIT, r"c:\windows\notepad.exe") 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 c

Re: spawnl issues with Win 7 access rights

2011-10-24 Thread Propad
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 a

Re: spawnl issues with Win 7 access rights

2011-10-24 Thread Tim Golden
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 = o

spawnl issues with Win 7 access rights

2011-10-24 Thread Propad
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