Re: How do I access IDLE in Win7
I've given this problem over to the Python Tutor mail-list. I can capture screens more easily than manipulate in cmd.exe. It may be a preference problem on who owns what. SYSTEM seems to be the owner, and not me. -- http://mail.python.org/mailman/listinfo/python-list
Re: How do I access IDLE in Win7
On 7/28/2011 8:10 AM, W. eWatson wrote: On 7/28/2011 6:19 AM, Jerry Hill wrote: On Wed, Jul 27, 2011 at 5:26 PM, W. eWatson wrote: .py=Python.File .pyw=Python.NoConFile Python.File="C:\Python25\python.exe" "%1" %* Python.File="C:\Python25\python.exe" "%1" %* Python.NoConFile="C:\Python25\pythonw.exe" "%1" %* That all looks good. I cannot copy from the cmd window. It ends with [errorno 13] Permission denied to c:||Users\\Wayne\\idlerc\\recent-files.lst' That sounds like the root of the problem, then. I'm assuming Wayne is your username, but I don't know why you wouldn't have permission to access something in your own user directory. Can you try deleting that file in the windows explorer? You could try messing with the permissions, but I doubt you care about a recent file list that sounds several months old. You might even try removing (or renaming) the whole C:\Users\Wayne\idlerc folder. Idle should re-build anything it needs if it's not there when you start up. It's a hidden file. I tried deleting w/o success so changed the name. The file was dated 5/??/2010. I tried the usual method of right-click on junk.py to see if Edit with IDLE would appear in the menu. It didn't, so I tried a right-click to Choose default program to idle.pyw. Using it again gave me an invalid 32-bit message. I am able to get a proper response at the command level by entering pythonw.exe. >>> print "abc" works fine. I've forgotten how to get out of >>>. I'm killing the command window. idle.pyw brings up IDLE at the command level. -- http://mail.python.org/mailman/listinfo/python-list
Re: How do I access IDLE in Win7
On 7/28/2011 6:19 AM, Jerry Hill wrote: On Wed, Jul 27, 2011 at 5:26 PM, W. eWatson wrote: .py=Python.File .pyw=Python.NoConFile Python.File="C:\Python25\python.exe" "%1" %* Python.File="C:\Python25\python.exe" "%1" %* Python.NoConFile="C:\Python25\pythonw.exe" "%1" %* That all looks good. I cannot copy from the cmd window. It ends with [errorno 13] Permission denied to c:||Users\\Wayne\\idlerc\\recent-files.lst' That sounds like the root of the problem, then. I'm assuming Wayne is your username, but I don't know why you wouldn't have permission to access something in your own user directory. Can you try deleting that file in the windows explorer? You could try messing with the permissions, but I doubt you care about a recent file list that sounds several months old. You might even try removing (or renaming) the whole C:\Users\Wayne\idlerc folder. Idle should re-build anything it needs if it's not there when you start up. It's a hidden file. I tried deleting w/o success so changed the name. The file was dated 5/??/2010. I tried the usual method of right-click on junk.py to see if Edit with IDLE would appear in the menu. It didn't, so I tried a right-click to Choose default program to idle.pyw. Using it again gave me an invalid 32-bit message. I am able to get a proper response at the command level by entering pythonw.exe. >>> print "abc" works fine. I've forgotten how to get out of >>>. I'm killing the command window. -- http://mail.python.org/mailman/listinfo/python-list
Re: How do I access IDLE in Win7
On Wed, Jul 27, 2011 at 5:26 PM, W. eWatson wrote: > .py=Python.File > .pyw=Python.NoConFile > Python.File="C:\Python25\python.exe" "%1" %* > Python.File="C:\Python25\python.exe" "%1" %* > Python.NoConFile="C:\Python25\pythonw.exe" "%1" %* That all looks good. > I cannot copy from the cmd window. It ends with [errorno 13] Permission > denied to c:||Users\\Wayne\\idlerc\\recent-files.lst' That sounds like the root of the problem, then. I'm assuming Wayne is your username, but I don't know why you wouldn't have permission to access something in your own user directory. Can you try deleting that file in the windows explorer? You could try messing with the permissions, but I doubt you care about a recent file list that sounds several months old. You might even try removing (or renaming) the whole C:\Users\Wayne\idlerc folder. Idle should re-build anything it needs if it's not there when you start up. -- Jerry -- http://mail.python.org/mailman/listinfo/python-list
Re: How do I access IDLE in Win7
On 2011-07-28 13:56, W. eWatson wrote: On 7/27/2011 9:46 PM, Dennis Lee Bieber wrote: {and that was captured by a in the command window, "select all", another to capture, then move to the newreader and to paste} I'm quite willing to do this in the command window, but I know of no way to copy it. *facepalm* -- http://mail.python.org/mailman/listinfo/python-list
Re: How do I access IDLE in Win7
On 7/27/2011 9:46 PM, Dennis Lee Bieber wrote: On Wed, 27 Jul 2011 17:28:38 -0700, "W. eWatson" declaimed the following in gmane.comp.python.general: For junk.py, I tried Open With->Choose default program. I selected idle.pyw. When I tried the new default for getting to IDLE, it complained it was not a valid 32-bit app. That's very strange. Quite expected... idle.pyw is a Python byte code file... IT needs to be run using a Python interpreter (pythonw.exe to suppress the shell window). What happens IN the command/shell if you type (replace the with the correct string on your installation) python -vidle.pyw This is my install: E:\UserData\Wulfraed\My Documents>e:\Python25\python -v e:\Python25\Lib\idlelib\idle.pyw # installing zipimport hook import zipimport # builtin # installed zipimport hook # e:\Python25\lib\site.pyc matches e:\Python25\lib\site.py import site # precompiled from e:\Python25\lib\site.pyc # e:\Python25\lib\os.pyc matches e:\Python25\lib\os.py import os # precompiled from e:\Python25\lib\os.pyc import errno # builtin import nt # builtin # e:\Python25\lib\ntpath.pyc matches e:\Python25\lib\ntpath.py import ntpath # precompiled from e:\Python25\lib\ntpath.pyc # e:\Python25\lib\stat.pyc matches e:\Python25\lib\stat.py import stat # precompiled from e:\Python25\lib\stat.pyc # e:\Python25\lib\UserDict.pyc matches e:\Python25\lib\UserDict.py import UserDict # precompiled from e:\Python25\lib\UserDict.pyc # e:\Python25\lib\copy_reg.pyc matches e:\Python25\lib\copy_reg.py import copy_reg # precompiled from e:\Python25\lib\copy_reg.pyc # e:\Python25\lib\types.pyc matches e:\Python25\lib\types.py import types # precompiled from e:\Python25\lib\types.pyc import _types # builtin # zipimport: found 45 names in e:\Python25\lib\site-packages\simplejson-2.0.3-py2.5.egg # zipimport: found 33 names in e:\Python25\lib\site-packages\ruledispatch-0.5a1.dev_r2506-py2.5- win32.egg # zipimport: found 15 names in e:\Python25\lib\site-packages\decoratortools-1.7-py2.5.egg # zipimport: found 9 names in e:\Python25\lib\site-packages\configobj-4.5.3-py2.5.egg # zipimport: found 15 names in e:\Python25\lib\site-packages\extremes-1.1-py2.5.egg # zipimport: found 43 names in e:\Python25\lib\site-packages\pyprotocols-1.0a0-py2.5-win32.egg # e:\Python25\lib\locale.pyc matches e:\Python25\lib\locale.py import locale # precompiled from e:\Python25\lib\locale.pyc import encodings # directory e:\Python25\lib\encodings # e:\Python25\lib\encodings\__init__.pyc matches e:\Python25\lib\encodings\__init__.py import encodings # precompiled from e:\Python25\lib\encodings\__init__.pyc # e:\Python25\lib\codecs.pyc matches e:\Python25\lib\codecs.py import codecs # precompiled from e:\Python25\lib\codecs.pyc import _codecs # builtin # e:\Python25\lib\encodings\aliases.pyc matches e:\Python25\lib\encodings\aliases.py import encodings.aliases # precompiled from e:\Python25\lib\encodings\aliases.pyc import _locale # builtin # e:\Python25\lib\re.pyc matches e:\Python25\lib\re.py import re # precompiled from e:\Python25\lib\re.pyc # e:\Python25\lib\sre_compile.pyc matches e:\Python25\lib\sre_compile.py import sre_compile # precompiled from e:\Python25\lib\sre_compile.pyc import _sre # builtin # e:\Python25\lib\sre_constants.pyc matches e:\Python25\lib\sre_constants.py import sre_constants # precompiled from e:\Python25\lib\sre_constants.pyc # e:\Python25\lib\sre_parse.pyc matches e:\Python25\lib\sre_parse.py import sre_parse # precompiled from e:\Python25\lib\sre_parse.pyc import operator # builtin # e:\Python25\lib\encodings\cp1252.pyc matches e:\Python25\lib\encodings\cp1252.py import encodings.cp1252 # precompiled from e:\Python25\lib\encodings\cp1252.pyc # e:\Python25\lib\warnings.pyc matches e:\Python25\lib\warnings.py import warnings # precompiled from e:\Python25\lib\warnings.pyc # e:\Python25\lib\linecache.pyc matches e:\Python25\lib\linecache.py import linecache # precompiled from e:\Python25\lib\linecache.pyc ActivePython 2.5.2.2 (ActiveState Software Inc.) based on Python 2.5.2 (r252:60911, Mar 27 2008, 17:57:18) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. import idlelib # directory e:\Python25\lib\idlelib # e:\Python25\lib\idlelib\__init__.pyc matches e:\Python25\lib\idlelib\__init__.py import idlelib # precompiled from e:\Python25\lib\idlelib\__init__.pyc # e:\Python25\lib\idlelib\PyShell.pyc matches e:\Python25\lib\idlelib\PyShell.py import idlelib.PyShell # precompiled from e:\Python25\lib\idlelib\PyShell.pyc # e:\Python25\lib\string.pyc matches e:\Python25\lib\string.py import string # precompiled from e:\Python25\lib\string.pyc import strop # builtin # e:\Python25\lib\getopt.pyc matches e:\Python25\lib\getopt.py import getopt # precompiled from e:\Python25\lib\getopt.pyc # e:\Python25\lib\socket.pyc matches e:\Python25\lib\socket.py import socket # precompiled from e:\Python25\lib\socket.pyc import _socket # dynamically loaded
Re: How do I access IDLE in Win7
In the mean time, I punted and re-installed. It's still not quite right. I uninstalled it. I was asked during install if I wanted to remove c:\Python25. It was still there and had several folders (Lib, Scripts) and files (fishe.py, RemovePIL.exe, junk.py). I said yes. It installed 2.5.2. Edit with IDLE still fails, as does a simple py file like junk.py (has five lines of simple math). That is executing junk.py or trying to get it into IDLE doesn't work. For junk.py, I tried Open With->Choose default program. I selected idle.pyw. When I tried the new default for getting to IDLE, it complained it was not a valid 32-bit app. That's very strange. -- http://mail.python.org/mailman/listinfo/python-list
Re: How do I access IDLE in Win7
On 27/07/11 23:26, W. eWatson wrote: > I cannot copy from the cmd window. It ends with [errorno 13] Permission > denied to c:||Users\\Wayne\\idlerc\\recent-files.lst' > Yes you can. Right-click to bring up a menu with a "select" or "copy" option (IIRC) As for the error, see if there is file /users/wayne/idlerc/recent-files.lst And if there is, delete it. Or even delete the whole folder «idlerc». IDLE should be able to cope with it not being there at all: it wouldn't be there the first time IDLE is started by a user. - Thomas -- http://mail.python.org/mailman/listinfo/python-list
Re: How do I access IDLE in Win7
On 7/27/2011 12:53 PM, Jerry Hill wrote: On Wed, Jul 27, 2011 at 3:34 PM, W. eWatson wrote: On 7/27/2011 9:48 AM, Jerry Hill wrote: So, you don't have an idle.py or idle.pyw in C:\Python26\Lib\idlelib\ (or where ever you installed python)? If not, it sounds to me like your python installation is screwed up. I would re-install. Yes, I have both. Neither shows anything on the monitor when I double click them. Oh, I guess I misunderstood. Go ahead and open that cmd.exe window back up. Please run the following and report back the results. In the cmd.exe window run: assoc .py assoc .pyw ftype Python.File ftype Python.NoConFile .py=Python.File .pyw=Python.NoConFile Python.File="C:\Python25\python.exe" "%1" %* Python.File="C:\Python25\python.exe" "%1" %* Python.NoConFile="C:\Python25\pythonw.exe" "%1" %* Those four commands should show us how the python file associations are set up on your computer. Then, let's try to run idle and capture whatever error message is popping up. I don't think you've mentioned what version of python you have installed. The following is for 2.6, since that's what I have installed here, but it should work on any other version if you swap in your installation directory for the 2.6 one below. Still in your cmd.exe window, run the following: c:\Python26\python.exe C:\Python26\Lib\idlelib\idle.py I cannot copy from the cmd window. It ends with [errorno 13] Permission denied to c:||Users\\Wayne\\idlerc\\recent-files.lst' recent-files.lst !!! weird If you get an exception, please copy and paste the details for us. If that works and opens idle, please try running this: C:\Python26\Lib\idlelib\idle.py Based on the behavior you've described so far, that ought to fail, and hopefully give some sort of message or exception for us to diagnose. PS: If you're just trying to get things working, and don't care what might be wrong, I would recommend just re-installing python. That ought to clean up all the file associations and set things up properly for you. That's likely the quickest way to just get things working. Yep, I'm thinking about it. -- http://mail.python.org/mailman/listinfo/python-list
Re: How do I access IDLE in Win7
On Wed, Jul 27, 2011 at 3:34 PM, W. eWatson wrote: > On 7/27/2011 9:48 AM, Jerry Hill wrote: >> So, you don't have an idle.py or idle.pyw in C:\Python26\Lib\idlelib\ >> (or where ever you installed python)? If not, it sounds to me like >> your python installation is screwed up. I would re-install. > > Yes, I have both. Neither shows anything on the monitor when I double click > them. Oh, I guess I misunderstood. Go ahead and open that cmd.exe window back up. Please run the following and report back the results. In the cmd.exe window run: assoc .py assoc .pyw ftype Python.File ftype Python.NoConFile Those four commands should show us how the python file associations are set up on your computer. Then, let's try to run idle and capture whatever error message is popping up. I don't think you've mentioned what version of python you have installed. The following is for 2.6, since that's what I have installed here, but it should work on any other version if you swap in your installation directory for the 2.6 one below. Still in your cmd.exe window, run the following: c:\Python26\python.exe C:\Python26\Lib\idlelib\idle.py If you get an exception, please copy and paste the details for us. If that works and opens idle, please try running this: C:\Python26\Lib\idlelib\idle.py Based on the behavior you've described so far, that ought to fail, and hopefully give some sort of message or exception for us to diagnose. PS: If you're just trying to get things working, and don't care what might be wrong, I would recommend just re-installing python. That ought to clean up all the file associations and set things up properly for you. That's likely the quickest way to just get things working. -- Jerry -- http://mail.python.org/mailman/listinfo/python-list
Re: How do I access IDLE in Win7
On 7/27/2011 9:48 AM, Jerry Hill wrote: On Wed, Jul 27, 2011 at 12:28 PM, W. eWatson wrote: If I run cmd.exe and work my way down to .../idlelib, I find nothing but idle.bat. strange. Hidden? I can get into line mode by using python.exe. That is, I can type in print "abc", and get a result. So, you don't have an idle.py or idle.pyw in C:\Python26\Lib\idlelib\ (or where ever you installed python)? If not, it sounds to me like your python installation is screwed up. I would re-install. Jerry Yes, I have both. Neither shows anything on the monitor when I double click them. -- http://mail.python.org/mailman/listinfo/python-list
Re: How do I access IDLE in Win7
On Wed, Jul 27, 2011 at 12:28 PM, W. eWatson wrote: > If I run cmd.exe and work my way down to .../idlelib, I find nothing but > idle.bat. strange. Hidden? I can get into line mode by using python.exe. > That is, I can type in print "abc", and get a result. So, you don't have an idle.py or idle.pyw in C:\Python26\Lib\idlelib\ (or where ever you installed python)? If not, it sounds to me like your python installation is screwed up. I would re-install. Jerry -- http://mail.python.org/mailman/listinfo/python-list
Re: How do I access IDLE in Win7
On 7/27/2011 8:38 AM, rantingrick wrote: On Jul 27, 10:06 am, "W. eWatson" wrote: It's been many months since I played with Python, and have forgotten how to bring up IDLE. If I simply click on a py file, I see what may be a dos window appear and quickly disappear. "Double-clicking" a [py|pyw] file in windows will auto run the file (considering you have not changed the association). So if you're trying to edit the file you'll want to try something else. If I right-click on the file, and select IDLE, the same thing happens. You mean "Right-Click -> Send-To-IDLE"? A right-click gives me two choices. Edit with IDLE or Open With. The first produces nothing, or something so quick that I do not see it. The second gives me a choice of python.exe, Notepad, or Choose Default Program. None of these are helpful. If I go directly to All Programs, the same thing happens when I select IDLE. You mean "Start_Menu -> All_Programs -> PythonX.X -> IDLE_(Python GUI)"? Yes typically that is how you'd run IDLE form a winders box. Yes, that's what I do, but again the result is essentially nothing. If you want to edit a python script then first open an editor and then navigate to the file. There is also a "RightClick -> Open-with-IDLE" option also but i prefer to navigate from my editor. Edit with IDLE as above. Doesn't work. No editor appears. However it sounds like you may be experiencing a bug (or configuration issue). Can you capture the "dos" error with the print screen button and post it here? You'll have to be quick to catch it! Way too fast. Also try to run IDLE from this path: ...\PythonXX\Lib\idlelib {double click PyShell.py} It stays up for about 1/2 second. If I run cmd.exe and work my way down to .../idlelib, I find nothing but idle.bat. strange. Hidden? I can get into line mode by using python.exe. That is, I can type in print "abc", and get a result. Baffling. -- http://mail.python.org/mailman/listinfo/python-list
Re: How do I access IDLE in Win7
On Jul 27, 10:06 am, "W. eWatson" wrote: > It's been many months since I played with Python, and have forgotten how > to bring up IDLE. If I simply click on a py file, I see what may be a > dos window appear and quickly disappear. "Double-clicking" a [py|pyw] file in windows will auto run the file (considering you have not changed the association). So if you're trying to edit the file you'll want to try something else. > If I right-click on the file, > and select IDLE, the same thing happens. You mean "Right-Click -> Send-To-IDLE"? > If I go directly to All > Programs, the same thing happens when I select IDLE. You mean "Start_Menu -> All_Programs -> PythonX.X -> IDLE_(Python GUI)"? Yes typically that is how you'd run IDLE form a winders box. If you want to edit a python script then first open an editor and then navigate to the file. There is also a "RightClick -> Open-with-IDLE" option also but i prefer to navigate from my editor. However it sounds like you may be experiencing a bug (or configuration issue). Can you capture the "dos" error with the print screen button and post it here? You'll have to be quick to catch it! Also try to run IDLE from this path: ...\PythonXX\Lib\idlelib {double click PyShell.py} -- http://mail.python.org/mailman/listinfo/python-list
How do I access IDLE in Win7
It's been many months since I played with Python, and have forgotten how to bring up IDLE. If I simply click on a py file, I see what may be a dos window appear and quickly disappear. If I right-click on the file, and select IDLE, the same thing happens. If I go directly to All Programs, the same thing happens when I select IDLE. -- http://mail.python.org/mailman/listinfo/python-list