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

Cannot import _tkagg on windows 64 bits on 2.7 #7953

Closed
cournape opened this issue Jan 26, 2017 · 7 comments
Closed

Cannot import _tkagg on windows 64 bits on 2.7 #7953

cournape opened this issue Jan 26, 2017 · 7 comments

Comments

@cournape
Copy link

cournape commented Jan 26, 2017

It looks like the tk backend is broken with 1.5.3 and 2.0.0 on windows, most likely following #6442

To reproduce:

  1. install python 2.7.12 x64 windows from python.org, and wheels gholke for 2.7
  2. do python -c "import matplotlib.backends._tkagg", which fails:
>>> import matplotlib.backends._tkagg
...
RuntimeError: Could not find TCL routines

I have seen the same issue with:

  • our own build of 1.5.3 in canopy (for 2.7)
  • in Gholke wheels for 1.5.3 and 2.0.0 (2.7.12)
  • conda package as well for 1.5.3 (both 2.7.13 and 3.5.2)
@tacaswell tacaswell added this to the 2.0.1 (next bug fix release) milestone Jan 26, 2017
@tacaswell tacaswell added Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. OS: Microsoft GUI: tk labels Jan 26, 2017
@tacaswell
Copy link
Member

How does it fail (I do not have easy access to a win64 box to test on)?

Does this also affect py3?

attn @matthew-brett @cgohlke (sorry)

@cournape
Copy link
Author

Oups, forgot that piece of info when rewriting my bug report from #6442. I am also testing on py3 now

@cournape
Copy link
Author

I updated my findings on python 3 (same result)

@cgohlke
Copy link
Contributor

cgohlke commented Jan 26, 2017

I don't think import matplotlib.backends._tkagg can work without first loading the Tk DLLs into the process, e.g. by import _tkinter first. In practice I have never run into this error because the usual way to import the backend is import matplotlib.backends.backend_tkagg. Maybe I am missing something?

@cournape
Copy link
Author

Ah, that makes sense. I will see if that works in embedded modes as well.

@tacaswell
Copy link
Member

@cournape Any update on this?

@tacaswell
Copy link
Member

Reported fixed in a private email.

@QuLogic QuLogic removed this from the 2.0.1 (next bug fix release) milestone Mar 13, 2017
@QuLogic QuLogic removed the Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. label Mar 13, 2017
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