We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
An underlying problem (likely outside matplotlib) is causing a NameError when trying to raise a FileNotFoundError in python2:
NameError
FileNotFoundError
...snippet... File "/home/duncan.macleod/.local/lib/python2.6/site-packages/matplotlib/dviread.py", line 150, in _read self._dispatch(byte) File "/home/duncan.macleod/.local/lib/python2.6/site-packages/matplotlib/dviread.py", line 233, in _dispatch self._fnt_def(k, c, s, d, a, l, n) File "/home/duncan.macleod/.local/lib/python2.6/site-packages/matplotlib/dviread.py", line 390, in _fnt_def raise FileNotFoundError("missing font metrics file: %s" % fontname) NameError: global name 'FileNotFoundError' is not defined
Looks like there needs to be a six.PY3 check to define this exception if required.
six.PY3
The text was updated successfully, but these errors were encountered:
157621b
Merge pull request #5661 from mdboom/filenotfound-py2
f9216a6
Fix #5660. No FileNotFoundError on Py2
Thanks for reporting this.
Please be aware that mpl2.0 onward will not support py2.6 and numpy will be dropping 2.6 in numpy 1.12.
Sorry, something went wrong.
053e1a8
mdboom
No branches or pull requests
An underlying problem (likely outside matplotlib) is causing a
NameError
when trying to raise aFileNotFoundError
in python2:Looks like there needs to be a
six.PY3
check to define this exception if required.The text was updated successfully, but these errors were encountered: