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) *  |
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) *  |
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) *  |
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 |
|
|