Skip to content

Can't import tkinter in Python 2.7 #262

Closed
@Marrin

Description

@Marrin

I get an error when trying to import tkinter:

Traceback (most recent call last):
  File "forum4.py", line 2, in <module>
    from tkinter import *
  File "/usr/local/lib/python2.7/dist-packages/tkinter/__init__.py", line 6, in <module>
    from Tkinter import (_cnfmerge, _default_root, _flatten, _join, _setit,
ImportError: cannot import name _join

The import of _join was added as fix for #233 and also includes _splitdict, and _stringify which don't exist in my Python 2.7s Tkinter module. The perils of implementation details I guess.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions