Re: [Tutor] A few Python Mysteries [Reset]
On 12/24/2011 11:24 AM, Alan Gauld wrote: On 24/12/11 18:58, Wayne Watson wrote: Yikes. I gave the permissions for .idlerc above. The problem is with recent-files.py. IOError: [Errno 13] Permission denied: 'C:\\Users\\Wayne\\.idlerc\\recent-files.lst' Can you open it in Notepad from the same command prompt? ie. is it just idle that can't open it, or is it any program? Opens with Notepad and jEdit from the menu off a py file. I'm suspicious of the Unknown Account(S-1-21-lots of digits) seen in Properties' Security tab. It seems bizarre and has read and readexecute properties only. Unknown User exits for txt and jpg files, so it's not isolated to py. Perhaps there's an ownership problem; however, Owner (recent-files.lst) is: solarblast\Wayne. That's me. I'm looking at the General tab of .idlerc. Attributes Read-only check box is blue. If I click on it, it goes white. If I click again, it shows the check mark. Eventually, I get back to blue. I'm now looking at Properties-General for recent-files.lst, and Read -only check box is white. Presently, I do not know if this amounts to anything. I see recent-files.lst is openable with Word. I see mydir_math.py is opened with python.exe!!?? True of other py files. -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet CE 1955 October 20 07:53:32.6 UT -- The Date The mystery unfolds. Web Page:www.speckledwithstars.net/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] A few Python Mysteries [SOLVED]
Excellent strategy!! It worked. I just examined the properties for each .idlerc, and noticed that the troublesome one was created in Feb 4,2010. Probably with Python 2.5.2. I don't know why or necessarily whether new installs shouldn't have changed the folder or recreated it. Thanks to all who followed this long perplexing thread. On 12/24/2011 8:08 PM, Lie Ryan wrote: On 12/25/2011 06:24 AM, Alan Gauld wrote: On 24/12/11 18:58, Wayne Watson wrote: Yikes. I gave the permissions for .idlerc above. The problem is with recent-files.py. IOError: [Errno 13] Permission denied: 'C:\\Users\\Wayne\\.idlerc\\recent-files.lst' Can you open it in Notepad from the same command prompt? ie. is it just idle that can't open it, or is it any program? also, try deleting the whole folder (or just in case, move the folder somewhere else), IDLE should create a new folder and config files, hopefully with the correct permission. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet CE 1955 October 20 07:53:32.6 UT -- The Date The mystery unfolds. Web Page:www.speckledwithstars.net/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] A few Python Mysteries [Reset]
On 26/12/11 18:57, Wayne Watson wrote: IOError: [Errno 13] Permission denied: 'C:\\Users\\Wayne\\.idlerc\\recent-files.lst' Can you open it in Notepad from the same command prompt? Opens with Notepad and jEdit from the menu off a py file. That's not what I asked. Does it open in Notepad from the same command prompt where you try to run python? Or indeed any command prompt: C:\WINDOWS notepad C:\Users\Wayne\.idlerc\recent-files.lst I see recent-files.lst is openable with Word. Thats nort a surprise, its probably just a text file, so Windows could associate just about anything! I see mydir_math.py is opened with python.exe!!?? True of other py files. Which is what you'd expect, after all the default behaviour for a python script should surely be to get executed by Python? What else would you expect? -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] A few Python Mysteries [Reset]
Regardless, the problem is solved. See my [SOLVED] msg I put up this morning (USA). It's in response to Lie Ryan. However, I have no real idea how is was caused. On 12/26/2011 1:28 PM, Alan Gauld wrote: On 26/12/11 18:57, Wayne Watson wrote: IOError: [Errno 13] Permission denied: 'C:\\Users\\Wayne\\.idlerc\\recent-files.lst' Can you open it in Notepad from the same command prompt? Opens with Notepad and jEdit from the menu off a py file. That's not what I asked. Does it open in Notepad from the same command prompt where you try to run python? Or indeed any command prompt: C:\WINDOWS notepad C:\Users\Wayne\.idlerc\recent-files.lst I see recent-files.lst is openable with Word. Thats nort a surprise, its probably just a text file, so Windows could associate just about anything! I see mydir_math.py is opened with python.exe!!?? True of other py files. Which is what you'd expect, after all the default behaviour for a python script should surely be to get executed by Python? What else would you expect? -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet CE 1955 October 20 07:53:32.6 UT -- The Date The mystery unfolds. Web Page:www.speckledwithstars.net/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] A few Python Mysteries [Reset]
My guess is that some months ago I looked at .idlerc on another mission to figure what ails my python install, and just more or less backed up the recent-files.lst. However, the important point here is, I think, how to change the permissions for the .idlerc folder. They vary by how I might login. On 12/23/2011 11:47 PM, Lie Ryan wrote: On 12/23/2011 03:20 PM, Wayne Watson wrote: Hi, I found it, but not in a place I would expect. It's under my username, Wayne. It is a folder and has three files: breakpoints.lst recent-files.lst ZZrecent-files.lst The last one has the odd ZZ, but is empty. breakpoints.lst is empty too. That certainly is curious, have you tried renaming ZZrecent-files.lst to recent-file.lst? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet CE 1955 October 20 07:53:32.6 UT -- The Date The mystery unfolds. Web Page:www.speckledwithstars.net/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] A few Python Mysteries [Reset]
Permissions as follows: SYSTEM: All. From Full control to write Account Unknown(S-1-5-21...): read, exec, list folder contents, Read Wayne: (normal use) All. From Full control to write Admin: All. From Full control to write WMPNetwork: Read -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet CE 1955 October 20 07:53:32.6 UT -- The Date The mystery unfolds. Web Page:www.speckledwithstars.net/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] A few Python Mysteries [Reset]
Yikes. I gave the permissions for .idlerc above. The problem is with recent-files.py. IOError: [Errno 13] Permission denied: 'C:\\Users\\Wayne\\.idlerc\\recent-files.lst' These are for it. Same as before except for Account Unknown, which had list folder contents. Permissions as follows: SYSTEM: All. From Full control to write Account Unknown(S-1-5-21...): readexec, Read Wayne: (normal use) All. From Full control to write Admin: All. From Full control to write WMPNetwork: Read -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet CE 1955 October 20 07:53:32.6 UT -- The Date The mystery unfolds. Web Page:www.speckledwithstars.net/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] A few Python Mysteries [Reset]
On 24/12/11 18:58, Wayne Watson wrote: Yikes. I gave the permissions for .idlerc above. The problem is with recent-files.py. IOError: [Errno 13] Permission denied: 'C:\\Users\\Wayne\\.idlerc\\recent-files.lst' Can you open it in Notepad from the same command prompt? ie. is it just idle that can't open it, or is it any program? -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] A few Python Mysteries [Reset]
On 12/25/2011 06:24 AM, Alan Gauld wrote: On 24/12/11 18:58, Wayne Watson wrote: Yikes. I gave the permissions for .idlerc above. The problem is with recent-files.py. IOError: [Errno 13] Permission denied: 'C:\\Users\\Wayne\\.idlerc\\recent-files.lst' Can you open it in Notepad from the same command prompt? ie. is it just idle that can't open it, or is it any program? also, try deleting the whole folder (or just in case, move the folder somewhere else), IDLE should create a new folder and config files, hopefully with the correct permission. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] A few Python Mysteries [Reset]
On 12/23/2011 03:20 PM, Wayne Watson wrote: Hi, I found it, but not in a place I would expect. It's under my username, Wayne. It is a folder and has three files: breakpoints.lst recent-files.lst ZZrecent-files.lst The last one has the odd ZZ, but is empty. breakpoints.lst is empty too. That certainly is curious, have you tried renaming ZZrecent-files.lst to recent-file.lst? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] A few Python Mysteries [Reset]
Hi, Walter. On 12/21/2011 8:20 PM, Walter Prins wrote: Hi Wayne, On 22 December 2011 03:21, Wayne Watsonsierra_mtnv...@sbcglobal.net wrote: I uninstalled Uniblue, but as it turns out, it was an incomplete uninstall. I just spent the last 30-45 minutes trying to get it uninstalled. Finally, I sent an e-mail on how to do it. I have no idea how it got entangled with Python 2.6. So for the time being it's out of the picture. Well, presumably it uses/depends on Python 2.6... I'm looking at the Uniblue DriverScanner, and see mostly exe files, and a few dll files. They may all relate to the uniblue program itself. There's a language folder there, and a x64 folder there. x64 has the installer. Otherwise, there is no reference to anything that looks like a 26 dll, nor is there a list of drivers the program might want to examine for age. Of course, all of this should have been uninstalled. Although, the Win7 indexed search is very fast to find something there are times when it flubs (possibly since I don't know all the tricks one can use in a search). looking for 26.dll has turned up nothing an either a folder or inside a file. Supposedly, Uniblue supply an answer in 24 hours. If not, I'll try Winamp. As a question asked by others, is Python27 under ...\System32. It is under C:\Python27. Further, it is the 64-bit version associated with Python. I didn't ask. I stated, and to clarify: When you install the standard distribution of Python, the majority of the files get put under C:\PythonNN (unless otherwise specified by the user). However, the Python engine in the form of a DLL is *also* put under the System32 directory. I'm looking at System32 entries right now. I see folders such as spool, speech, setup,restore, and lots of dll files. Some of the p dll files are p2psvc.dll, packager.dll, p2p.dll, and python27.dll. No python26.dll, and nothing starting with py other than the 27 file. In reading some of the other posts, I was unsure of whether Python27 is put on the PATH or not by the install. The question remains unanswered. I just left it there, as I re-installed 2.7.2 minutes ago. Here's where matters stand. I've already answered this also, with an unambigious exception to my answer pointed out by another poster, which is that it depends on whether you installed the standard Python distribution or whether you Standard. Interesting dependency. I considered Active once, but did not install it. installed the ActiveState Python distribution. So, did you install the standard Python distribution or did you install the ActiveState version of Python? The answer to this question will determine whether the PATH will have been affected by the Python installation. Even so, it's an irrelevance w.r.t. your IDLE problems... What is the outcome based on what I wrote about not Active? The fact that when I right click on a py file, it begins with Open and then Edit with IDLE is very encouraging. Having this entry in your context menu simply means certain entries are in your system's registery but says very little else about whether it will work or not. The downside is that IDLE does not come up. Which suggests that the associations/registry entries are in fact broken, perhaps because they're pointing to a non-existent installation of Python... If so, how I can I tell? However, the Start menu's Python27 entry shows Edit with IDLE, Manuals, ..., and Python Console. The console works. The fact that IDLE actually appears in both places is again encouraging. Does IDLE start from the Start menu when you click it? Nothing happens that I can detect. I'm looking at Properties of it. It shows Start in: c:\Python27. Type of File: shortcut (link). Location: ...\star menu\programs\python2.7 Interesting under the Security tab it shows Wayne with only special permissions. No Read, Write, Read Execute(!!). Admin allows all but special. Users allows ReadExecute and Read. Same with Everyone Under Details tab Name is IDLE(Python GUI) link. Folder Path: c:\ProgramData\Microsoft\Windows\Start... I can see nothing past Start... Under ...\Python27\Lib\idlelib, I can find idle.py, idle.pyw and IdleHistory.py. Clicking on idle.pyw does nothing. Does double clicking idle.pyw do anything? Nothing but a momentary circular arrow icon. Thinking I guess. Normally double clicking idle.pyw will start IDLE. Does double clicking idle.bat do anything? Normally clicking idle.bat will also start IDLE. If you open a command prompt and then enter cd \Python27\Lib\idlelib idle.bat Does it output any error messages? If so, what? A black command window comes up very briefly. It looks empty, but it's really gone quickly. A few months ago when I broached this install and IDLE problem, someone mentioned idle.bat. It is in the same idlelib. Is there something that needs to be done here, to get IDLE active? Is this where having Python27 in the path causes a problem with IDLE? Whether or
Re: [Tutor] A few Python Mysteries
On 12/21/2011 4:10 PM, Alan Gauld wrote: On 21/12/11 19:56, Wayne Watson wrote: To clarify: Python on Windows does **not** put itself on the System PATH when installed. So, PythonNN, where NN is the version, should never appear in PATH? Not from a standard Python installation. But other programs whjich use Pythonn may install a version and modify the PATH for you, or you may, for your own benefit, add it manually. I always add a new Python version to my PATH as a matter of course. It's conceivable when I raised some of the questions a month of so ago, someone suggested putting PythonNN on the path. Very possible indeed. likely the application that *did* put it there is the **same** application that is now complaining about the fact that it can't find the Python 2.5 DLL when you boot up... See my mis-copy 26.dll in my other post to you. OK, But the principle remains. If you have an app in your startup sequence that expects to find Python it will complain. Per my new sub thread {Reset], Uniblue seems to the trouble maker with 26.dll. You can check your startup sequence using a Microsoft tool. MSCONFIG or somesuch. Google Windows startup tool or similar... You can disable individual programs and restart to find out what is causing it. I see msconfig.exe, but at the moment am hesitant to use it. I have no idea why some remnant of why Python6 is hanging around. I uninstalled it long ago too. The problem is that it is not hanging around and some app expects it to be there. The error message is about a missing file... One thing that may be significant... Are you installing your Windows Python versions from python.org or from ActiveState? They are very similar but not identical. from Python Org. -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet CE 1955 October 20 07:53:32.6 UT -- The Date The mystery unfolds. Web Page:www.speckledwithstars.net/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] A few Python Mysteries [Reset]
I just searched the registry for the dll. Nothing. I then searched for python. It found a a Python folder with a PythonCore folder. Under it are three folders: 2.5, 2.7 and 3.2. I do recall installing 3.2, but I'm pretty sure I uninstalled it. Under each of the three folders is Module. Looking at the contents shows only default (name) REG_SZ (type) for each. Nothing else. OK,in scrolling around I see another Python folder and PythonCore under it, and subfolders 2.7 and 3.2. Under 2.7 are the subfolders Help, InstallPath, Modules, PythonPath. For 3.2, just an empty Modules. All of these are under SOFTWARE. The first set of three is under WOW6432Node, which is under SOFTWARE. Interesting, but it doesn't reveal much to me. For more fun, I searched for idle. It's buried under Interface, and the entry is REG_SZ with value idlesettings. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] A few Python Mysteries [Reset]
More. I did some Googling on IDLE not appearing. My case appears not to be unique. One site offered this as a solution in 2.6, C:\Python27python.exe \Lib\idlelib\idle.py. It issued a complaint that no such file or directory exists. It however does. A place to go that may clear this up might be http://bugs.python.org/. I found the suggestion above there. There are other comments about this issue there, but I haven't sorted through all of them. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] A few Python Mysteries [Reset]
On 22/12/11 16:37, Wayne Watson wrote: C:\Python27python.exe \Lib\idlelib\idle.py. It issued a complaint that no such file or directory exists. It however does. It almost certainly doesn't. The \ in front of Lib says look in the root directory of the C drive. You probably need: C:\Python27 python.exe Lib\idlelib\idle.py. HTH -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] A few Python Mysteries [Reset]
Ah, yes.Thanks. That is, I think, was the what I copied from some web page. OK, I just tried it, and got several messages. C:\Python27python.exe Lib\idlelib\idle.py Traceback (most recent call last): File Lib\idlelib\idle.py, line 11, in module idlelib.PyShell.main() File C:\Python27\Lib\idlelib\PyShell.py, line 1403, in main shell = flist.open_shell() File C:\Python27\Lib\idlelib\PyShell.py, line 279, in open_shell self.pyshell = PyShell(self) File C:\Python27\Lib\idlelib\PyShell.py, line 832, in __init__ OutputWindow.__init__(self, flist, None, None) File C:\Python27\Lib\idlelib\OutputWindow.py, line 16, in __init__ EditorWindow.__init__(self, *args) File C:\Python27\Lib\idlelib\EditorWindow.py, line 273, in __init__ self.update_recent_files_list() File C:\Python27\Lib\idlelib\EditorWindow.py, line 799, in update_recent_files_list rf_file = open(self.recent_files_path, 'w') IOError: [Errno 13] Permission denied: 'C:\\Users\\Wayne\\.idlerc\\recent-files.lst' - Maybe as I pointed out a few msgs ago here the permissions shown on Properties looked a bit odd. On 12/22/2011 9:58 AM, Alan Gauld wrote: On 22/12/11 16:37, Wayne Watson wrote: C:\Python27python.exe \Lib\idlelib\idle.py. It issued a complaint that no such file or directory exists. It however does. It almost certainly doesn't. The \ in front of Lib says look in the root directory of the C drive. You probably need: C:\Python27 python.exe Lib\idlelib\idle.py. HTH -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet CE 1955 October 20 07:53:32.6 UT -- The Date The mystery unfolds. Web Page:www.speckledwithstars.net/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] A few Python Mysteries [Reset]
On 22/12/11 19:08, Wayne Watson wrote: IOError: [Errno 13] Permission denied: 'C:\\Users\\Wayne\\.idlerc\\recent-files.lst' - Maybe as I pointed out a few msgs ago here the permissions shown on Properties looked a bit odd. But the problem here is with .idlerc in your home directory. Can you find that file and ensure that read/write permissions are set? It may be a hidden file so you might have to tweak the View settings. .idelrc is presumably where Idle stores your local config settings. Although I confess I never noticed it when I used Windows. But then I probably never had a need to notice it! -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] A few Python Mysteries [Reset]
Hi, I found it, but not in a place I would expect. It's under my username, Wayne. It is a folder and has three files: breakpoints.lst recent-files.lst ZZrecent-files.lst The last one has the odd ZZ, but is empty. breakpoints.lst is empty too. recent-files.lst contains about 21 files like: C:\Users\Wayne\Sandia_Meteors\Trajectory_Estimation\radiant.py C:\Users\Wayne\Sandia_Meteors\Trajectory_Estimation\cross_prod.py ZZ... is the most recent file, 7/18/2011. If I right-click .idlerc, I can see properties for SYSTEM, some very oddly named user, Wayne, Admin, and WMPNetwork. On 12/22/2011 2:34 PM, Alan Gauld wrote: On 22/12/11 19:08, Wayne Watson wrote: IOError: [Errno 13] Permission denied: 'C:\\Users\\Wayne\\.idlerc\\recent-files.lst' - Maybe as I pointed out a few msgs ago here the permissions shown on Properties looked a bit odd. But the problem here is with .idlerc in your home directory. Can you find that file and ensure that read/write permissions are set? It may be a hidden file so you might have to tweak the View settings. .idelrc is presumably where Idle stores your local config settings. Although I confess I never noticed it when I used Windows. But then I probably never had a need to notice it! -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet CE 1955 October 20 07:53:32.6 UT -- The Date The mystery unfolds. Web Page:www.speckledwithstars.net/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] A few Python Mysteries
Hi Wayne, On 21 December 2011 02:32, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: I changed Python25 to Python27, and rebooted. I got the same two dll msgs again. The PATH issue has nothing to do with your error messages. Python25.dll is normally installed in the C:\Windows\System32 folder, not C:\Python25, so whether or not c:\Python25 is in your PATH is irrelevant to whether it will be found (in C:\Windows\System32). The facts as far as I can tell are: a) Some application in your startup is trying to link to/load Python25.dll but failing as per the message you posted. b) You've uninstalled Python 2.5, so a) is not really surprising. c) The application (whatever it is) will *NOT* automatically start using the newer Python27.dll because you've installed Python 2.7. These are considered seperate/distinct versions of Python. Your options to get rid of the message is: a) Reinstall Python 2.5 b) Remove the application that depends on Python 2.5 (that is expecting it to be present.) To add: I'd be careful of 32 bit/64 bit issues -- If the application trying to run is in fact 32 bit then you should probably be installing the 32-bit version of Python, otherwise it probably still won't find Python25.dll. (32-bit applications won't be able to link to 64-bit dll's, and in any case on 64-bit versions of Windows things get a bit obscure -- C:\Windows\System32 actually contain 64-bit native dll's while 32-bit compatility dll's reside in c:\Windows\SysWOW64 but is presented as c:\Windows\System32 to 32-bit processes by the OS... ) If you don't know whether the application is 32-bit or 64-bit you'll just have to find out by trial and error. Install the one and if this doesn't resolve the problem then remove it again and install the other. Walter ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] A few Python Mysteries
Wayne Watson wrote: I changed Python25 to Python27, and rebooted. I got the same two dll msgs again. I suggest you find out what applications are trying to run using Python 2.5. This is a Windows problem -- you need to get the list of programs that run at start up and inspect them for something that uses Python. Since I don't use Windows, I can't be more specific. -- Steven ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] A few Python Mysteries
Python is long gone from my system. I only have Python 27. Somewhere a long the line, the uninstall of Python5 probably did not remove the Python5 from the PATH. I have no explanation as to why Python7 was not in the PATH. I have no idea why some remnant of why Python6 is hanging around. I uninstalled it long ago too. On 12/21/2011 2:43 AM, Steven D'Aprano wrote: Wayne Watson wrote: I changed Python25 to Python27, and rebooted. I got the same two dll msgs again. I suggest you find out what applications are trying to run using Python 2.5. This is a Windows problem -- you need to get the list of programs that run at start up and inspect them for something that uses Python. Since I don't use Windows, I can't be more specific. -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet CE 1955 October 20 07:53:32.6 UT -- The Date The mystery unfolds. Web Page:www.speckledwithstars.net/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] A few Python Mysteries
I think your missing the point. Ignore the fact that your PATH doesn't contain the correct paths to python. The problem is that on startup, a program (unknown) is looking for the dll file for python2.5 - it is looking for this in the system32 directory. To be rid of the startup errors, you need to replace the dll that was removed by the uninstallation of python2.5 - to do this, reinstall python2.5 Bodsda Sent from my BlackBerry® wireless device -Original Message- From: Wayne Watson sierra_mtnv...@sbcglobal.net Sender: tutor-bounces+bodsda=googlemail@python.org Date: Wed, 21 Dec 2011 07:15:31 To: Steven D'Apranost...@pearwood.info; tutor@python.orgtutor@python.org Subject: Re: [Tutor] A few Python Mysteries Python is long gone from my system. I only have Python 27. Somewhere a long the line, the uninstall of Python5 probably did not remove the Python5 from the PATH. I have no explanation as to why Python7 was not in the PATH. I have no idea why some remnant of why Python6 is hanging around. I uninstalled it long ago too. On 12/21/2011 2:43 AM, Steven D'Aprano wrote: Wayne Watson wrote: I changed Python25 to Python27, and rebooted. I got the same two dll msgs again. I suggest you find out what applications are trying to run using Python 2.5. This is a Windows problem -- you need to get the list of programs that run at start up and inspect them for something that uses Python. Since I don't use Windows, I can't be more specific. -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet CE 1955 October 20 07:53:32.6 UT -- The Date The mystery unfolds. Web Page:www.speckledwithstars.net/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] A few Python Mysteries
Hi Wayne, On 21 December 2011 15:15, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: Python is long gone from my system. I presume you mean Python **2.5** is long gone from your system (not Python in general), but in any case, this much has been well understood since several emails ago. I only have Python 27. OK, that's also been clear since several emails ago and is not an issue (except that I have the impression that's not working properly either?) Somewhere along the line, the uninstall of Python5 probably did not remove the Python5 from the PATH. I have no explanation as to why Python7 was not in the PATH. To clarify: Python on Windows does **not** put itself on the System PATH when installed. Consequently the reason Python 2.7 is not on the PATH is in fact because no-one put it there (yet), since as I say, Python itself would not have done it. This also explains why C:\Python25 was not removed from the PATH when you uninstalled Python 2.5 -- Since Python's installation never put it there, it obviously wasn't going to remove it when it was uninstalled. Instead, the implication is that something or somebody else put it there -- most likely the application that *did* put it there is the **same** application that is now complaining about the fact that it can't find the Python 2.5 DLL when you boot up... I have no idea why some remnant of why Python6 is hanging around. I uninstalled it long ago too. I presume by Python6 you mean Python 2.6. Why do you think a remnant of this is hanging around? Anyway, re the bootup messages, I've already suggested what your options are, but in short: a) Find and remove the application that's trying to use Python 2.5 b) Install Python 2.5 again, and hope that's enough to get the app that wants to use it running again. Re your other Python problems, I'd suggest doing the following: 1) Go into your Control Panel-Programs and Features, and remove all copies of Python (if any.) 2) Go into your C:\ Drive, and delete any existing Python folders that may still exist: C:\Python25 C:\Python26 C:\Python27 3) Redownload your Python installer (MSI file) of the version of your choice (2.7?) from the Python dowload site and re-install that with default options. 4) IDLE should then be present in your Start-All Programs menu under Python 2.7, and should be easily locatable also with the Start menu quick search feature. Note, at this point (after the initial installation), Python via the command prompt won't be runnable from anywhere, since C:\Python27 will not have been put on the system PATH yet. A previous post in this thread explains how to add it (and you should be familiar enough with the system PATH by now to do this yourself anyway ;) ) Please try these suggestions and post back with specificity if you have further problems. HTH, Walter ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] A few Python Mysteries
Howdy, On 12/21/2011 2:08 AM, Walter Prins wrote: Hi Wayne, On 21 December 2011 02:32, Wayne Watsonsierra_mtnv...@sbcglobal.net wrote: I changed Python25 to Python27, and rebooted. I got the same two dll msgs again. The PATH issue has nothing to do with your error messages. True, but it should have a lot to do with Python27. Some good news is that unlike previous attempts, I can actually see IDLE as a choice on a right-click of a py file. However, a spinner icon appears for about 5 seconds and then disappears. Python25.dll is normally installed in the C:\Windows\System32 folder, not C:\Python25, so whether or not c:\Python25 is in your PATH is irrelevant to whether it will be found (in C:\Windows\System32). I have no Python of any kind in System32. I uninstalled 25 months ago. As far as I can tell, there is not a scrap of it left. The facts as far as I can tell are: a) Some application in your startup is trying to link to/load Python25.dll but failing as per the message you posted. Hmm, I made have made a mistake about a 25 dll. When I rebooted last night, I though I recalled 26. I'll reboot again in awhile and verify that. Yikes! No need. It's 26dll. I wrote it down after my first boot. My second was last night. b) You've uninstalled Python 2.5, so a) is not really surprising. c) The application (whatever it is) will *NOT* automatically start using the newer Python27.dll because you've installed Python 2.7. These are considered seperate/distinct versions of Python. Your options to get rid of the message is: a) Reinstall Python 2.5 b) Remove the application that depends on Python 2.5 (that is expecting it to be present.) To add: I'd be careful of 32 bit/64 bit issues -- If the application trying to run is in fact 32 bit then you should probably be installing the 32-bit version of Python, otherwise it probably still won't find Python25.dll. Forgetting about 25 (32-bit), per above, I installed a 64-bit version of 2.7.2. python-2.7.2.adm64.msi. (32-bit applications won't be able to link to 64-bit dll's, and in any case on 64-bit versions of Windows things get a bit obscure -- C:\Windows\System32 actually contain 64-bit native dll's while 32-bit compatility dll's reside in c:\Windows\SysWOW64 but is presented as c:\Windows\System32 to 32-bit processes by the OS... ) If you don't know whether the application is 32-bit or 64-bit you'll just have to find out by trial and error. Install the one and if this doesn't resolve the problem then remove it again and install the other. Walter ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet CE 1955 October 20 07:53:32.6 UT -- The Date The mystery unfolds. Web Page:www.speckledwithstars.net/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] A few Python Mysteries
On 12/21/2011 9:57 AM, bod...@googlemail.com wrote: I think your missing the point. Ignore the fact that your PATH doesn't contain the correct paths to python. As I just wrote to Prins. I think I made a copy error on the dll. I'm looking at the sheet I wrote the msg on and it shows 26.dll There is no 2.5 on my system. I removed it months ago. True about the PATH, but having Python25 in it was wrong. It's now 27. Why 25 got put in there I do not know. The problem is that on startup, a program (unknown) is looking for the dll file for python2.5 - it is looking for this in the system32 directory. To be rid of the startup errors, you need to replace the dll that was removed by the uninstallation of python2.5 - to do this, reinstall python2.5 See my post to Prins above. Bodsda Sent from my BlackBerry® wireless device -Original Message- From: Wayne Watsonsierra_mtnv...@sbcglobal.net Sender: tutor-bounces+bodsda=googlemail@python.org Date: Wed, 21 Dec 2011 07:15:31 To: Steven D'Apranost...@pearwood.info; tutor@python.orgtutor@python.org Subject: Re: [Tutor] A few Python Mysteries Python is long gone from my system. I only have Python 27. Somewhere a long the line, the uninstall of Python5 probably did not remove the Python5 from the PATH. I have no explanation as to why Python7 was not in the PATH. I have no idea why some remnant of why Python6 is hanging around. I uninstalled it long ago too. On 12/21/2011 2:43 AM, Steven D'Aprano wrote: Wayne Watson wrote: I changed Python25 to Python27, and rebooted. I got the same two dll msgs again. I suggest you find out what applications are trying to run using Python 2.5. This is a Windows problem -- you need to get the list of programs that run at start up and inspect them for something that uses Python. Since I don't use Windows, I can't be more specific. -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet CE 1955 October 20 07:53:32.6 UT -- The Date The mystery unfolds. Web Page:www.speckledwithstars.net/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] A few Python Mysteries
Hi, On 12/21/2011 10:18 AM, Walter Prins wrote: Hi Wayne, On 21 December 2011 15:15, Wayne Watsonsierra_mtnv...@sbcglobal.net wrote: Python is long gone from my system. I presume you mean Python **2.5** is long gone from your system (not Python in general), but in any case, this much has been well understood since several emails ago. All but 2.7.2. I only have Python 27. OK, that's also been clear since several emails ago and is not an issue (except that I have the impression that's not working properly either?) Somewhere along the line, the uninstall of Python5 probably did not remove the Python5 from the PATH. I have no explanation as to why Python7 was not in the PATH. To clarify: Python on Windows does **not** put itself on the System PATH when installed. Consequently the reason Python 2.7 is not on the PATH is in fact because no-one put it there (yet), since as I say, So, PythonNN, where NN is the version, should never appear in PATH? Python itself would not have done it. This also explains why C:\Python25 was not removed from the PATH when you uninstalled Python 2.5 -- Since Python's installation never put it there, it obviously wasn't going to remove it when it was uninstalled. Instead, the implication is that something or somebody else put it there -- most It's conceivable when I raised some of the questions a month of so ago, someone suggested putting PythonNN on the path. I recall the PATH idea surfaced back then. likely the application that *did* put it there is the **same** application that is now complaining about the fact that it can't find the Python 2.5 DLL when you boot up... See my mis-copy 26.dll in my other post to you. I have no idea why some remnant of why Python6 is hanging around. I uninstalled it long ago too. I presume by Python6 you mean Python 2.6. Why do you think a remnant of this is hanging around? True. 2.6, and not 6. See previous comments about 26.dll. I think I'm going to pass on the 2.5 comments below in light of the 26.dll typo. Anyway, re the bootup messages, I've already suggested what your options are, but in short: a) Find and remove the application that's trying to use Python 2.5 b) Install Python 2.5 again, and hope that's enough to get the app that wants to use it running again. Re your other Python problems, I'd suggest doing the following: 1) Go into your Control Panel-Programs and Features, and remove all copies of Python (if any.) I'm leaving 2.7.2 there for now. 2) Go into your C:\ Drive, and delete any existing Python folders that may still exist: C:\Python25 C:\Python26 C:\Python25 and 26 are long gone. I'm holding onto 27. 3) Redownload your Python installer (MSI file) of the version of your choice (2.7?) from the Python dowload site and re-install that with default options. Let's hold off on this in light of the 26.dll discover. It may have some bearing on the current state of 27. 4) IDLE should then be present in your Start-All Programs menu under Python 2.7, and should be easily locatable also with the Start menu quick search feature. IDLE shows as normal when I right-click on py files. It just doesn't bring up IDLE. Note, at this point (after the initial installation), Python via the command prompt won't be runnable from anywhere, since C:\Python27 will not have been put on the system PATH yet. A previous post in this thread explains how to add it (and you should be familiar enough with the system PATH by now to do this yourself anyway ;) ) When the PythonNN point I made is answered, then I address the PATH again. Please try these suggestions and post back with specificity if you have further problems. HTH, Walter ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet CE 1955 October 20 07:53:32.6 UT -- The Date The mystery unfolds. Web Page:www.speckledwithstars.net/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] A few Python Mysteries
On 21/12/11 19:56, Wayne Watson wrote: To clarify: Python on Windows does **not** put itself on the System PATH when installed. So, PythonNN, where NN is the version, should never appear in PATH? Not from a standard Python installation. But other programs whjich use Pythonn may install a version and modify the PATH for you, or you may, for your own benefit, add it manually. I always add a new Python version to my PATH as a matter of course. It's conceivable when I raised some of the questions a month of so ago, someone suggested putting PythonNN on the path. Very possible indeed. likely the application that *did* put it there is the **same** application that is now complaining about the fact that it can't find the Python 2.5 DLL when you boot up... See my mis-copy 26.dll in my other post to you. OK, But the principle remains. If you have an app in your startup sequence that expects to find Python it will complain. You can check your startup sequence using a Microsoft tool. MSCONFIG or somesuch. Google Windows startup tool or similar... You can disable individual programs and restart to find out what is causing it. I have no idea why some remnant of why Python6 is hanging around. I uninstalled it long ago too. The problem is that it is not hanging around and some app expects it to be there. The error message is about a missing file... One thing that may be significant... Are you installing your Windows Python versions from python.org or from ActiveState? They are very similar but not identical. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] A few Python Mysteries
On 12/21/2011 07:10 PM, Alan Gauld wrote: SNIP One thing that may be significant... Are you installing your Windows Python versions from python.org or from ActiveState? They are very similar but not identical. And one difference is that ActiveState sets up both the PATH and the registry to make it easy to doubleclick on either python itself or on a script, when viewed in Explorer or equivalent. -- DaveA ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] A few Python Mysteries [Reset]
If you read on past a few paragraphs, there is some reason for hope that 2.7.2 is close to running. But first, the dll story. As it turns out in the other part of this thread, the Python25.dll was a typo on my part. It's really Python26.dll. Upon re-booting to make sure of that I read the message fully, and discovered that it read: C:\Program Files9x86)\Uniblue\DriverScanner\Python26.dll not installed. What is Uniblue you ask? I installed a new version of the video program Winamp back in early Nov, and it had some selections. One of which was to include Uniblue Driver Checker. I thought I'd give it a try. After the install completed, I thought I'd give it a try. It goes through all your drivers to find which ones are out of date. Surprise. You can buy the latest ones through them. I uninstalled Uniblue, but as it turns out, it was an incomplete uninstall. I just spent the last 30-45 minutes trying to get it uninstalled. Finally, I sent an e-mail on how to do it. I have no idea how it got entangled with Python 2.6. So for the time being it's out of the picture. As a question asked by others, is Python27 under ...\System32. It is under C:\Python27. Further, it is the 64-bit version associated with Python. In reading some of the other posts, I was unsure of whether Python27 is put on the PATH or not by the install. The question remains unanswered. I just left it there, as I re-installed 2.7.2 minutes ago. Here's where matters stand. The fact that when I right click on a py file, it begins with Open and then Edit with IDLE is very encouraging. The downside is that IDLE does not come up. However, the Start menu's Python27 entry shows Edit with IDLE, Manuals, ..., and Python Console. The console works. The fact that IDLE actually appears in both places is again encouraging. Under ...\Python27\Lib\idlelib, I can find idle.py, idle.pyw and IdleHistory.py. Clicking on idle.pyw does nothing. A few months ago when I broached this install and IDLE problem, someone mentioned idle.bat. It is in the same idlelib. Is there something that needs to be done here, to get IDLE active? Is this where having Python27 in the path causes a problem with IDLE? -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet CE 1955 October 20 07:53:32.6 UT -- The Date The mystery unfolds. Web Page:www.speckledwithstars.net/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] A few Python Mysteries [Reset]
Hi Wayne, On 22 December 2011 03:21, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: I uninstalled Uniblue, but as it turns out, it was an incomplete uninstall. I just spent the last 30-45 minutes trying to get it uninstalled. Finally, I sent an e-mail on how to do it. I have no idea how it got entangled with Python 2.6. So for the time being it's out of the picture. Well, presumably it uses/depends on Python 2.6... As a question asked by others, is Python27 under ...\System32. It is under C:\Python27. Further, it is the 64-bit version associated with Python. I didn't ask. I stated, and to clarify: When you install the standard distribution of Python, the majority of the files get put under C:\PythonNN (unless otherwise specified by the user). However, the Python engine in the form of a DLL is *also* put under the System32 directory. In reading some of the other posts, I was unsure of whether Python27 is put on the PATH or not by the install. The question remains unanswered. I just left it there, as I re-installed 2.7.2 minutes ago. Here's where matters stand. I've already answered this also, with an unambigious exception to my answer pointed out by another poster, which is that it depends on whether you installed the standard Python distribution or whether you installed the ActiveState Python distribution. So, did you install the standard Python distribution or did you install the ActiveState version of Python? The answer to this question will determine whether the PATH will have been affected by the Python installation. Even so, it's an irrelevance w.r.t. your IDLE problems... The fact that when I right click on a py file, it begins with Open and then Edit with IDLE is very encouraging. Having this entry in your context menu simply means certain entries are in your system's registery but says very little else about whether it will work or not. The downside is that IDLE does not come up. Which suggests that the associations/registry entries are in fact broken, perhaps because they're pointing to a non-existent installation of Python... However, the Start menu's Python27 entry shows Edit with IDLE, Manuals, ..., and Python Console. The console works. The fact that IDLE actually appears in both places is again encouraging. Does IDLE start from the Start menu when you click it? Under ...\Python27\Lib\idlelib, I can find idle.py, idle.pyw and IdleHistory.py. Clicking on idle.pyw does nothing. Does double clicking idle.pyw do anything? Normally double clicking idle.pyw will start IDLE. Does double clicking idle.bat do anything? Normally clicking idle.bat will also start IDLE. If you open a command prompt and then enter cd \Python27\Lib\idlelib idle.bat Does it output any error messages? If so, what? A few months ago when I broached this install and IDLE problem, someone mentioned idle.bat. It is in the same idlelib. Is there something that needs to be done here, to get IDLE active? Is this where having Python27 in the path causes a problem with IDLE? Whether or not you have C:\Python27 in the PATH is irrelevant to whether IDLE will run. In any case, I'd still suggest reinstalling Python 2.7 -- you seem to be having file association/registry issues and who knows what else, these things will not resolve themselves by fiddling around with the PATH issue, which is in any case a red herring, an irrelevance w.r.t. your IDLE issues. Walter ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] A few Python Mysteries
I changed Python25 to Python27, and rebooted. I got the same two dll msgs again. On 12/19/2011 7:33 PM, Wayne Watson wrote: It became apparent during the other part of this thread that I had not uninstalled Python 2.7, as I thought I had. As pointed out in the PATH discussion (James R.), the last item in the system variable PATH was Python25. I would think then changing it to Python27 might Python rolling again. -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet CE 1955 October 20 07:53:32.6 UT -- The Date The mystery unfolds. Web Page:www.speckledwithstars.net/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] A few Python Mysteries
On Tue, Dec 20, 2011 at 9:32 PM, Wayne Watson sierra_mtnv...@sbcglobal.netwrote: I changed Python25 to Python27, and rebooted. I got the same two dll msgs again. On 12/19/2011 7:33 PM, Wayne Watson wrote: It became apparent during the other part of this thread that I had not uninstalled Python 2.7, as I thought I had. As pointed out in the PATH discussion (James R.), the last item in the system variable PATH was Python25. I would think then changing it to Python27 might Python rolling again. -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet CE 1955 October 20 07:53:32.6 UT -- The Date The mystery unfolds. Web Page:www.speckledwithstars.**net/http://www.speckledwithstars.net/ __**_ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/**mailman/listinfo/tutorhttp://mail.python.org/mailman/listinfo/tutor Did you also verify that Python is installed at C:\Python27 and not some other place? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] A few Python Mysteries
On Mon, Dec 19, 2011 at 11:35 AM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: Win 7, 64-bit I had Py 2.5 installed on my PC earlier this year, and it began failing around June. I finally uninstalled it, and tried 2.6. Still had problems that centered around getting to IDLE. Uninstalled 2.6, and went to 2.7. Same problem. I completely uninstalled 2.7. I do have several folders of py programs. No Python. After that episode, I began to notice the following messages when I signed on to my PC after a boot. I do not bring my PC down very often. Specified module could not be found: Loadlib python.dll failed, and another of the same for Python25.dll failed (maybe not found). I did a search for both, but neither were found. I ignored this inconvenience for a few weeks, and had developed a need to copy a particular python program on Win 7 to another computer. Call it abc.py. I copied it to a thumb drive, and plugged the drive into the other PC, which has Python on it. abc.py was missing from the drive. I tried this about three times, and even went to yet another PC. No abc.py. Finally, I pulled xyz.py from an XP PC on to the drive. When I put it on yet another PC, xyz.py was there, and I copied it on to the PC. Very strange. Note again, I did not have Python installed on the Win 7 PC. I have no idea if any of this is relevant to the attempt to install Py on my Win 7 PC, but it and the sign-on msgs may indicate something is twisted in the registry. Comments? It would be nice to get rid of the two msgs upon sign-on. -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet CE 1955 October 20 07:53:32.6 UT -- The Date The mystery unfolds. Web Page:www.speckledwithstars.**net/http://www.speckledwithstars.net/ __**_ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/**mailman/listinfo/tutorhttp://mail.python.org/mailman/listinfo/tutor Did you change the PATH to the right directory? It may still be pointing to the old directory, or you may have never set it to begin with. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] A few Python Mysteries
On 12/19/2011 8:50 AM, James Reynolds wrote: On Mon, Dec 19, 2011 at 11:35 AM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: Win 7, 64-bit I had Py 2.5 installed on my PC earlier this year, and it began failing around June. I finally ... CE 1955 October 20 07:53:32.6 UT -- "The Date" The mystery unfolds. Web Page:www.speckledwithstars.net/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor Did you change the PATH to the right directory? It may still be pointing to the old directory, or you may have never set it to begin with. Someone suggested this several months when I was having an install problem. === That being said, it sounds an awful lot like the python.exe isn't in your path. To get it there you can open windows explorer (WIN+E) right click on computer properties then click advanced system settings. In the window that pops up, click the "environment variables" button. In the "system variables" portion, find the path variable and click the "Edit..." button. Assuming that your new installation was placed in C:\Python25\ you will want to add ";C:\Python25\" (the semicolon is important!) to the end of your path. === Is that what you are suggesting? I brought up WE and clicked on properties, and got a six tab dialog. Pushed Advanced. Tabs are: Sharing, Security, Prev versions, general, tools, h/w, quota. I don't see anything about about a PATH, sys or env vars. -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39 15' 7" N, 121 2' 32" W, 2700 feet CE 1955 October 20 07:53:32.6 UT -- "The Date" The mystery unfolds. Web Page: www.speckledwithstars.net/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] A few Python Mysteries
On Mon, Dec 19, 2011 at 2:21 PM, Wayne Watson sierra_mtnv...@sbcglobal.netwrote: On 12/19/2011 8:50 AM, James Reynolds wrote: On Mon, Dec 19, 2011 at 11:35 AM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: Win 7, 64-bit I had Py 2.5 installed on my PC earlier this year, and it began failing around June. I finally ... CE 1955 October 20 07:53:32.6 UT -- The Date The mystery unfolds. Web Page:www.speckledwithstars.net/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor Did you change the PATH to the right directory? It may still be pointing to the old directory, or you may have never set it to begin with. Someone suggested this several months when I was having an install problem. === That being said, it sounds an awful lot like the python.exe isn't in your path. To get it there you can open windows explorer (WIN+E) right click on computer properties then click advanced system settings. In the window that pops up, click the environment variables button. In the system variables portion, find the path variable and click the Edit... button. Assuming that your new installation was placed in C:\Python25\ you will want to add ;C:\Python25\ (the semicolon is important!) to the end of your path. === Is that what you are suggesting? I brought up WE and clicked on properties, and got a six tab dialog. Pushed Advanced. Tabs are: Sharing, Security, Prev versions, general, tools, h/w, quota. I don't see anything about about a PATH, sys or env vars. -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet CE 1955 October 20 07:53:32.6 UT -- The Date The mystery unfolds. Web Page: www.speckledwithstars.net/ In windows 7, 1. Go to start 2. Right click on Computer 3. Select Properties. This will bring up the System menu. 4. Select Advanced system Settings on the left hand side. 5. In this new window, select Environment variables... at the bottom 6. In the bottom window area, scroll down until you find PATH 7. Select Edit (do NOT delete anything contained in this or will screw some stuff up) 8. scroll to the very end and put a ; as a deliminator if there isn't one on the end already. Then put the direct path to you Python install you care about. (it should be something like this:(;C:\Python27) - this is mine in fact. 9. Hit OK. Then accept your way out. You will have to reboot. 10. To test, open a cmd prompt and and type simply python. if you get Python 2.7.2 (some more stuff) then python is now on your path. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] A few Python Mysteries
James wrote: In windows 7, 1. Go to start 2. Right click on Computer 3. Select Properties. This will bring up the System menu. 4. Select Advanced system Settings on the left hand side. 5. In this new window, select Environment variables... at the bottom 6. In the bottom window area, scroll down until you find PATH 7. Select Edit (do NOT delete anything contained in this or will screw some stuff up) 8. scroll to the very end and put a ; as a deliminator if there isn't one on the end already. Then put the direct path to you Python install you care about. (it should be something like this:(;C:\Python27) - this is mine in fact. 9. Hit OK. Then accept your way out. You will have to reboot. 10. To test, open a cmd prompt and and type simply python. if you get Python 2.7.2 (some more stuff) then python is now on your path. = Modify User Variables and not System variables. You will need to restart any open command prompt but not the full machine. PATH=%PATH%;c:\python27 That should pick up the system variables and then append python's location to it. http://geekswithblogs.net/renso/archive/2009/10/21/how-to-set-the-windows-path-in-windows-7.aspx If that does not work; then feel free to follow James's advice and then restart. Ramit Ramit Prasad | JPMorgan Chase Investment Bank | Currencies Technology 712 Main Street | Houston, TX 77002 work phone: 713 - 216 - 5423 -- This email is confidential and subject to important disclaimers and conditions including on offers for the purchase or sale of securities, accuracy and completeness of information, viruses, confidentiality, legal privilege, and legal entity disclaimers, available at http://www.jpmorgan.com/pages/disclosures/email. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] A few Python Mysteries
Wayne Watson wrote: Win 7, 64-bit I had Py 2.5 installed on my PC earlier this year, and it began failing around June. I finally uninstalled it, and tried 2.6. Still had problems that centered around getting to IDLE. Uninstalled 2.6, and went to 2.7. Same problem. I completely uninstalled 2.7. I do have several folders of py programs. No Python. Programs should not just begin failing unless somebody (you?) or something (a virus, another program?) mess with them. Especially not something as simple and stable as Python. Who installed Python 2.5 in the first place? If it was provided with your computer, then it was provided for a reason. Python is not a standard part Windows, but a number of PC manufacturers provide Python 2.5 to run their tools, and by removing it, you have broken whatever it is that the manufacturer tools are supposed to be doing. Installing Python 2.6 or 2.7 will probably not work as a replacement. If you installed Python 2.5 yourself, then it doesn't matter. However, my guess is that Python 2.5 was installed by the manufacturer, and my evidence for this is the error messages that you now see at boot up: After that episode, I began to notice the following messages when I signed on to my PC after a boot. I do not bring my PC down very often. Specified module could not be found: Loadlib python.dll failed, and another of the same for Python25.dll failed (maybe not found). I did a search for both, but neither were found. Of course they're not found. You uninstalled them. My first advice: re-install Python 2.5. If you have a recovery disk supplied by the manufacturer, try using that. Make sure you install a 64-bit version of Python, not 32-bit. Then do the same with Python 2.7. Make sure it is the 64-bit version. Then check that you still have BOTH Python 2.5 and 2.7 installed: look in the start menu, and you should see two entries for Python. I ignored this inconvenience for a few weeks, and had developed a need to copy a particular python program on Win 7 to another computer. Call it abc.py. I copied it to a thumb drive, and plugged the drive into the other PC, which has Python on it. abc.py was missing from the drive. I tried this about three times, and even went to yet another PC. No abc.py. This has *nothing* to do with Python. To Windows, abc.py is just another file, like abc.txt or abc.jpg or abc.doc. If copying files to a thumb drive is failing (other than by human error, or faulty thumb drive), then you have deeper problems with your Windows installation than just missing Python. But I suspect either human error or a faulty thumb drive. Since I don't use Windows 7, and did not see how you tried to copy the file to the thumb drive, I can't be sure, but if something as fundamental as copying files was failing, then I would expect your Windows machine to be crashing constantly. So more likely the thumb drive is failing, or human error. Can you copy *other* files from the Windows 7 machine onto the thumb drive, and then from there to the second computer? -- Steven ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] A few Python Mysteries
1. Go to start 2. Right click on Computer 3. Select Properties. This will bring up the System menu. 4. Select Advanced system Settings on the left hand side. 5. In this new window, select Environment variables... at the bottom 6. In the bottom window area, scroll down until you find PATH 7. Select Edit (do NOT delete anything contained in this or will screw some stuff up) 8. scroll to the very end and put a ; as a deliminator if there isn't one on the end already. Then put the direct path to you Python install you care about. (it should be something like this:(;C:\Python27) I see at the end: Program Files\jEdit;C:\Python25\ There is no Python on my PC. Python 2.5 is what I started with, so I guess I should make this: Program Files\jEdit - this is mine in fact. 9. Hit OK. Then accept your way out. You will have to reboot. 10. To test, open a cmd prompt and and type simply python. if you get Python 2.7.2 (some more stuff) then python is now on your path. -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet CE 1955 October 20 07:53:32.6 UT -- The Date The mystery unfolds. Web Page:www.speckledwithstars.net/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] A few Python Mysteries
On 12/19/2011 3:19 PM, Steven D'Aprano wrote: Wayne Watson wrote: Win 7, 64-bit I had Py 2.5 installed on my PC earlier this year, and it began failing around June. I finally uninstalled it, and tried 2.6. Still had problems that centered around getting to IDLE. Uninstalled 2.6, and went to 2.7. Same problem. I completely uninstalled 2.7. I do have several folders of py programs. No Python. Programs should not just begin failing unless somebody (you?) or something (a virus, another program?) mess with them. Especially not something as simple and stable as Python. Who installed Python 2.5 in the first place? If it was provided with your computer, then it was I did. It worked for months. provided for a reason. Python is not a standard part Windows, but a number of PC manufacturers provide Python 2.5 to run their tools, and by removing it, you have broken whatever it is that the manufacturer tools are supposed to be doing. Installing Python 2.6 or 2.7 will probably not work as a replacement. If you installed Python 2.5 yourself, then it doesn't matter. However, my guess is that Python 2.5 was installed by the manufacturer, and my evidence for this is the error messages that you now see at boot up: After that episode, I began to notice the following messages when I signed on to my PC after a boot. I do not bring my PC down very often. Specified module could not be found: Loadlib python.dll failed, and another of the same for Python25.dll failed (maybe not found). I did a search for both, but neither were found. Of course they're not found. You uninstalled them. I would expect so, but why did it complain specifically about them and not others? See PATH comment below. My first advice: re-install Python 2.5. If you have a recovery disk supplied by the manufacturer, try using that. Make sure you install a 64-bit version of Python, not 32-bit. I really no longer have a need for 2.5, so I thought I might as well go for something newer, which is basically what I'm doing, since 2.5 wasn't working. Then do the same with Python 2.7. Make sure it is the 64-bit version. Then check that you still have BOTH Python 2.5 and 2.7 installed: look in the start menu, and you should see two entries for Python. Whoops. Python 2.7.2 is on the menu and was installed 12/18. I thought I uninstalled it last night. It is the 64-bit version. It's beginning to look like the PATH is the problem, since I found Python25 at the end of the PATH variable, as noted to James above. I ignored this inconvenience for a few weeks, and had developed a need to copy a particular python program on Win 7 to another computer. Call it abc.py. I copied it to a thumb drive, and plugged the drive into the other PC, which has Python on it. abc.py was missing from the drive. I tried this about three times, and even went to yet another PC. No abc.py. This has *nothing* to do with Python. To Windows, abc.py is just another file, like abc.txt or abc.jpg or abc.doc. If copying files to a thumb drive is failing (other than by human error, or faulty thumb drive), then you have deeper problems with your Windows installation than just missing Python. But I suspect either human error or a faulty thumb drive. Since I don't use Windows 7, and did not see how you tried to copy the file to the thumb drive, I can't be sure, but if something as fundamental as copying files was failing, then I would expect your Windows machine to be crashing constantly. So more likely the thumb drive is failing, or human error. Can you copy *other* files from the Windows 7 machine onto the thumb drive, and then from there to the second computer? No problem at all copying any other files to the thumb drive. After I get out of this quandary with PATH, and get 2.7.2 working, I'll try to recreate the problem. -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet CE 1955 October 20 07:53:32.6 UT -- The Date The mystery unfolds. Web Page:www.speckledwithstars.net/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] A few Python Mysteries
The PATH variable for me (user) has c:\Users\Wayne\g95\bin On 12/19/2011 12:25 PM, Prasad, Ramit wrote: James wrote: In windows 7, 1. Go to start 2. Right click on Computer 3. Select Properties. This will bring up the System menu. 4. Select Advanced system Settings on the left hand side. 5. In this new window, select Environment variables... at the bottom 6. In the bottom window area, scroll down until you find PATH 7. Select Edit (do NOT delete anything contained in this or will screw some stuff up) 8. scroll to the very end and put a ; as a deliminator if there isn't one on the end already. Then put the direct path to you Python install you care about. (it should be something like this:(;C:\Python27) - this is mine in fact. 9. Hit OK. Then accept your way out. You will have to reboot. 10. To test, open a cmd prompt and and type simply python. if you get Python 2.7.2 (some more stuff) then python is now on your path. = Modify User Variables and not System variables. You will need to restart any open command prompt but not the full machine. PATH=%PATH%;c:\python27 That should pick up the system variables and then append python's location to it. http://geekswithblogs.net/renso/archive/2009/10/21/how-to-set-the-windows-path-in-windows-7.aspx If that does not work; then feel free to follow James's advice and then restart. Ramit Ramit Prasad | JPMorgan Chase Investment Bank | Currencies Technology 712 Main Street | Houston, TX 77002 work phone: 713 - 216 - 5423 -- This email is confidential and subject to important disclaimers and conditions including on offers for the purchase or sale of securities, accuracy and completeness of information, viruses, confidentiality, legal privilege, and legal entity disclaimers, available at http://www.jpmorgan.com/pages/disclosures/email. -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet CE 1955 October 20 07:53:32.6 UT -- The Date The mystery unfolds. Web Page:www.speckledwithstars.net/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] A few Python Mysteries
On 12/19/2011 08:47 PM, Wayne Watson wrote: The PATH variable for me (user) has c:\Users\Wayne\g95\bin By top-posting, you've ruined the whole continuity of what you quoted. Anyway, with a PATH like that, you won't be able to type Python at a command prompt. It works much better if it's on the path. -- DaveA ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] A few Python Mysteries
It became apparent during the other part of this thread that I had not uninstalled Python 2.7, as I thought I had. As pointed out in the PATH discussion (James R.), the last item in the system variable PATH was Python25. I would think then changing it to Python27 might Python rolling again. -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet CE 1955 October 20 07:53:32.6 UT -- The Date The mystery unfolds. Web Page:www.speckledwithstars.net/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor