[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: BioPython: Some Python modules not found in tests at package build time



[Debian Python Modules Team <python-modules-team@lists.alioth.debian.org> in CC
 since it maintains python-reportlab]

Hi again,

On Fri, Apr 25, 2014 at 03:32:21PM +0200, Andreas Tille wrote:
> > 
> > test_GraphicsBitmaps ... Warn: Can't find .pfb for face 'Times-Roman'
> > skipping. Check the fonts needed by ReportLab if you want bitmaps from Bio.Graphics
> > Can't setFont(Times-Roman) missing the T1 files?
> > Originally <type 'exceptions.TypeError'>: makeT1Font() argument 2 must be string, not None
> 
> Well, this was rather me forgetting a python-imaging dependency - I
> (wrongly) assumed that python-pil would be sufficient.  So any idea
> how to get ".pfb for face 'Times-Roman'" found by reportlab

Some websearch leaded me to #174639 and thus I applied the following
patch to python-reportlab:


Author: Andreas Tille <tille@debian.org>
Last-Update: Fri, 25 Apr 2014 16:02:07 +0200
Description: Fix TTFSearchpath (see #174639)

--- a/src/reportlab/rl_settings.py
+++ b/src/reportlab/rl_settings.py
@@ -122,6 +122,7 @@ T1SearchPath =  (
.
 # places to look for TT Font information
 TTFSearchPath = (
+                '/usr/share/fonts/truetype/',   # Here are Debian's TTF fonts kept
                 'c:/winnt/fonts',
                 'c:/windows/fonts',
                 '/usr/lib/X11/fonts/TrueType/',



Unfortunately the result remained the same.  I somehow came to the
conclusion that the problem is caused by a broken reportlab package but
it seems my patch did not solved the issue.  Any better idea?  I do
not really want to reopen #174639 / file a new bug before I'm really
sure that this is the cause of the problem.

Kind regards

        Andreas.

-- 
http://fam-tille.de


Reply to: