Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #15823 > unrolled thread
| Started by | "W. eWatson" <wolftracks@invalid.com> |
|---|---|
| First post | 2011-11-17 08:55 -0800 |
| Last post | 2011-11-18 07:57 -0800 |
| Articles | 20 on this page of 42 — 18 participants |
Back to article view | Back to comp.lang.python
Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 "W. eWatson" <wolftracks@invalid.com> - 2011-11-17 08:55 -0800
Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 ray <ray040123@gmail.com> - 2011-11-18 01:37 +0800
Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 "spartan.the" <spartan.the@gmail.com> - 2011-11-17 09:37 -0800
Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 John Gordon <gordon@panix.com> - 2011-11-17 17:39 +0000
Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 "W. eWatson" <wolftracks@invalid.com> - 2011-11-17 12:22 -0800
Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 "W. eWatson" <wolftracks@invalid.com> - 2011-11-17 12:31 -0800
Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 Chris Angelico <rosuav@gmail.com> - 2011-11-18 07:43 +1100
Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 Alan Meyer <ameyer2@yahoo.com> - 2011-11-21 17:43 -0500
Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 MRAB <python@mrabarnett.plus.com> - 2011-11-17 20:59 +0000
Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 "W. eWatson" <wolftracks@invalid.com> - 2011-11-17 16:00 -0800
Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 "spartan.the" <spartan.the@gmail.com> - 2011-11-17 12:46 -0800
Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 "W. eWatson" <wolftracks@invalid.com> - 2011-11-17 15:54 -0800
Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 "Martin P. Hellwig" <martin.hellwig@gmail.com> - 2011-11-18 01:55 +0000
Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 Dave Angel <d@davea.name> - 2011-11-17 22:59 -0500
Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 "W. eWatson" <wolftracks@invalid.com> - 2011-11-17 20:21 -0800
Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 Benjamin Kaplan <benjamin.kaplan@case.edu> - 2011-11-18 00:25 -0500
Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 "W. eWatson" <wolftracks@invalid.com> - 2011-11-18 09:59 -0800
Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 alex23 <wuwei23@gmail.com> - 2011-11-20 21:04 -0800
Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 alex23 <wuwei23@gmail.com> - 2011-11-17 22:06 -0800
Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 Tony the Tiger <tony@tiger.invalid> - 2011-11-18 15:46 -0600
Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-11-17 18:42 +0000
Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 Terry Reedy <tjreedy@udel.edu> - 2011-11-17 17:12 -0500
Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 "W. eWatson" <wolftracks@invalid.com> - 2011-11-17 16:03 -0800
Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-11-18 00:24 +0000
Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 "W. eWatson" <wolftracks@invalid.com> - 2011-11-17 20:33 -0800
Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 Neil Cerutti <neilc@norwich.edu> - 2011-11-18 13:11 +0000
Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 "W. eWatson" <wolftracks@invalid.com> - 2011-11-18 07:29 -0800
Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 MRAB <python@mrabarnett.plus.com> - 2011-11-18 17:12 +0000
Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 rusi <rustompmody@gmail.com> - 2011-11-18 09:19 -0800
Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 "W. eWatson" <wolftracks@invalid.com> - 2011-11-18 09:48 -0800
Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 "W. eWatson" <wolftracks@invalid.com> - 2011-11-18 09:45 -0800
Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2011-11-18 17:17 -0800
Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2011-11-18 10:04 -0800
Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 Terry Reedy <tjreedy@udel.edu> - 2011-11-18 02:35 -0500
Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 "W. eWatson" <wolftracks@invalid.com> - 2011-11-18 09:57 -0800
Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 alex23 <wuwei23@gmail.com> - 2011-11-17 19:04 -0800
Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 "W. eWatson" <wolftracks@invalid.com> - 2011-11-17 20:34 -0800
Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 Stephen Hansen <me+list/python@ixokai.io> - 2011-11-18 14:31 -0800
Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 alex23 <wuwei23@gmail.com> - 2011-11-20 21:09 -0800
Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2011-11-17 20:34 -0800
Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 "W. eWatson" <wolftracks@invalid.com> - 2011-11-18 07:54 -0800
Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 "W. eWatson" <wolftracks@invalid.com> - 2011-11-18 07:57 -0800
Page 2 of 3 — ← Prev page 1 [2] 3 Next page →
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2011-11-17 18:42 +0000 |
| Message-ID | <4ec5559c$0$29967$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #15823 |
On Thu, 17 Nov 2011 08:55:36 -0800, W. eWatson wrote: > Months ago 2.5.2 stopped functioning on my Win7 PC, so a few days ago I > uninstalled and installed. Same problem. If one right-clicks on a py > file, IDLE is not shown in the menu as Edit with IDLE. After playing > with matters I gave up, and uninstalled 2.5.2 and turned to 2.7.2. Same > results. I find I get better results when I stop "playing with matters" and start treating them seriously :) If you need help fixing the file associations on your Windows 7 machine, you'll probably get better advice on a dedicated Windows forum. Or even by googling for instructions: https://duckduckgo.com/html/?q=how%20to%20fix%20windows%207%20file%20associations > If I look at a 2.4 install on my laptop, I get the desired reference to > Edit with IDLE. So you're saying that Python is working on one laptop, but not on another machine? Okay. Great. What's your point? You have a messed up installation on your Windows 7 box, and a working installation on your laptop. What would you like us to do? Commiserate? Laugh? Look into a crystal ball and tell you what you did wrong? Can you run Python from the command line? If so, that tells you that Python is installed and working correctly. If Python is installed, then it sounds like a matter of getting the file associates fixed in the registry. Good luck. > My guess is that Win 7 is behind this. If so, it's good-bye Python. > > Comments? Why not good-bye Windows 7? This being Windows, have you run a virus scan with up to date definitions? Then run a *second* scan, using a completely different scanner, because no scanner can catch all viruses? And then run a good anti-spyware program. All of which will be irrelevant 99 times out of 100, but you could be the 1% ... -- Steven
[toc] | [prev] | [next] | [standalone]
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Date | 2011-11-17 17:12 -0500 |
| Message-ID | <mailman.2812.1321567986.27778.python-list@python.org> |
| In reply to | #15823 |
On 11/17/2011 11:55 AM, W. eWatson wrote: > Months ago 2.5.2 stopped functioning on my Win7 PC, so a few days ago I > uninstalled and installed. Same problem. If one right-clicks on a py > file, IDLE is not shown in the menu as Edit with IDLE. After playing > with matters I gave up, and uninstalled 2.5.2 and turned to 2.7.2. Same > results. > > If I look at a 2.4 install on my laptop, I get the desired reference to > Edit with IDLE. > > My guess is that Win 7 is behind this. If so, it's good-bye Python. I installed 3.3.2 on a new Win 7 machine and Edit with IDLE works fine. However, I almost never use that with Explorer to open files. I have IDLE pinned to the task bar so it is one click to start. If I edit a file, I want to run it, so I want a shell window open anyway. I usually open files to edit with the first three entries under the File menu: New File, Open, or Recent Files. Once I open a file in a particular directory (usually with Recent Files), Open initially looks for files in the same directory, which is usually what I want. So say hello again to Python, especially Python 3. -- Terry Jan Reedy
[toc] | [prev] | [next] | [standalone]
| From | "W. eWatson" <wolftracks@invalid.com> |
|---|---|
| Date | 2011-11-17 16:03 -0800 |
| Message-ID | <ja47c6$bt2$2@dont-email.me> |
| In reply to | #15837 |
On 11/17/2011 2:12 PM, Terry Reedy wrote: > On 11/17/2011 11:55 AM, W. eWatson wrote: >> Months ago 2.5.2 stopped functioning on my Win7 PC, so a few days ago I >> uninstalled and installed. Same problem. If one right-clicks on a py >> file, IDLE is not shown in the menu as Edit with IDLE. After playing >> with matters I gave up, and uninstalled 2.5.2 and turned to 2.7.2. Same >> results. >> >> If I look at a 2.4 install on my laptop, I get the desired reference to >> Edit with IDLE. >> >> My guess is that Win 7 is behind this. If so, it's good-bye Python. > > I installed 3.3.2 on a new Win 7 machine and Edit with IDLE works fine. > However, I almost never use that with Explorer to open files. I have > IDLE pinned to the task bar so it is one click to start. If I edit a > file, I want to run it, so I want a shell window open anyway. I usually > open files to edit with the first three entries under the File menu: New > File, Open, or Recent Files. Once I open a file in a particular > directory (usually with Recent Files), Open initially looks for files in > the same directory, which is usually what I want. So say hello again to > Python, especially Python 3. > I have not found any successful way to get to IDLE. It's on on the right-click of a py menu, and, if I go the ...lib/idle.pyw, it fails with a "invalid Win32 app" msg.
[toc] | [prev] | [next] | [standalone]
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2011-11-18 00:24 +0000 |
| Message-ID | <4ec5a5cf$0$29967$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #15841 |
On Thu, 17 Nov 2011 16:03:14 -0800, W. eWatson wrote: > I have not found any successful way to get to IDLE. It's on on the > right-click of a py menu, and, if I go the ...lib/idle.pyw, it fails > with a "invalid Win32 app" msg. If you associate .pyw files with pythonw.exe, and then open idle.pyw, does it work? Failing that, go to your laptop where the associations are right, and see what they are, then duplicate the settings on your Windows 7 machine. -- Steven
[toc] | [prev] | [next] | [standalone]
| From | "W. eWatson" <wolftracks@invalid.com> |
|---|---|
| Date | 2011-11-17 20:33 -0800 |
| Message-ID | <ja4n7b$3fd$1@dont-email.me> |
| In reply to | #15842 |
On 11/17/2011 4:24 PM, Steven D'Aprano wrote: > On Thu, 17 Nov 2011 16:03:14 -0800, W. eWatson wrote: > >> I have not found any successful way to get to IDLE. It's on on the >> right-click of a py menu, and, if I go the ...lib/idle.pyw, it fails >> with a "invalid Win32 app" msg. > > If you associate .pyw files with pythonw.exe, and then open idle.pyw, > does it work? > > Failing that, go to your laptop where the associations are right, and see > what they are, then duplicate the settings on your Windows 7 machine. > Sounds like a good idea except I've not used associations in so long under XP, I have no idea where to start. Control Panel. My Computer Tools?
[toc] | [prev] | [next] | [standalone]
| From | Neil Cerutti <neilc@norwich.edu> |
|---|---|
| Date | 2011-11-18 13:11 +0000 |
| Message-ID | <9in3r9F5j3U2@mid.individual.net> |
| In reply to | #15858 |
On 2011-11-18, W. eWatson <wolftracks@invalid.com> wrote: > On 11/17/2011 4:24 PM, Steven D'Aprano wrote: >> On Thu, 17 Nov 2011 16:03:14 -0800, W. eWatson wrote: >> >>> I have not found any successful way to get to IDLE. It's on on the >>> right-click of a py menu, and, if I go the ...lib/idle.pyw, it fails >>> with a "invalid Win32 app" msg. >> >> If you associate .pyw files with pythonw.exe, and then open idle.pyw, >> does it work? >> >> Failing that, go to your laptop where the associations are right, and see >> what they are, then duplicate the settings on your Windows 7 machine. > > Sounds like a good idea except I've not used associations in so > long under XP, I have no idea where to start. Control Panel. My > Computer Tools? Open Windows Explorer. With the menu, to to Tools->Folder Options Click the File Types tab in the Folder Options menu. There will be an upper view with registered filed types, and some buttons below far making changes to them. -- Neil Cerutti
[toc] | [prev] | [next] | [standalone]
| From | "W. eWatson" <wolftracks@invalid.com> |
|---|---|
| Date | 2011-11-18 07:29 -0800 |
| Message-ID | <ja5tlr$kem$1@dont-email.me> |
| In reply to | #15886 |
On 11/18/2011 5:11 AM, Neil Cerutti wrote: > On 2011-11-18, W. eWatson<wolftracks@invalid.com> wrote: >> On 11/17/2011 4:24 PM, Steven D'Aprano wrote: >>> On Thu, 17 Nov 2011 16:03:14 -0800, W. eWatson wrote: >>> >>>> I have not found any successful way to get to IDLE. It's on on the >>>> right-click of a py menu, and, if I go the ...lib/idle.pyw, it fails >>>> with a "invalid Win32 app" msg. >>> >>> If you associate .pyw files with pythonw.exe, and then open idle.pyw, >>> does it work? >>> >>> Failing that, go to your laptop where the associations are right, and see >>> what they are, then duplicate the settings on your Windows 7 machine. >> >> Sounds like a good idea except I've not used associations in so >> long under XP, I have no idea where to start. Control Panel. My >> Computer Tools? > > Open Windows Explorer. > With the menu, to to Tools->Folder Options > Click the File Types tab in the Folder Options menu. > > There will be an upper view with registered filed types, and some > buttons below far making changes to them. > OK, I've found that. I see Py Pyc Pyo Pyw If I click on each, it basically it gives a short description of each. If I click advanced, there's more info. For example for py, Actions are IDLE and Open. What does this tell me that's relevant to Win7? If on Win7, I go to Default Programs I see under associations various python items. Py shows Unknown application. Since installing 2.7.2 I have not messed with these associations. If I right-click on Unknown, I see Notepad and python.exe for choices to open the file. I want neither. Why isn't IDLE listed there? If I right-click on junk.py, I see "Open with". Notepad and python.exe are choices. However, that menu allows me to choose something else. For example, Adobe Reader, or Internet Explorer. I suppose the next question is should I use the browse there and try to connect to IDLE in ...\Lib\idlelib? My guess is that if I do, I will run into the "invalid Win32 app", when I try to use it.
[toc] | [prev] | [next] | [standalone]
| From | MRAB <python@mrabarnett.plus.com> |
|---|---|
| Date | 2011-11-18 17:12 +0000 |
| Message-ID | <mailman.2837.1321636336.27778.python-list@python.org> |
| In reply to | #15890 |
On 18/11/2011 15:29, W. eWatson wrote: > On 11/18/2011 5:11 AM, Neil Cerutti wrote: >> On 2011-11-18, W. eWatson<wolftracks@invalid.com> wrote: >>> On 11/17/2011 4:24 PM, Steven D'Aprano wrote: >>>> On Thu, 17 Nov 2011 16:03:14 -0800, W. eWatson wrote: >>>> >>>>> I have not found any successful way to get to IDLE. It's on on the >>>>> right-click of a py menu, and, if I go the ...lib/idle.pyw, it fails >>>>> with a "invalid Win32 app" msg. >>>> >>>> If you associate .pyw files with pythonw.exe, and then open idle.pyw, >>>> does it work? >>>> >>>> Failing that, go to your laptop where the associations are right, >>>> and see >>>> what they are, then duplicate the settings on your Windows 7 machine. >>> >>> Sounds like a good idea except I've not used associations in so >>> long under XP, I have no idea where to start. Control Panel. My >>> Computer Tools? >> >> Open Windows Explorer. >> With the menu, to to Tools->Folder Options >> Click the File Types tab in the Folder Options menu. >> >> There will be an upper view with registered filed types, and some >> buttons below far making changes to them. >> > OK, I've found that. I see > Py > Pyc > Pyo > Pyw > If I click on each, it basically it gives a short description of each. > If I click advanced, there's more info. For example for py, Actions are > IDLE and Open. > > What does this tell me that's relevant to Win7? > > If on Win7, I go to Default Programs I see under associations various > python items. Py shows Unknown application. Since installing 2.7.2 I > have not messed with these associations. If I right-click on Unknown, I > see Notepad and python.exe for choices to open the file. I want neither. > Why isn't IDLE listed there? > > If I right-click on junk.py, I see "Open with". Notepad and python.exe > are choices. However, that menu allows me to choose something else. For > example, Adobe Reader, or Internet Explorer. I suppose the next question > is should I use the browse there and try to connect to IDLE in > ...\Lib\idlelib? My guess is that if I do, I will run into the "invalid > Win32 app", when I try to use it. > You can't associate .py with Idle because Idle is a Python script, not an executable (an .exe). Have a look here: http://superuser.com/questions/68852/change-windows-7-explorer-edit-context-menu-action-for-jpg-and-other-image-fil In my PC's registry (Windows XP, but Windows 7 should be similar or the same) it has the entry: Key: HKEY_CLASSES_ROOT\Python.File\shell\Edit with IDLE\command Value: "C:\Python31\pythonw.exe" "C:\Python31\Lib\idlelib\idle.pyw" -n -e "%1" Note how it actually associates the Edit action of Python files with an .exe file.
[toc] | [prev] | [next] | [standalone]
| From | rusi <rustompmody@gmail.com> |
|---|---|
| Date | 2011-11-18 09:19 -0800 |
| Message-ID | <18f7cac6-1c38-4506-b8b9-f30d2b9ae5a9@x10g2000prk.googlegroups.com> |
| In reply to | #15905 |
On Nov 18, 10:12 pm, MRAB <pyt...@mrabarnett.plus.com> wrote: > On 18/11/2011 15:29, W. eWatson wrote: > > > > > > > > > On 11/18/2011 5:11 AM, Neil Cerutti wrote: > >> On 2011-11-18, W. eWatson<wolftra...@invalid.com> wrote: > >>> On 11/17/2011 4:24 PM, Steven D'Aprano wrote: > >>>> On Thu, 17 Nov 2011 16:03:14 -0800, W. eWatson wrote: > > >>>>> I have not found any successful way to get to IDLE. It's on on the > >>>>> right-click of a py menu, and, if I go the ...lib/idle.pyw, it fails > >>>>> with a "invalid Win32 app" msg. > > >>>> If you associate .pyw files with pythonw.exe, and then open idle.pyw, > >>>> does it work? > > >>>> Failing that, go to your laptop where the associations are right, > >>>> and see > >>>> what they are, then duplicate the settings on your Windows 7 machine. > > >>> Sounds like a good idea except I've not used associations in so > >>> long under XP, I have no idea where to start. Control Panel. My > >>> Computer Tools? > > >> Open Windows Explorer. > >> With the menu, to to Tools->Folder Options > >> Click the File Types tab in the Folder Options menu. > > >> There will be an upper view with registered filed types, and some > >> buttons below far making changes to them. > > > OK, I've found that. I see > > Py > > Pyc > > Pyo > > Pyw > > If I click on each, it basically it gives a short description of each. > > If I click advanced, there's more info. For example for py, Actions are > > IDLE and Open. > > > What does this tell me that's relevant to Win7? > > > If on Win7, I go to Default Programs I see under associations various > > python items. Py shows Unknown application. Since installing 2.7.2 I > > have not messed with these associations. If I right-click on Unknown, I > > see Notepad and python.exe for choices to open the file. I want neither. > > Why isn't IDLE listed there? > > > If I right-click on junk.py, I see "Open with". Notepad and python.exe > > are choices. However, that menu allows me to choose something else. For > > example, Adobe Reader, or Internet Explorer. I suppose the next question > > is should I use the browse there and try to connect to IDLE in > > ...\Lib\idlelib? My guess is that if I do, I will run into the "invalid > > Win32 app", when I try to use it. > > You can't associate .py with Idle because Idle is a Python script, not > an executable (an .exe). > > Have a look here:http://superuser.com/questions/68852/change-windows-7-explorer-edit-c... > > In my PC's registry (Windows XP, but Windows 7 should be similar or the > same) it has the entry: > > Key: HKEY_CLASSES_ROOT\Python.File\shell\Edit with IDLE\command > Value: "C:\Python31\pythonw.exe" "C:\Python31\Lib\idlelib\idle.pyw" -n > -e "%1" > > Note how it actually associates the Edit action of Python files with an > .exe file. The tools -> folder options approach is the user-friendly approach -- when it works. The 'Correct the registry' is the muscular approach -- it will set right everything iff you are a wizard. In between the two is assoc and ftype see http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ftype.mspx?mfr=true http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/assoc.mspx?mfr=true
[toc] | [prev] | [next] | [standalone]
| From | "W. eWatson" <wolftracks@invalid.com> |
|---|---|
| Date | 2011-11-18 09:48 -0800 |
| Message-ID | <ja65qc$c2s$1@dont-email.me> |
| In reply to | #15906 |
On 11/18/2011 9:19 AM, rusi wrote: > On Nov 18, 10:12 pm, MRAB<pyt...@mrabarnett.plus.com> wrote: >> On 18/11/2011 15:29, W. eWatson wrote: >> >> >> >> >> >> >> >>> On 11/18/2011 5:11 AM, Neil Cerutti wrote: >>>> On 2011-11-18, W. eWatson<wolftra...@invalid.com> wrote: >>>>> On 11/17/2011 4:24 PM, Steven D'Aprano wrote: >>>>>> On Thu, 17 Nov 2011 16:03:14 -0800, W. eWatson wrote: >> >>>>>>> I have not found any successful way to get to IDLE. It's on on the >>>>>>> right-click of a py menu, and, if I go the ...lib/idle.pyw, it fails >>>>>>> with a "invalid Win32 app" msg. >> >>>>>> If you associate .pyw files with pythonw.exe, and then open idle.pyw, >>>>>> does it work? >> >>>>>> Failing that, go to your laptop where the associations are right, >>>>>> and see >>>>>> what they are, then duplicate the settings on your Windows 7 machine. >> >>>>> Sounds like a good idea except I've not used associations in so >>>>> long under XP, I have no idea where to start. Control Panel. My >>>>> Computer Tools? >> >>>> Open Windows Explorer. >>>> With the menu, to to Tools->Folder Options >>>> Click the File Types tab in the Folder Options menu. >> >>>> There will be an upper view with registered filed types, and some >>>> buttons below far making changes to them. >> >>> OK, I've found that. I see >>> Py >>> Pyc >>> Pyo >>> Pyw >>> If I click on each, it basically it gives a short description of each. >>> If I click advanced, there's more info. For example for py, Actions are >>> IDLE and Open. >> >>> What does this tell me that's relevant to Win7? >> >>> If on Win7, I go to Default Programs I see under associations various >>> python items. Py shows Unknown application. Since installing 2.7.2 I >>> have not messed with these associations. If I right-click on Unknown, I >>> see Notepad and python.exe for choices to open the file. I want neither. >>> Why isn't IDLE listed there? >> >>> If I right-click on junk.py, I see "Open with". Notepad and python.exe >>> are choices. However, that menu allows me to choose something else. For >>> example, Adobe Reader, or Internet Explorer. I suppose the next question >>> is should I use the browse there and try to connect to IDLE in >>> ...\Lib\idlelib? My guess is that if I do, I will run into the "invalid >>> Win32 app", when I try to use it. >> >> You can't associate .py with Idle because Idle is a Python script, not >> an executable (an .exe). >> >> Have a look here:http://superuser.com/questions/68852/change-windows-7-explorer-edit-c... >> >> In my PC's registry (Windows XP, but Windows 7 should be similar or the >> same) it has the entry: >> >> Key: HKEY_CLASSES_ROOT\Python.File\shell\Edit with IDLE\command >> Value: "C:\Python31\pythonw.exe" "C:\Python31\Lib\idlelib\idle.pyw" -n >> -e "%1" >> >> Note how it actually associates the Edit action of Python files with an >> .exe file. > > The tools -> folder options approach is the user-friendly approach -- > when it works. > The 'Correct the registry' is the muscular approach -- it will set > right everything iff you are a wizard. > > In between the two is assoc and ftype see > http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ftype.mspx?mfr=true > http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/assoc.mspx?mfr=true These two seem equally muscular. I shudder to think where these choices might lead me.
[toc] | [prev] | [next] | [standalone]
| From | "W. eWatson" <wolftracks@invalid.com> |
|---|---|
| Date | 2011-11-18 09:45 -0800 |
| Message-ID | <ja65js$auo$1@dont-email.me> |
| In reply to | #15905 |
On 11/18/2011 9:12 AM, MRAB wrote: > On 18/11/2011 15:29, W. eWatson wrote: >> On 11/18/2011 5:11 AM, Neil Cerutti wrote: >>> On 2011-11-18, W. eWatson<wolftracks@invalid.com> wrote: >>>> On 11/17/2011 4:24 PM, Steven D'Aprano wrote: >>>>> On Thu, 17 Nov 2011 16:03:14 -0800, W. eWatson wrote: >>>>> >>>>>> I have not found any successful way to get to IDLE. It's on on the >>>>>> right-click of a py menu, and, if I go the ...lib/idle.pyw, it fails >>>>>> with a "invalid Win32 app" msg. >>>>> >>>>> If you associate .pyw files with pythonw.exe, and then open idle.pyw, >>>>> does it work? >>>>> >>>>> Failing that, go to your laptop where the associations are right, >>>>> and see >>>>> what they are, then duplicate the settings on your Windows 7 machine. >>>> >>>> Sounds like a good idea except I've not used associations in so >>>> long under XP, I have no idea where to start. Control Panel. My >>>> Computer Tools? >>> >>> Open Windows Explorer. >>> With the menu, to to Tools->Folder Options >>> Click the File Types tab in the Folder Options menu. >>> >>> There will be an upper view with registered filed types, and some >>> buttons below far making changes to them. >>> >> OK, I've found that. I see >> Py >> Pyc >> Pyo >> Pyw >> If I click on each, it basically it gives a short description of each. >> If I click advanced, there's more info. For example for py, Actions are >> IDLE and Open. >> >> What does this tell me that's relevant to Win7? >> >> If on Win7, I go to Default Programs I see under associations various >> python items. Py shows Unknown application. Since installing 2.7.2 I >> have not messed with these associations. If I right-click on Unknown, I >> see Notepad and python.exe for choices to open the file. I want neither. >> Why isn't IDLE listed there? >> >> If I right-click on junk.py, I see "Open with". Notepad and python.exe >> are choices. However, that menu allows me to choose something else. For >> example, Adobe Reader, or Internet Explorer. I suppose the next question >> is should I use the browse there and try to connect to IDLE in >> ...\Lib\idlelib? My guess is that if I do, I will run into the "invalid >> Win32 app", when I try to use it. >> > You can't associate .py with Idle because Idle is a Python script, not > an executable (an .exe). Odd, but OK. > > Have a look here: > http://superuser.com/questions/68852/change-windows-7-explorer-edit-context-menu-action-for-jpg-and-other-image-fil Are you suggesting that I use the "default" program mentioned there? > > > In my PC's registry (Windows XP, but Windows 7 should be similar or the > same) it has the entry: > > Key: HKEY_CLASSES_ROOT\Python.File\shell\Edit with IDLE\command > Value: "C:\Python31\pythonw.exe" "C:\Python31\Lib\idlelib\idle.pyw" -n > -e "%1" > > Note how it actually associates the Edit action of Python files with an > .exe file. So pythonw.exe and idle.pyw are not scripts but somehow can fire up idle? Are you suggesting I modify my registry? I still find it bizarre the install did not put it IDLE choice on the menu for py. It's there on XP.
[toc] | [prev] | [next] | [standalone]
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Date | 2011-11-18 17:17 -0800 |
| Message-ID | <mailman.2842.1321665451.27778.python-list@python.org> |
| In reply to | #15907 |
On Fri, 18 Nov 2011 09:45:26 -0800, "W. eWatson"
<wolftracks@invalid.com> declaimed the following in
gmane.comp.python.general:
> So pythonw.exe and idle.pyw are not scripts but somehow can fire up idle?
>
All .py and .pyw are scripts (.pyw is a "code" that this script
should NOT open a standard console window).
pythonw.exe is the python executable that is meant to be used to run
.pyw scripts (python.exe is the default for .py files, and will create a
console window if it can not find stdin/stdout/stderr from its own
environment; pythonw.exe does not open a console window regardless)
> Are you suggesting I modify my registry? I still find it bizarre the
> install did not put it IDLE choice on the menu for py. It's there on XP.
Who can say? Maybe M$ security prevents some of those registry
changes from sticking...
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
[toc] | [prev] | [next] | [standalone]
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Date | 2011-11-18 10:04 -0800 |
| Message-ID | <mailman.2839.1321639508.27778.python-list@python.org> |
| In reply to | #15890 |
On Fri, 18 Nov 2011 07:29:56 -0800, "W. eWatson"
<wolftracks@invalid.com> declaimed the following in
gmane.comp.python.general:
> OK, I've found that. I see
> Py
> Pyc
> Pyo
> Pyw
> If I click on each, it basically it gives a short description of each.
> If I click advanced, there's more info. For example for py, Actions are
> IDLE and Open.
>
> What does this tell me that's relevant to Win7?
>
If you hit the "edit" button for each of those actions, it should
show you the ACTUAL application that performs that action.
Duplicate that definition on Win7 (using the correct path to the
files if they are different).
> If on Win7, I go to Default Programs I see under associations various
> python items. Py shows Unknown application. Since installing 2.7.2 I
> have not messed with these associations. If I right-click on Unknown, I
> see Notepad and python.exe for choices to open the file. I want neither.
> Why isn't IDLE listed there?
"python.exe" should be the default for open -- that's how you get a
double-click on a file to actually RUN it. For script files, editing
should be a separate "edit with ..." action.
And at this point, who cares why you don't see IDLE listed -- we've
been spending half the week trying to tell you HOW to add it.
Since I had a registry corruption, I don't even have PYO and PYC
files listed, and PYW did not have an edit action. I've since added
"edit with Pythonwin" and, just for you, added an "edit with IDLE"
action. I did it the long way around, invoking the exe with IDLE as the
argument...
So... once again...
-=-=-=-=-=-
Tools/File Options/File Types
For each of PY and PYW that don't have an edit action:
[New]
{give it a name -- note that I leave "open" to RUN the file only}
edit with IDLE
{application used... change the path to match your installation; keep
the quotes}
"E:\Python25\pythonw.exe" "E:\Python25\Lib\idlelib\idle.pyw" "%1"
{I don't know if the next are significant}
[X] Use DDE
{Application}
IDLE
{save the changes}
[OK]
[OK]
[Close]
-=-=-=-=-=-
After doing the above, the <right-click> menu would show "edit with
IDLE" as a choice.
I'd also suggest obtaining a copy of "Windows 7 Inside Out" --
though it appears to have skipped the detailed file type action
definitions (no wonder -- if my laptop with Win7 Home Premium is any
example, MicroSloth /removed/ the ability to add multiple actions --
there is NO "tools/file options/file types" visible. That leaves using
the registry editor to add the actions.
My Win7 machine has the following entries (export from regedit):
-=-=-=-=-=-
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.py]
@="Python.File"
"Content Type"="text/plain"
[HKEY_CLASSES_ROOT\.pyw]
@="Python.NoConFile"
"Content Type"="text/plain"
HKEY_CLASSES_ROOT\Python.File]
@="Python File"
[HKEY_CLASSES_ROOT\Python.File\DefaultIcon]
@="C:\\Python27\\DLLs\\py.ico"
[HKEY_CLASSES_ROOT\Python.File\shell]
[HKEY_CLASSES_ROOT\Python.File\shell\EditWithPythonwin]
@="Edit with &Pythonwin"
[HKEY_CLASSES_ROOT\Python.File\shell\EditWithPythonwin\command]
@="\"C:\\PYTHON~1\\Lib\\SITE-P~1\\PYTHON~1\\PYTHON~1.EXE\" \"%1\" %*"
[HKEY_CLASSES_ROOT\Python.File\shell\open]
@="Open"
[HKEY_CLASSES_ROOT\Python.File\shell\open\command]
@="\"C:\\Python27\\python.exe\" \"%1\" %*"
[HKEY_CLASSES_ROOT\Python.NoConFile]
@="Python File (no console)"
[HKEY_CLASSES_ROOT\Python.NoConFile\DefaultIcon]
@="C:\\Python27\\DLLs\\py.ico"
[HKEY_CLASSES_ROOT\Python.NoConFile\shell]
[HKEY_CLASSES_ROOT\Python.NoConFile\shell\EditWithPythonwin]
@="Edit with &Pythonwin"
[HKEY_CLASSES_ROOT\Python.NoConFile\shell\EditWithPythonwin\command]
@="\"C:\\PYTHON~1\\Lib\\SITE-P~1\\PYTHON~1\\PYTHON~1.EXE\" \"%1\" %*"
[HKEY_CLASSES_ROOT\Python.NoConFile\shell\open]
@="Open"
[HKEY_CLASSES_ROOT\Python.NoConFile\shell\open\command]
@="\"C:\\Python27\\pythonw.exe\" \"%1\" %*"
-=-=-=-=-=-
In contrast, my WinXP system shows (just for .PY, and with the above
add for IDLE):
-=-=-=-=-=-
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.py]
@="py_auto_file"
[HKEY_CLASSES_ROOT\.py\PersistentHandler]
@="{5e941d80-bf96-11cd-b579-08002b30bfeb}"
[HKEY_CLASSES_ROOT\py_auto_file]
@=""
"EditFlags"=dword:00000000
"BrowserFlags"=dword:00000008
[HKEY_CLASSES_ROOT\py_auto_file\shell]
@="open"
[HKEY_CLASSES_ROOT\py_auto_file\shell\edit]
[HKEY_CLASSES_ROOT\py_auto_file\shell\edit\command]
@="\"E:\\Python25\\Lib\\site-packages\\pythonwin\\Pythonwin.exe\"
\"%1\""
[HKEY_CLASSES_ROOT\py_auto_file\shell\edit_with_IDLE]
@="edit with IDLE"
[HKEY_CLASSES_ROOT\py_auto_file\shell\edit_with_IDLE\command]
@="\"E:\\Python25\\pythonw.exe\"
\"E:\\Python25\\Lib\\idlelib\\idle.pyw\" \"%1\""
[HKEY_CLASSES_ROOT\py_auto_file\shell\edit_with_IDLE\ddeexec]
[HKEY_CLASSES_ROOT\py_auto_file\shell\edit_with_IDLE\ddeexec\Application]
@="Idle"
[HKEY_CLASSES_ROOT\py_auto_file\shell\open]
[HKEY_CLASSES_ROOT\py_auto_file\shell\open\command]
@="\"E:\\Python25\\python.exe\" \"%1\" %*"
-=-=-=-=-=-
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
[toc] | [prev] | [next] | [standalone]
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Date | 2011-11-18 02:35 -0500 |
| Message-ID | <mailman.2825.1321601777.27778.python-list@python.org> |
| In reply to | #15841 |
On 11/17/2011 7:03 PM, W. eWatson wrote: > I have not found any successful way to get to IDLE. Use the start menu to start IDLE once. Then pin it to your taskbar. If you do not have STart/ all programs / Python / IDLE, then your installation is bad. As for the right click problem, you probably have something screwy in the registry. The python installer (or uninstaller) will not fix it (my experience on my old xp machine). You will have to do so manually. -- Terry Jan Reedy
[toc] | [prev] | [next] | [standalone]
| From | "W. eWatson" <wolftracks@invalid.com> |
|---|---|
| Date | 2011-11-18 09:57 -0800 |
| Message-ID | <ja66b7$fjn$1@dont-email.me> |
| In reply to | #15875 |
On 11/17/2011 11:35 PM, Terry Reedy wrote: > On 11/17/2011 7:03 PM, W. eWatson wrote: > >> I have not found any successful way to get to IDLE. > > Use the start menu to start IDLE once. Then pin it to your taskbar. > If you do not have STart/ all programs / Python / IDLE, then your > installation is bad. > > As for the right click problem, you probably have something screwy in > the registry. The python installer (or uninstaller) will not fix it (my > experience on my old xp machine). You will have to do so manually. > IDLE is a choice on the Start menu (All Programs). Pressing it does nothing. I see nothing that suggests it's open. The IDLE entry is pointing at c:\Python27\ (shortcut) A post above yours suggests IDLE is a script, and somehow needs a "boost" to use it. An exe file, apparently. Beats the heck out of me.
[toc] | [prev] | [next] | [standalone]
| From | alex23 <wuwei23@gmail.com> |
|---|---|
| Date | 2011-11-17 19:04 -0800 |
| Message-ID | <c6a4b7cb-5a23-4440-b1c4-0da75c593bb0@v31g2000prg.googlegroups.com> |
| In reply to | #15823 |
On Nov 18, 2:55 am, "W. eWatson" <wolftra...@invalid.com> wrote: > Comments? Are you using the vanilla installer or ActiveState's ActivePython? I find the latter integrates better with Windows. Also, out of curiousity, 32 or 64 bit Windows?
[toc] | [prev] | [next] | [standalone]
| From | "W. eWatson" <wolftracks@invalid.com> |
|---|---|
| Date | 2011-11-17 20:34 -0800 |
| Message-ID | <ja4n8s$3fd$2@dont-email.me> |
| In reply to | #15853 |
On 11/17/2011 7:04 PM, alex23 wrote: > On Nov 18, 2:55 am, "W. eWatson"<wolftra...@invalid.com> wrote: >> Comments? > > Are you using the vanilla installer or ActiveState's ActivePython? I > find the latter integrates better with Windows. > > Also, out of curiousity, 32 or 64 bit Windows? 64-bit and plain old python msi installer.
[toc] | [prev] | [next] | [standalone]
| From | Stephen Hansen <me+list/python@ixokai.io> |
|---|---|
| Date | 2011-11-18 14:31 -0800 |
| Message-ID | <mailman.2841.1321655531.27778.python-list@python.org> |
| In reply to | #15860 |
[Multipart message — attachments visible in raw view] — view raw
On 11/17/11 8:34 PM, W. eWatson wrote: > On 11/17/2011 7:04 PM, alex23 wrote: >> On Nov 18, 2:55 am, "W. eWatson"<wolftra...@invalid.com> wrote: >>> Comments? >> >> Are you using the vanilla installer or ActiveState's ActivePython? I >> find the latter integrates better with Windows. >> >> Also, out of curiousity, 32 or 64 bit Windows? > 64-bit and plain old python msi installer. That'd be it, I expect. Windows has two parallel registry trees; if you launch a 32-bit program, it sees one.. if you launch a 64-bit program, it sees the other. What looks like the exact same keys can be different as a result. The MSI is probably writing the keys into the 32-bit registry, and Explorer is now a 64-bit application. You can add the associations for Edit manually. Though not to "idle.pyw", which you keep -- repeatedly -- saying you try and errors. Of course it errors. That's a python script, not an executable. Associate to pythonw.exe, and pass it the path to idle.pyw, and then -n -e "%1" -- which will be replaced with the actual filename. But you were told that already and seem to have just dismissed it out of hand. Like: PATH\pythonw.exe PATH\idle.pyw -n -e "%1" ... where PATH is whatever the location of those files are in your environment. Yes, its moderately annoying that you have to do this yourself; maybe you wouldn't if you installed 64-bit python, but I can't be sure. Maybe it has nothing to do with 32 or 64-bitness at all and my guess is wrong. Maybe your profile has gone wonky. But it doesn't matter. You can add the Edit association yourself. Its a one-time fix. -- Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog: http://meh.ixokai.io/
[toc] | [prev] | [next] | [standalone]
| From | alex23 <wuwei23@gmail.com> |
|---|---|
| Date | 2011-11-20 21:09 -0800 |
| Message-ID | <70f026ae-9a6d-42de-880d-c1e430275e7c@13g2000prw.googlegroups.com> |
| In reply to | #15919 |
On Nov 19, 8:31 am, Stephen Hansen <me+list/pyt...@ixokai.io> wrote: > Yes, its moderately annoying that you have to do this yourself; maybe > you wouldn't if you installed 64-bit python, but I can't be sure. Maybe > it has nothing to do with 32 or 64-bitness at all and my guess is wrong. I've got the 32 bit version of 2.7 & the 64 bit of 3.2 installed under Windows 7. I'm not seeing 'Edit with IDLE' options, instead I get 'Edit with Pythonwin' from the 32bit installation. I'm also using ActivePython, though. I can honestly say I've never had an issue under Windows with it.
[toc] | [prev] | [next] | [standalone]
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Date | 2011-11-17 20:34 -0800 |
| Message-ID | <mailman.2817.1321590873.27778.python-list@python.org> |
| In reply to | #15823 |
On Thu, 17 Nov 2011 08:55:36 -0800, "W. eWatson"
<wolftracks@invalid.com> declaimed the following in
gmane.comp.python.general:
> Months ago 2.5.2 stopped functioning on my Win7 PC, so a few days ago I
> uninstalled and installed. Same problem. If one right-clicks on a py
> file, IDLE is not shown in the menu as Edit with IDLE. After playing
> with matters I gave up, and uninstalled 2.5.2 and turned to 2.7.2. Same
> results.
>
> If I look at a 2.4 install on my laptop, I get the desired reference to
> Edit with IDLE.
>
Fine... so open a directory window, follow
Tools/Folder Options/File Types
Scroll down to PYW, click [Advanced]
You should get an "Edit File Type" dialog. Mine shows just one
action "open", yours probably has "open" and "edit". Select "edit" and
then click [Edit] button. See what it says for the application to be
used.
Do the same on the Win7 machine -- it probably doesn't have "edit"
as an action, so you'll be picking the [New] button. Define the new
action to look like the action on the laptop (use the correct path to
the python executable, and maybe to IDLE).
Heck, check what those actions show for PY files too... The only
difference between PY and PYW should be the application used in the
"open" action.
PY => .../python.exe
PYW => .../pythonw.exe
Also make sure that the "open" action is the defined default (select
the action, and click the default button); when there are more than one
action, the default will be in bold.
> My guess is that Win 7 is behind this. If so, it's good-bye Python.
>
> Comments?
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
[toc] | [prev] | [next] | [standalone]
Page 2 of 3 — ← Prev page 1 [2] 3 Next page →
Back to top | Article view | comp.lang.python
csiph-web