New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IDLE won't start in custom directory. #48131
Comments
Hello. I run Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) on Windows Vista "Traceback (most recent call last):
File "C:\Programmer\Python\lib\idlelib\idle.py", line 21, in <module>
idlelib.PyShell.main()
File "C:\Programmer\Python\lib\idlelib\PyShell.py", line 1390, in main
root= Tk(className="Idle")
File "C:\Programmer\Python\lib\idlelib\Tkinter.py", line 1636, in
__init__ self.tk = _tkinter.create(screenName, baseName, className,
interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: Can't find a usable init.tcl in the following
directories: {C:\Programmer\Python\tcl\tcl8.4}
{C:\Programmer\Python\tcl\tcl8.4} C:/Programmer/Python/tcl/tcl8.4
C:/Programmer/Python/lib/tcl8.4 C:/Programmer/Python/lib/tcl8.4
C:/lib/tcl8.4 C:/library C:/tcl8.4/library This probable means that Tcl wasn't installed properly." |
Do you have TCL_DIR or TK_DIR environment variables set? |
No, nothing. |
Hi. I have the same problem, but i'm running Pyhton 2.6.1. I'm using I installed Python to C:\Program Files\Python\2.6\ and when I try to run When I try to run it from the command line, the same error is displayed: "C:\Program Files\Python\2.6\Lib\idlelib>python idle.py
Traceback (most recent call last):
File "idle.py", line 21, in <module>
idlelib.PyShell.main()
File "C:\Programas\Python\2.6\lib\idlelib\PyShell.py", line 1386, in main
root = Tk(className="Idle")
File "C:\Programas\Python\2.6\lib\lib-tk\Tkinter.py", line 1643, in
__init__
self.tk = _tkinter.create(screenName, baseName, className,
interactive, want
objects, useTk, sync, use)
_tkinter.TclError: Can't find a usable init.tcl in the following
directories:
{C:\Programas\Python\2.6\tcl\tcl8.5}
C:/Programas/Python/2.6/lib/tcl8.5 C:/P
rogramas/Python/lib/tcl8.5 C:/Programas/lib/tcl8.5
C:/Programas/Python/library C
:/Programas/library C:/Programas/tcl8.5.2/library C:/tcl8.5.2/library This probably means that Tcl wasn't installed properly." |
zlm, did you chose to install Tcl/Tk when installing Python? |
Yes, I did. |
So do you have a file C:\Programas\Python\2.6\tcl\tcl8.5\init.tcl ? |
Yes, I have. Could this problem be related to paths with slashes and backslashes? In " {C:\Programas\Python\2.6\tcl\tcl8.5} |
Unlikely. The exact same package works on many other machines, so there Can you run the Sysinternals filemon to find out what files it is accessing? |
I don't think it's just his machine (and mine), but i don't think so. |
I tried Sysinternals ProcessMonitor (equivalent of filemon to Windows I also don't think this is a problem of my machine, because i'm not the |
I could not reproduce it that way. I just installed Python 2.6.1 into |
Okay, i'll try to find a key for Vista in all my drawers, and install a |
> "C:\Program Files\Python\2.6\Lib\idlelib>python idle.py
> Traceback (most recent call last):
> File "idle.py", line 21, in <module>
> idlelib.PyShell.main()
> File "C:\Programas\Python\2.6\lib\idlelib\PyShell.py", line 1386, Note the TWO different paths: C:\Program Files\Python\2.6\ and C: Do you have a PYTHONPATH environment variable? |
I don't think thats the solution. |
It could be a hint to the problem, though. Jacob: what language version is your Vista installation? Is Perhaps something doesn't work right with symbolic links on Vista. Can you two please install Python into a non-standard folder that |
Great idea :) |
"Programas" is the portuguese translation to "Program Files". I have just installed it to C:\Test\Python and IDLE is working! The problem should be related to the Vista symbolic links. |
Unfortunately, it isn't as simple as "install into a symbolic |
Maybe it's "install into a symbolic link pointing to a path with spaces |
I reinstalled Python to "C:\Program Files\Python\" (I wrote this path in Then, I unninstalled and installed again to "C:\Programas\Python". IDLE Jacob, can you try installing it to "C:\Program Files\Python" to sse if |
Installing to C:\Program Files\Python\ worked. |
With process monitor, I made partial progress (after installing |
Here is a patch that should fix the problem. It uses Vista's |
Fantastic. |
I got my problem fixed in 4 days! |
Committed as r68893, r68894, r68898, r68901. |
This patch had unintended consequences; see bpo-6906 |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: