[Tkinter-discuss] How to configure the non-default Python version to work with tk
noses at fatronik.com
Wed Feb 17 16:41:47 CET 2010
I have a very newby question.
I'm using a computer with Ubuntu Karmic Koala.
The Ubuntu has python 2.6 installed by default, and this default installation includes tkinter.
However, I'm using a platform (NuPIC) that needs Python 2.5. This I had to install manually in /usr/local.
Unfortunately, the manually installed version that I need doesn't seem to be able to find the tkinter libraries.
I have tried with "sudo apt-get install python2.5-tk" but it doesn't install it as it notices there is a newer version already.
The error message that I get is:
noses at PCF-191-0907l:~/NuPIC/current/share/projects/bitworm$ python DisplayReport.py
Traceback (most recent call last):
File "DisplayReport.py", line 18, in <module>
from pylab import *
File "/home/noses/NuPIC/current/lib/python2.5/site-packages/pylab.py", line 1, in <module>
from matplotlib.pylab import *
File "/home/noses/NuPIC/current/lib/python2.5/site-packages/matplotlib/pylab.py", line 253, in <module>
from matplotlib.pyplot import *
File "/home/noses/NuPIC/current/lib/python2.5/site-packages/matplotlib/pyplot.py", line 75, in <module>
new_figure_manager, draw_if_interactive, show = pylab_setup()
File "/home/noses/NuPIC/current/lib/python2.5/site-packages/matplotlib/backends/__init__.py", line 25, in pylab_setup
File "/home/noses/NuPIC/current/lib/python2.5/site-packages/matplotlib/backends/backend_tkagg.py", line 7, in <module>
import Tkinter as Tk, FileDialog
File "/usr/local/lib/python2.5/lib-tk/Tkinter.py", line 38, in <module>
import _tkinter # If this fails your Python may not be configured for Tk
ImportError: No module named _tkinter
Any help figuring this out is very much appreciated!!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tkinter-discuss