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

Can't import plot_directive in Python 3 #2256

Closed
astrofrog opened this issue Jul 28, 2013 · 3 comments · Fixed by #2753
Closed

Can't import plot_directive in Python 3 #2256

astrofrog opened this issue Jul 28, 2013 · 3 comments · Fixed by #2753
Milestone

Comments

@astrofrog
Copy link
Contributor

I haven't yet figured out if this is an issue with Sphinx or Matplotlib, but when building some documentation in Python 3 that requires the plot_directive, I get:

Running Sphinx v1.1.3

Extension error:
Could not import extension matplotlib.sphinxext.plot_directive (exception: No module named 'exceptions')

which is not very informative. This is with the latest dev versions of Matplotlib and Sphinx.

tacaswell added a commit to tacaswell/matplotlib that referenced this issue Oct 29, 2013
Fixes it in two ways:

1) changes the closure of `on_dpi` to be over a weakref, not `self`
2) cleans up the call back when the quiver is removed
tacaswell added a commit to tacaswell/matplotlib that referenced this issue Jan 22, 2014
fixes matplotlib#2256 Looks like linger `six` related issues
@tacaswell
Copy link
Member

@astrofrog Can you confirm that the PR fixes the problem?

@935749995haji
Copy link

I have the same problem.Can anyone tell me how to slove this problem in detail? Thanks a lot.

@WeatherGod
Copy link
Member

WeatherGod commented Aug 8, 2017 via email

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

Successfully merging a pull request may close this issue.

4 participants