[issue14750] importlib fails with tkinter application on Windows

Vinay Sajip report at bugs.python.org
Tue May 8 13:43:28 CEST 2012


New submission from Vinay Sajip <vinay_sajip at yahoo.co.uk>:

I'm now getting failures to import tkinter on Windows:

C:\Users\Vinay\Projects\scratch>..\cpython\PCbuild\python tkhello.py
Traceback (most recent call last):
  File "tkhello.py", line 1, in <module>
    from tkinter import *
  File "<frozen importlib._bootstrap>", line 977, in _find_and_load
  File "<frozen importlib._bootstrap>", line 596, in load_module
  File "<frozen importlib._bootstrap>", line 262, in module_for_loader_wrapper
  File "<frozen importlib._bootstrap>", line 484, in _load_module
  File "C:\Users\Vinay\Projects\cpython\lib\tkinter\__init__.py", line 36, in <module>
    from tkinter import _fix
ImportError: cannot import name _fix

I'm not sure if this is an importlib issue or a tkinter one, but with a recent build (30 April) this worked OK. The tkhello.py script is just

from tkinter import *
root = Tk()
w = Label(root, text="Hello, world!")
w.pack()
root.mainloop()

----------
components: Library (Lib), Windows
messages: 160198
nosy: brett.cannon, vinay.sajip
priority: normal
severity: normal
status: open
title: importlib fails with tkinter application on Windows
type: behavior
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14750>
_______________________________________


More information about the Python-bugs-list mailing list