Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tkinter failed to import #14385

Closed
superuser789 opened this issue Dec 8, 2020 · 4 comments
Closed

Tkinter failed to import #14385

superuser789 opened this issue Dec 8, 2020 · 4 comments

Comments

@superuser789
Copy link

superuser789 commented Dec 8, 2020

I have installed Python 3.7.9 64bit in Windows 10 Pro and have installed the latest Spyder from setup installer for windows from here.
When I import tkinter module, I get this error :

import tkinter as tk
Traceback (most recent call last):

  File "<ipython-input-2-e89bfb5dd03b>", line 1, in <module>
    import tkinter as tk

  File "C:\Program Files\Spyder\pkgs\tkinter\__init__.py", line 36, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk

ImportError: DLL load failed: The specified module could not be found.

How can I resolve it ?

@ccordoba12
Copy link
Member

Hey @superuser789, thanks for reporting. We'll take a look at that in our 4.2.2 version, to be released on February of next year (unfortunately 4.2.1 is almost ready to be released).

@dalthviz
Copy link
Member

dalthviz commented Dec 11, 2020

Note: Check takluyver/pynsist#124 . More specifically: takluyver/pynsist#124 (comment) (that should be enough)

@Simon-Clifford
Copy link

I have this same issue too:
File "C:\Program Files\Spyder\pkgs\tkinter_init_.py", line 36, in
import _tkinter # If this fails your Python may not be configured for Tk

ImportError: DLL load failed: The specified module could not be found.

There doesn't seem to be any option to regress to an older version of Spyder that does work ? Do you have a release date for when 4.2.2 will be available ?

@dalthviz
Copy link
Member

Hi @Simon-Clifford sadly all the versions of the Windows installer have this issue. If you want to overcome this you will need for now to install Spyder through conda for example. Regarding 4.2.2, is planned to be released at the end of February. If you want to check progress regarding this issue the PR that will be fixing this (which also builds previous of the installers) is #14727 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants