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

Test faliures after merging the decxx branch (#3646) #3669

Closed
jenshnielsen opened this issue Oct 18, 2014 · 1 comment · Fixed by #3671
Closed

Test faliures after merging the decxx branch (#3646) #3669

jenshnielsen opened this issue Oct 18, 2014 · 1 comment · Fixed by #3671
Assignees
Milestone

Comments

@jenshnielsen
Copy link
Member

After merging #3646 I see a bunch of failures like this one with python 3.4.1:

======================================================================
ERROR: matplotlib.tests.test_artist.test_cull_markers
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/site-packages/nose/case.py", line 198, in runTest
    self.test(*self.arg)
  File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/matplotlib-1.5.x-py3.4-macosx-10.10-x86_64.egg/matplotlib/testing/decorators.py", line 110, in wrapped_function
    func(*args, **kwargs)
  File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/matplotlib-1.5.x-py3.4-macosx-10.10-x86_64.egg/matplotlib/tests/test_artist.py", line 139, in test_cull_markers
    fig.savefig(pdf, format="pdf")
  File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/matplotlib-1.5.x-py3.4-macosx-10.10-x86_64.egg/matplotlib/figure.py", line 1470, in savefig
    self.canvas.print_figure(*args, **kwargs)
  File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/matplotlib-1.5.x-py3.4-macosx-10.10-x86_64.egg/matplotlib/backend_bases.py", line 2194, in print_figure
    **kwargs)
  File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/matplotlib-1.5.x-py3.4-macosx-10.10-x86_64.egg/matplotlib/backends/backend_pdf.py", line 2474, in print_pdf
    file.close()
  File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/matplotlib-1.5.x-py3.4-macosx-10.10-x86_64.egg/matplotlib/backends/backend_pdf.py", line 525, in close
    self.writeFonts()
  File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/matplotlib-1.5.x-py3.4-macosx-10.10-x86_64.egg/matplotlib/backends/backend_pdf.py", line 628, in writeFonts
    fonts[Fx] = self.embedTTF(realpath, chars[1])
  File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/matplotlib-1.5.x-py3.4-macosx-10.10-x86_64.egg/matplotlib/backends/backend_pdf.py", line 1056, in embedTTF
    pclt = font.get_sfnt_table('pclt') or {'capHeight': 0, 'xHeight': 0}
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte

----------------------------------------------------------------------

I.e. a large number of pdf tests using fonts fails. Not sure why travis doesn't hit this.

This is on OSX 10.10 with python installed from homebrew. The tests passes with Python 2.7

I did not test with python 3 before the merge.

@mdboom mdboom self-assigned this Oct 18, 2014
@mdboom
Copy link
Member

mdboom commented Oct 18, 2014

It probably occurs with a specific font on your system. Travis has very few fonts installed.

It would be helpful to know what this font is -- print out "font.fname" on the line above.

@tacaswell tacaswell added this to the v1.5.x milestone Oct 18, 2014
jenshnielsen added a commit to jenshnielsen/matplotlib that referenced this issue Oct 18, 2014
Looks like CharacterComplement doesn't return a unicode string so make it a bytestring in python3
jenshnielsen added a commit to jenshnielsen/matplotlib that referenced this issue Oct 18, 2014
Looks like CharacterComplement doesn't return a unicode string so make it a bytestring in python3
mdboom added a commit that referenced this issue Oct 20, 2014
fix for #3669 Font issue without PyCXX
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.

3 participants