Error when import _tkinter in python

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sue Velutty
    New Member
    • Apr 2007
    • 1

    #1

    Error when import _tkinter in python

    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_A sUTF8String
  • bartonc
    Recognized Expert Expert
    • Sep 2006
    • 6478

    #2
    Originally posted by Sue Velutty
    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_A sUTF8String
    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)

    Comment

    Working...