Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #14991
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'args': 0.05; 'parameter': 0.05; 'url:bugs': 0.05; 'received:verizon.net': 0.07; 'terry': 0.07; 'python': 0.08; 'admit': 0.09; 'issue?': 0.09; 'parameter.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'runtime': 0.09; 'subject:access': 0.09; 'subprocess': 0.09; 'url:%28': 0.09; 'url:%29': 0.09; 'url:msdn': 0.09; 'am,': 0.12; 'library': 0.15; '(empty': 0.16; '2.2.2': 0.16; '2.7.2': 0.16; 'answers.': 0.16; 'crashes': 0.16; 'docs,': 0.16; 'msdn': 0.16; 'oserror': 0.16; 'passed.': 0.16; 'reedy': 0.16; 'subject:issues': 0.16; 'win7': 0.16; 'wrote:': 0.16; 'linux': 0.17; 'rewrite': 0.18; 'slightly': 0.19; 'jan': 0.19; '(which': 0.19; 'options.': 0.21; 'maybe': 0.21; 'header:In-Reply-To:1': 0.22; 'versions': 0.23; '2.5,': 0.23; 'module,': 0.23; 'somehow': 0.23; 'works.': 0.23; 'changed': 0.24; 'testing': 0.24; 'do,': 0.25; 'expect': 0.25; 'code': 0.25; "i'm": 0.27; 'bit': 0.28; 'second': 0.29; 'but...': 0.30; 'url:library': 0.31; 'version': 0.32; 'this.': 0.32; 'source': 0.33; "isn't": 0.33; 'there': 0.33; 'to:addr:python-list': 0.33; 'header:User-Agent:1': 0.34; 'test': 0.34; '2.6': 0.34; 'leaves': 0.34; 'surprised': 0.34; 'header:X-Complaints-To:1': 0.35; 'running': 0.35; 'trouble': 0.35; 'switch': 0.35; 'skip:" 20': 0.35; 'url:python': 0.36; 'skip:" 10': 0.36; 'using': 0.37; 'run': 0.37; 'open': 0.37; 'could': 0.38; 'received:org': 0.38; 'patch': 0.38; 'some': 0.38; 'platform': 0.38; 'url:org': 0.38; 'went': 0.38; 'subject:: ': 0.39; 'header:Mime-Version:1': 0.39; 'subject:with': 0.39; "there's": 0.39; 'to:addr:python.org': 0.39; 'case': 0.39; 'url:microsoft': 0.40; 'might': 0.40; 'more': 0.60; 'hope': 0.61; 'results': 0.61; '(3)': 0.63; 'stated': 0.67; 'crash': 0.67; 'url:%1': 0.67; 'url:en-us': 0.68; 'relevant': 0.69; 'golden': 0.73; 'offering': 0.75; 'suposed': 0.84; 'cost,': 0.91; 'ships': 0.91 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Terry Reedy <tjreedy@udel.edu> |
| Subject | Re: spawnl issues with Win 7 access rights |
| Date | Tue, 25 Oct 2011 21:11:15 -0400 |
| References | <c7b441c4-3e7c-4b6b-bd2e-b60e08ca62f0@gk10g2000vbb.googlegroups.com> <4308935.65.1319502062676.JavaMail.geo-discussion-forums@prfq1> <047ec741-9164-4b0e-bb24-f71e3ab1e39b@gk10g2000vbb.googlegroups.com> <4EA6A950.6090706@timgolden.me.uk> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Gmane-NNTP-Posting-Host | pool-74-109-121-73.phlapa.fios.verizon.net |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Gecko/20110812 Thunderbird/6.0 |
| In-Reply-To | <4EA6A950.6090706@timgolden.me.uk> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2222.1319591492.27778.python-list@python.org> (permalink) |
| Lines | 87 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1319591492 news.xs4all.nl 6947 [2001:888:2000:d::a6]:60011 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:14991 |
Show key headers only | View raw
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 library I use (which I'm not suposed to do, but... oh >> well :-)). I can just hope subrocess was already mature adn offering >> the relevant functionality in 2.5. > > I must admit I'm more than slightly surprised by this. My test case > is to use os.spawnl to run c:/windows/notepad.exe. From the docs, > I would expect to use os.spawnl (os.P_WAIT, "c:/windows/notepad.exe"). > (I only want to open notepad.exe; there's no need for additional args). > > These are my test cases: > > (1) > > os.spawnl ( > os.P_WAIT, > "c:/windows/notepad.exe" > ) > > (2) > > os.spawnl ( > os.P_WAIT, > "c:/windows/notepad.exe", > "c:/windows/notepad.exe" > ) > > (3) > > os.spawnl ( > os.P_WAIT, > "c:/windows/notepad.exe", > "c:/windows/notepad.exe", > "c:/temp.txt" > ) > > > And the results: > > ============================================================== > Python | Platform | Case | Result > -------------------------------------------------------------- > 2.2.2 | WinXP | 1 | Works (empty notepad) > 2.2.2 | WinXP | 2 | Works (empty notepad) > 2.2.2 | WinXP | 3 | Works (notepad temp.txt) > -------------------------------------------------------------- > 2.2.2 | Win7 | 1 | OSError > 2.2.2 | Win7 | 2 | Works (empty notepad) > 2.2.2 | Win7 | 3 | Works (notepad temp.txt) > -------------------------------------------------------------- > 2.7.2 | WinXP | 1 | Crashes > 2.7.2 | WinXP | 2 | Works (empty notepad) > 2.7.2 | WinXP | 3 | Works (notepad temp.txt) > -------------------------------------------------------------- > 2.7.2 | Win7 | 1 | Crashes > 2.7.2 | Win7 | 2 | Works (empty notepad) > 2.7.2 | Win7 | 3 | Works (notepad temp.txt) > ============================================================== > > > Add to this a look at the mscrt source which ships with VS 2008 > and the MSDN docs for spawnl: > > http://msdn.microsoft.com/en-us/library/wweek9sc%28v=vs.80%29.aspx > > and we see that the first args parameter must be the same as the > path parameter. > > FWIW, at no extra cost, I went to the trouble of testing it on some > flavour of Linux with Python 2.6 and got the same results > as per 2.2.2 on WinXP. (Basically: everything works). > > Which leaves us with http://bugs.python.org/issue8036 in which recent > versions of Python crash when the (arbitrary) second parameter isn't > passed. And with an inexplicable behaviour change between the same > version of Python running on WinXP and on Win7. OP reports 2.6 with XP works. Did that use VS 2005? Maybe C runtime changed (regressed). Also, could there be a 32 v. 64 bit issue? -- Terry Jan Reedy
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
spawnl issues with Win 7 access rights Propad <npropadovic@googlemail.com> - 2011-10-24 05:43 -0700
Re: spawnl issues with Win 7 access rights Tim Golden <mail@timgolden.me.uk> - 2011-10-24 14:18 +0100
Re: spawnl issues with Win 7 access rights Propad <npropadovic@googlemail.com> - 2011-10-24 06:47 -0700
Re: spawnl issues with Win 7 access rights Terry Reedy <tjreedy@udel.edu> - 2011-10-24 18:16 -0400
Re: spawnl issues with Win 7 access rights Tim Golden <mail@timgolden.me.uk> - 2011-10-24 15:18 +0100
Re: spawnl issues with Win 7 access rights Terry Reedy <tjreedy@udel.edu> - 2011-10-24 18:14 -0400
Re: spawnl issues with Win 7 access rights Miki Tebeka <miki.tebeka@gmail.com> - 2011-10-24 17:21 -0700
Re: spawnl issues with Win 7 access rights Propad <npropadovic@googlemail.com> - 2011-10-25 00:01 -0700
Re: spawnl issues with Win 7 access rights Tim Golden <mail@timgolden.me.uk> - 2011-10-25 13:19 +0100
Re: spawnl issues with Win 7 access rights Terry Reedy <tjreedy@udel.edu> - 2011-10-25 21:11 -0400
Re: spawnl issues with Win 7 access rights Tim Golden <mail@timgolden.me.uk> - 2011-10-26 15:38 +0100
Re: spawnl issues with Win 7 access rights Terry Reedy <tjreedy@udel.edu> - 2011-10-26 15:20 -0400
Re: spawnl issues with Win 7 access rights Propad <npropadovic@googlemail.com> - 2011-10-27 03:27 -0700
Re: spawnl issues with Win 7 access rights Tim Golden <mail@timgolden.me.uk> - 2011-10-27 11:36 +0100
Re: spawnl issues with Win 7 access rights Terry Reedy <tjreedy@udel.edu> - 2011-10-27 15:53 -0400
Re: spawnl issues with Win 7 access rights Tim Golden <mail@timgolden.me.uk> - 2011-10-28 09:22 +0100
csiph-web