rich_somerfield at tertio.com
Mon Feb 26 04:17:14 EST 2001
Sounds like u might have hit the nail on the head. I was having problems
recompiling Tkinter [path problem!!]:
bash-2.03# python setup.py install
Traceback (most recent call last):
File "setup.py", line 25, in ?
long_description = __doc__
File "/usr/bin/python-2.0/Lib/distutils/core.py", line 138, in setup
File "/usr/bin/python-2.0/Lib/distutils/dist.py", line 829, in
File "/usr/bin/python-2.0/Lib/distutils/dist.py", line 848, in run_command
File "/usr/bin/python-2.0/Lib/distutils/cmd.py", line 112, in
File "/usr/bin/python-2.0/Lib/distutils/command/install.py", line 255, in
(prefix, exec_prefix) = get_config_vars('prefix', 'exec_prefix')
File "/usr/bin/python-2.0/Lib/distutils/sysconfig.py", line 368, in
File "/usr/bin/python-2.0/Lib/distutils/sysconfig.py", line 280, in
raise DistutilsPlatformError, my_msg
distutils.errors.DistutilsPlatformError: invalid Python installation: unable
open /usr/local/lib/python2.0/config/Makefile (No such file or directory)
I dont suppose u know the correct command line arguments to build Tkinter?
I couldnt find any documentation with the tar that i downloaded and the help
from the setup.py that was included didnt really suggest the best / exact
My Python distro is in "/usr/bin/python-2.0", i cant find anything that
specifies where the Python install resides [ the problem with the above
command is that it is looking in /usr/local/lib/python2.0 !!!! - WRONG
If i do download a later version of Tk, do i need to recompile Python2.0 AND
Tkinter?? Or will Python pick up the libraries dynamically??
Dave LeBlanc <whisper at oz.net> wrote in message
news:976cgv$4ii$0 at 22.214.171.124...
> Oh, it's just a guess, but i'd say the version of tkinter you're
> trying to use is incompatible with the version of python you're trying
> to use.
> Possible causes:
> Python 2.0 is finding an older version of tkinter (perhaps
> associated with a Python 1.5.2 or 1.6.0 install?).
> You downloaded tkinter and python at different times.
> You recompiled Python but not tkinter.
> My suggestion would be to get a standard python 2.0 distro with
> tkinter included (does it actually come any other way?) and build and
> install the whole mass at once.
> BTW, Tcl 8.0.4 is _hopelessly_ out of date, having been superceded by
> Tcl 8.0.5 long ago (not to mention many further versions not used with
> the Python 1.5.2 version of tkinter). AFAIK from reading, tkinter for
> Python 2.0 now uses Tcl 8.3.2 which, as always, is available through
> www.scriptics.com at sourceforge.
> On Thu, 22 Feb 2001 15:00:52 -0000, "Rich Somerfield"
> <rich_somerfield at tertio.com> wrote:
> >I get the following exception when trying to load a jpeg image.
> >My system is Linux SuSE6.4 (however I have downloaded and recompiled
> >and PIL - the original versions had the same problem, i thought it would
> >away if i upgraded, it didnt.) Python 2.0 / Pil 1.1.1 / Tk 8.0.4
> >I have been using my code successfully using the py15 installation from
> >BTW, what is the problem with my Python interpreter?? The Warning msg
> >the API version.
> >rsomerfield at FullCycle:~/SGE/sge > python sge_2.0.1.py
> >WARNING: Python C API version mismatch for module _tkinter:
> > This Python has API version 1009, module _tkinter has version 1007.
> >WARNING: Python C API version mismatch for module _imaging:
> > This Python has API version 1009, module _imaging has version 1007.
> >Traceback (most recent call last):
> > File "sge_2.0.1.py", line 4585, in ?
> > sge = SimpleGameEngine()
> > File "sge_2.0.1.py", line 141, in __init__
> > exec("self.main_function()")
> > File "<string>", line 1, in ?
> > File "sge_2.0.1.py", line 123, in main_function
> > self.TG.produce_board_locations()
> > File "sge_2.0.1.py", line 1807, in produce_board_locations
> > self.vars.boardlocationimages[i] =
> > File "sge_2.0.1.py", line 1870, in process_individual_image
> > theimagetemp = ImageTk.PhotoImage(theimagetemp)
> > File "/usr/lib/python/site-packages/PIL/ImageTk.py", line 83, in
> > self.paste(image)
> > File "/usr/lib/python/site-packages/PIL/ImageTk.py", line 113, in paste
> > self.__photo.tk.call("PyImagingPhoto", self.__photo, block.id)
> >TclError: invalid command name "PyImagingPhoto"
> >rsomerfield at FullCycle:~/SGE/sge >
More information about the Python-list