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
RuntimeError: No SFNT name table #1648
Comments
Does nobody have an idea how this issue can be fixed? It's open now for about two months and I haven't found a solution myself so far. |
I'm baffled. Your setup looks reasonably similar to mine, and presumably to that of many other people. There must be some subtle difference, but I don't see anything that could account for it. Your latest error message indicates a problem linking with libpng. My otool output is slightly different: efiring@manini2:~/work/programs/py/mpl$ otool -L /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_png.so /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_png.so: /usr/local/lib/libpng15.15.dylib (compatibility version 29.0.0, current version 29.0.0) /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5) /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 56.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0) So my libpng is in a different location and is a very slightly different version; it is hard to imagine how those differences could matter, but I suppose you might try reinstalling libpng and recompiling. Instead of using pip, you might want to use git to clone the repo from github and build explicitly from source. That way you can more easily switch versions, and it is easier to see what is going on. |
Since SFNT is related to fonts, have you cleared out any potential gotchas by removing your |
There is some font on your system that it doesn't like. It would be helpful if we could figure out what that font file is, and then maybe you could send it to me in a private email and I'll try to reproduce the bug locally. The easiest way to do this is to:
The last font file name displayed should be the culprit. Hopefully from that file I can determine what's going on. |
@mdboom Sorry for my late answer. I just tried what you suggested. However, the font files are only displayed if I do
This is the only font file in the I can send you the font file if you provide me an email address. Anyway, thanks for your help. |
@pemistahl Do any of these look familiar? Like you say, it'd be nice to know where that came from. |
@pemistahl : Sorry for the delay. I can't reproduce this locally with a version of NimbusSansL-Regu.ttf I found online, so perhaps there's something specific to your version. Could you please send it to |
Removing the blocker label. If this was a wider issue I'd have expected more people to comment, but it seems that this is probably an installation/machine specific issue. |
Closing due to lack of response. |
I'm on Mac OS X 10.8.2 (Mountain Lion) and using Python 2.7.3 (64-bit version). I have installed the following libraries:
For installing matplotlib, I used the installer matplotlib-1.2.0-py2.7-python.org-macosx10.6.dmg that is provided on the matplotlib downloads page.
The following import works:
However, when I try to import
matplotlib.pyplot
I getRuntimeError: No SFNT name table
. This is the whole stracktrace as given by IPython:I just read in a pretty old thread that it has to do with the file
ft2font.so
which is linked against a wrong library or something. This is the output of theotool -L
command. Does this help?Update: I've installed the newest XQuartz version 2.7.4 but the error still exists. Compiling and installing matplotlib 1.2.0 from source using
pip
works fine (probably due to to the pre-install of Xcode), when I doimport matplotlib.pyplot as plt
I get this new error message:Checking the symlinks again gives:
And here are the statistics given during the build process of matplotlib when installing from source using
pip
:I don't have this issue with matplotlib version 1.1.1. Shall I switch back to it or can I solve this problem in another way? Thank you very much in advance!
The text was updated successfully, but these errors were encountered: