By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,223 Members | 1,403 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,223 IT Pros & Developers. It's quick & easy.

Error when import _tkinter in python

P: 1
Hi,

I'm having this errror when I try to run "import _tkinter" in python

Python 2.2.2 (#1, Apr 5 2007, 12:58:53)
[GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-47)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ZSI
>>> import _tkinter
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: /usr/lib/python2.2/lib-dynload/_tkinter.so: undefined symbol: PyUnicodeUCS4_AsUTF8String
Apr 10 '07 #1
Share this Question
Share on Google+
1 Reply


bartonc
Expert 5K+
P: 6,596
Hi,

I'm having this errror when I try to run "import _tkinter" in python

Python 2.2.2 (#1, Apr 5 2007, 12:58:53)
[GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-47)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ZSI
>>> import _tkinter
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: /usr/lib/python2.2/lib-dynload/_tkinter.so: undefined symbol: PyUnicodeUCS4_AsUTF8String
That's got to do with the way your sub-version was compiled.
What happens if you do this:

>>> import tkinter

(leave off the underscore)
Apr 10 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.