This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: IDLE won't start import os error
Type: Stage:
Components: Extension Modules Versions: Python 2.6
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: jmorg, loewis
Priority: normal Keywords:

Created on 2010-05-15 06:02 by jmorg, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (5)
msg105792 - (view) Author: James Morgan (jmorg) Date: 2010-05-15 06:02

For some reason I have recently lost the ability to open IDLE for python 2.6.2.

I was able to open it for 2.5 without issue. I reinstalled 2.6.2 several times, removed 2.5, tried 2.6.5 instead, still cannot load IDLE. I can load the python command prompt however.

When attempting to run idle through cmd.exe I get an error in line 3 of

"import os
ImportError: No module named os"

Any help on this issue would be greatly appreciated.
msg105793 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2010-05-15 07:11
Why do you think this is a bug in Python? It rather sounds like you misconfigured your system somehow. Without access to the system, it is difficult to guess what the misconfiguration might be, though.
msg105795 - (view) Author: James Morgan (jmorg) Date: 2010-05-15 07:52
Thanks for the reply.

I have used idle before on this system without issue, and since 2.5 worked I figured there was some difference between 2.5 and 2.6 which was causing the issue.

I have found since that the issue is likely not with idle at all however, but rather with the modules... while the python command line works I am unable to use it to run one of my scripts. Attempting to run through cmd revealed that it was failing as it could not import shutil.

I am new to this help system so apologies if i have miscategorised this issue. Since it seems the nature of the problem is not what I initially thought I will move it to extension modules.

I have no idea if it is relevant, but I am running on XP pro SP3.

msg105798 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2010-05-15 10:33
> I am new to this help system

Please understand that this is not a help system at all.
Instead, it is a bug tracker: a way for people to contribute
to Python, by reporting bugs or contributing code. For help,
please contact one of the Python help forums, such as (aka news:comp.lang.python).
msg105802 - (view) Author: James Morgan (jmorg) Date: 2010-05-15 11:47
Sorry, I guess I misunderstood the function as I saw some issues which appeared similar in style to my own.

Never mind this then I will seek help elsewhere. Thankyou.
Date User Action Args
2022-04-11 14:57:01adminsetgithub: 52969
2010-05-15 11:48:09jmorgsetstatus: open -> closed
2010-05-15 11:47:49jmorgsetmessages: + msg105802
2010-05-15 10:33:47loewissetmessages: + msg105798
2010-05-15 07:52:24jmorgsetmessages: + msg105795
components: + Extension Modules, - IDLE
2010-05-15 07:11:57loewissetnosy: + loewis
messages: + msg105793
2010-05-15 06:02:44jmorgcreate