New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #30846 (closed defect: fixed)

Opened 22 months ago

Last modified 22 months ago

error saving to PDF in matplotlib

Reported by: astrofitz@… Owned by: ram@…
Priority: Normal Milestone:
Component: ports Version: 2.0.1
Keywords: Cc: mwest@…, ob+macport@…
Port: py27-matplotlib

Description (last modified by ram@…) (diff)

matplotlib is unable to save PDF files (test code attached). It crashes with an assertion error related to font encoding:

  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/dviread.py", line 727, in _register
    assert encoding is None
AssertionError

A patch has been proposed to work around the issue:

http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/branches/v1_0_maint/lib/matplotlib/dviread.py?view=patch&r1=8512&r2=8955

Attachments

test_pdf.py (68 bytes) - added by astrofitz@… 22 months ago.

Change History

Changed 22 months ago by astrofitz@…

comment:1 Changed 22 months ago by astrofitz@…

  • Cc astrofitz@… added

Cc Me!

comment:2 Changed 22 months ago by ram@…

  • Status changed from new to assigned
  • Cc ram@…, astrofitz@… removed
  • Description modified (diff)
  • Owner changed from macports-tickets@… to ram@…

comment:3 Changed 22 months ago by mwest@…

  • Cc mwest@… added

Cc Me!

comment:4 Changed 22 months ago by ob+macport@…

  • Cc ob+macport@… added

Cc Me!

comment:5 Changed 22 months ago by ram@…

patch applied in r83552, sorry for the delay but I was travelling and then my machine was in for repair

comment:6 Changed 22 months ago by ram@…

  • Status changed from assigned to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.