Issue 8555: tkinter doesn't see _tkinter (original) (raw)

Created on 2010-04-28 01:47 by py.user, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (10)
msg104397 - (view) Author: py.user (py.user) * Date: 2010-04-28 01:47
[guest@station ~]$ python3 Python 3.1.2 (r312:79147, Apr 28 2010, 11:57:19) [GCC 4.1.2 20070925 (Red Hat 4.1.2-33)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> 1+2 3 >>> import tkinter Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python3.1/tkinter/__init__.py", line 39, in import _tkinter # If this fails your Python may not be configured for Tk ImportError: No module named _tkinter >>>
msg104398 - (view) Author: Brian Curtin (brian.curtin) * (Python committer) Date: 2010-04-28 02:01
Did you compile Python yourself or did this come on your OS? The comment in the traceback pretty much says it all.
msg104401 - (view) Author: py.user (py.user) * Date: 2010-04-28 02:25
I have downloaded Python today (28 Apr) from the site I have a version under WinXP (it works fine), but I don't use WinXP When it told this about _tkinter, I even read the README file and compiled it with "make test", and there the same thing, it couldn't find _tkinter as for Python2.5 it's allright, but it has another Tkinter, so sources are not portable
msg104405 - (view) Author: py.user (py.user) * Date: 2010-04-28 03:47
tryed also: [root@station python3.1]# cp /usr/lib/python2.5/lib-dynload/_tkinter.so lib-dynload answer is: Traceback (most recent call last): File "/home/guest/tmp/code/c/eclipse/pytest/src/main.py", line 4, in import tkinter File "/usr/local/lib/python3.1/tkinter/__init__.py", line 39, in import _tkinter # If this fails your Python may not be configured for Tk ImportError: /usr/local/lib/python3.1/lib-dynload/_tkinter.so: undefined symbol: _Py_ZeroStruct
msg104409 - (view) Author: Senthil Kumaran (orsenthil) * (Python committer) Date: 2010-04-28 04:27
From your prompt, it seems you are on Unix based system. make would have informed you about _tkinter not built. If you are on ubuntu, do a sudo apt-get install tk-dev and install tk-dev package and its dependencies. And then do the ./configure;make;sudo make install python3.1 will have the tkinter libraries and the _tkinter module installed. If on another distro, just make sure you have latest tk-dev libraries (headers) installed. I don't see any other problem here, so I am closing this issue.
msg104412 - (view) Author: py.user (py.user) * Date: 2010-04-28 05:59
ok, thank you I found that I have no tcl.h and tk.h
msg104413 - (view) Author: py.user (py.user) * Date: 2010-04-28 06:25
allright I installed two -dev packages and ran tkinter
msg120111 - (view) Author: Senthil Kumaran (orsenthil) * (Python committer) Date: 2010-11-01 04:46
Not sure, why changed the resolution. It is an invalid bug report. You could have resolved it by a little research or by asking around.
msg120112 - (view) Author: py.user (py.user) * Date: 2010-11-01 08:30
I thought this will put the topic from unresolved to resolved Now I see this is for bugs only
msg157650 - (view) Author: py.user (py.user) * Date: 2012-04-06 07:59
testing new e-mail
History
Date User Action Args
2022-04-11 14:57:00 admin set github: 52801
2012-04-06 07:59:39 py.user set messages: +
2010-11-01 08:30:14 py.user set messages: +
2010-11-01 04:46:12 orsenthil set resolution: fixed -> not a bugmessages: +
2010-11-01 04:32:56 py.user set resolution: not a bug -> fixed
2010-04-28 06:25:22 py.user set messages: +
2010-04-28 05:59:09 py.user set messages: +
2010-04-28 04:27:56 orsenthil set status: open -> closednosy: + orsenthilmessages: + resolution: not a bugstage: resolved
2010-04-28 03:47:27 py.user set messages: +
2010-04-28 02:25:51 py.user set messages: +
2010-04-28 02:01:53 brian.curtin set nosy: + brian.curtinmessages: +
2010-04-28 01:47:34 py.user create