Francois
unread,Dec 1, 2008, 3:51:12 AM12/1/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Pisa XHTML2PDF Support
Hi,
I get the following when attempting to install reportlab 2.2 - any
help would be appreciated.
francois@wolverine:~/ReportLab_2_2$ python setup.py tests-preinstall
.........................................................................................................................................Failed
to import renderPM.
.............................
----------------------------------------------------------------------
Ran 166 tests in 73.228s
OK
francois@wolverine:~/ReportLab_2_2$ sudo python setup.py install
################################################
#Attempting install of _rl_accel, sgmlop & pyHnj
#extensions from '/home/francois/ReportLab_2_2/src/rl_addons/rl_accel'
################################################
################################################
#Attempting install of _renderPM
#extensions from '/home/francois/ReportLab_2_2/src/rl_addons/renderPM'
# installing without freetype no ttf, sorry!
################################################
running install
running build
running build_py
copying src/reportlab/lib/hyphen.mashed -> build/lib.linux-i686-2.5/
reportlab/lib
running build_clib
building '_renderPM_libart' library
building '_renderPM_gt1' library
running build_ext
building '_rl_accel' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -
Wstrict-prototypes -fPIC -I/usr/include/python2.5 -c /home/francois/
ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c -o build/temp.linux-
i686-2.5/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/
_rl_accel.o
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:11:20:
error: Python.h: No such file or directory
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:35:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’
token
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:36:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’
token
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:53:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’
token
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:55:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’
token
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c: In
function ‘find_encoding’:
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:60:
warning: implicit declaration of function ‘strcasecmp’
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c: At
top level:
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:70:
error: expected ‘)’ before ‘*’ token
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:80:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’
token
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:106:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’
token
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:126:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’
token
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:168:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’
token
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:189:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’
token
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:219:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’
token
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:269:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’
token
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:337:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’
token
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:411:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’
token
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:484:
error: expected ‘)’ before ‘*’ token
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:528:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’
token
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:577:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’
token
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:603:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’
token
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:612:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’
token
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:622:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’
token
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:654:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’
token
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:688:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’
token
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:722:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’
token
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:749:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’
token
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:776:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’
token
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:1688:
error: array type has incomplete element type
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:1689:
error: ‘_pdfmetrics_defaultEncoding’ undeclared here (not in a
function)
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:1690:
error: ‘_pdfmetrics_getFonts’ undeclared here (not in a function)
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:1691:
error: ‘_pdfmetrics_getFontInfo’ undeclared here (not in a function)
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:1692:
error: ‘_pdfmetrics_setFontInfo’ undeclared here (not in a function)
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:1693:
error: ‘_pdfmetrics_stringWidth’ undeclared here (not in a function)
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:1694:
error: ‘_pdfmetrics_instanceStringWidth’ undeclared here (not in a
function)
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:1695:
error: ‘_pdfmetrics__SWRecover’ undeclared here (not in a function)
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:1700:
error: ‘_a85_encode’ undeclared here (not in a function)
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:1700:
error: ‘METH_VARARGS’ undeclared here (not in a function)
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:1701:
error: ‘_a85_decode’ undeclared here (not in a function)
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:1702:
error: ‘escapePDF’ undeclared here (not in a function)
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:1703:
error: ‘_instanceEscapePDF’ undeclared here (not in a function)
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:1704:
error: ‘_fp_str’ undeclared here (not in a function)
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:1705:
error: ‘_sameFrag’ undeclared here (not in a function)
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:1706:
error: ‘ttfonts_calcChecksum’ undeclared here (not in a function)
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:1707:
error: ‘ttfonts_calcChecksumL’ undeclared here (not in a function)
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:1708:
error: ‘ttfonts_add32’ undeclared here (not in a function)
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:1709:
error: ‘ttfonts_add32L’ undeclared here (not in a function)
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:1710:
error: ‘hex32’ undeclared here (not in a function)
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c: In
function ‘init_rl_accel’:
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:1734:
error: ‘PyObject’ undeclared (first use in this function)
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:1734:
error: (Each undeclared identifier is reported only once
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:1734:
error: for each function it appears in.)
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:1734:
error: ‘d’ undeclared (first use in this function)
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:1738:
error: ‘moduleObject’ undeclared (first use in this function)
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:1738:
warning: implicit declaration of function ‘Py_InitModule3’
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:1741:
error: ‘ErrorObject’ undeclared (first use in this function)
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:1742:
warning: implicit declaration of function ‘PyErr_NewException’
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:1745:
warning: implicit declaration of function ‘Py_INCREF’
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:1746:
error: ‘moduleVersion’ undeclared (first use in this function)
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:1746:
warning: implicit declaration of function ‘PyString_FromString’
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:1751:
warning: implicit declaration of function ‘PyModule_GetDict’
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:1752:
warning: implicit declaration of function ‘PyDict_SetItemString’
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:1765:
warning: implicit declaration of function ‘PyErr_Occurred’
/home/francois/ReportLab_2_2/src/rl_addons/rl_accel/_rl_accel.c:1765:
warning: implicit declaration of function ‘Py_FatalError’
error: command 'gcc' failed with exit status 1
francois@wolverine:~/ReportLab_2_2$ python setup.py tests
.E............................................................E..F...EE........./
usr/lib/python2.5/site-packages/reportlab/platypus/paragraph.py:548:
DeprecationWarning: raising a string exception is deprecated
% (_parser.errors[0],text[:min(30,len(text))])
E....................E..EE...EEEE.E.EEEE.Traceback (most recent call
last):
File "genuserguide.py", line 97, in <module>
main()
File "genuserguide.py", line 95, in main
run(pagesize, verbose,outDir)
File "genuserguide.py", line 18, in run
from reportlab.pdfbase.pdfmetrics import registerFontFamily
ImportError: cannot import name registerFontFamily
Traceback (most recent call last):
File "gengraphguide.py", line 62, in <module>
main()
File "gengraphguide.py", line 59, in main
run(pagesize,verbose)
File "gengraphguide.py", line 33, in run
exec open_and_read(f+'.py',mode='t') in G, G
File "<string>", line 249, in <module>
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
pdfmetrics.py", line 477, in __init__
self._loadGlyphs(pfbFileName)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
pdfmetrics.py", line 487, in _loadGlyphs
assert rl_isfile(pfbFileName), 'file %s not found' % pfbFileName
AssertionError: file /usr/lib/python2.5/site-packages/reportlab/fonts/
DarkGardenMK.pfb not found
Failed to import renderPM.
Failed to import test.
F.........................E..
======================================================================
ERROR: Make a document full of tables
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/francois/ReportLab_2_2/tests/test_platypus_tables.py",
line 775, in test1
old_tables_test()
File "/home/francois/ReportLab_2_2/tests/test_platypus_tables.py",
line 764, in old_tables_test
SimpleDocTemplate(outputfile('tables.pdf'), showBoundary=1).build
(lst)
File "/usr/lib/python2.5/site-packages/reportlab/platypus/
doctemplate.py", line 911, in build
BaseDocTemplate.build(self,flowables, canvasmaker=canvasmaker)
File "/usr/lib/python2.5/site-packages/reportlab/platypus/
doctemplate.py", line 740, in build
self.handle_flowable(flowables)
File "/usr/lib/python2.5/site-packages/reportlab/platypus/
doctemplate.py", line 638, in handle_flowable
if frame.add(f, self.canv, trySplit=self.allowSplitting):
File "/usr/lib/python2.5/site-packages/reportlab/platypus/
frames.py", line 141, in _add
w, h = flowable.wrap(aW, h)
File "/usr/lib/python2.5/site-packages/reportlab/platypus/
tables.py", line 978, in wrap
self._calc(availWidth, availHeight)
File "/usr/lib/python2.5/site-packages/reportlab/platypus/
tables.py", line 523, in _calc
self._calc_height(availHeight,availWidth,W=W)
File "/usr/lib/python2.5/site-packages/reportlab/platypus/
tables.py", line 479, in _calc_height
w = max(colpositions[t[2]+1]-colpositions[t[0]],w)
TypeError: 'NoneType' object is unsubscriptable
======================================================================
ERROR: A basic document drawing some strings
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/francois/ReportLab_2_2/tests/test_multibyte_jpn.py",
line 140, in test0
jPara.wrap(300, 200)
File "/usr/lib/python2.5/site-packages/reportlab/platypus/
paragraph.py", line 567, in wrap
self.blPara = self.breakLinesCJK([first_line_width, later_widths])
File "/usr/lib/python2.5/site-packages/reportlab/platypus/
paragraph.py", line 819, in breakLinesCJK
raise ValueError('CJK Wordwrap can only handle one fragment per
paragraph for now')
ValueError: CJK Wordwrap can only handle one fragment per paragraph
for now
======================================================================
ERROR: testStringWidth (test_pdfbase_encodings.TextEncodingTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/francois/ReportLab_2_2/tests/test_pdfbase_encodings.py",
line 51, in setUp
self.vera = TTFont("Vera", "Vera.ttf")
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 989, in __init__
self.face = TTFontFace(filename, validate=validate,
subfontIndex=subfontIndex)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 898, in __init__
TTFontFile.__init__(self, filename, validate=validate,
subfontIndex=subfontIndex)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 411, in __init__
TTFontParser.__init__(self, file,
validate=validate,subfontIndex=subfontIndex)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 192, in __init__
self.readFile(file)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 264, in readFile
self.filename, file = TTFOpenFile(file)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 178, in TTFOpenFile
raise TTFError('Can\'t open file "%s"' % fn)
TTFError: Can't open file "Vera.ttf"
======================================================================
ERROR: Verify canvas declared as utf8 autoconverts.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/francois/ReportLab_2_2/tests/test_pdfbase_encodings.py",
line 51, in setUp
self.vera = TTFont("Vera", "Vera.ttf")
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 989, in __init__
self.face = TTFontFace(filename, validate=validate,
subfontIndex=subfontIndex)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 898, in __init__
TTFontFile.__init__(self, filename, validate=validate,
subfontIndex=subfontIndex)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 411, in __init__
TTFontParser.__init__(self, file,
validate=validate,subfontIndex=subfontIndex)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 192, in __init__
self.readFile(file)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 264, in readFile
self.filename, file = TTFOpenFile(file)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 178, in TTFOpenFile
raise TTFError('Can\'t open file "%s"' % fn)
TTFError: Can't open file "Vera.ttf"
======================================================================
ERROR: Test...
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/francois/ReportLab_2_2/tests/test_paragraphs.py", line
132, in test0
story.append(Paragraph("<para><bullet bulletIndent='-1cm'
bulletOffsetY='2'><seq id='s0'/>)</bullet>Indented list
bulletOffsetY=2. %s</para>" % randomText(), styNormal))
File "/usr/lib/python2.5/site-packages/reportlab/platypus/
paragraph.py", line 523, in __init__
self._setup(text, style, bulletText, frags, cleanBlockQuotedText)
File "/usr/lib/python2.5/site-packages/reportlab/platypus/
paragraph.py", line 548, in _setup
% (_parser.errors[0],text[:min(30,len(text))])
xml parser error (invalid attribute name bulletOffsetY) in paragraph
beginning
'<para><bullet bulletIndent='-1'
======================================================================
ERROR: Test PDF generation with TrueType fonts
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/francois/ReportLab_2_2/tests/test_pdfbase_ttfonts.py",
line 80, in testTTF
pdfmetrics.registerFont(TTFont("Vera", "Vera.ttf"))
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 989, in __init__
self.face = TTFontFace(filename, validate=validate,
subfontIndex=subfontIndex)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 898, in __init__
TTFontFile.__init__(self, filename, validate=validate,
subfontIndex=subfontIndex)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 411, in __init__
TTFontParser.__init__(self, file,
validate=validate,subfontIndex=subfontIndex)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 192, in __init__
self.readFile(file)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 264, in readFile
self.filename, file = TTFOpenFile(file)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 178, in TTFOpenFile
raise TTFError('Can\'t open file "%s"' % fn)
TTFError: Can't open file "Vera.ttf"
======================================================================
ERROR: Tests TTFontFile and TTF parsing code
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/francois/ReportLab_2_2/tests/test_pdfbase_ttfonts.py",
line 126, in testFontFile
ttf = TTFontFile("Vera.ttf")
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 411, in __init__
TTFontParser.__init__(self, file,
validate=validate,subfontIndex=subfontIndex)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 192, in __init__
self.readFile(file)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 264, in readFile
self.filename, file = TTFOpenFile(file)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 178, in TTFOpenFile
raise TTFError('Can\'t open file "%s"' % fn)
TTFError: Can't open file "Vera.ttf"
======================================================================
ERROR: Tests TTFontFile and TTF parsing code
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/francois/ReportLab_2_2/tests/test_pdfbase_ttfonts.py",
line 161, in testFontFileChecksum
file = TTFOpenFile("Vera.ttf")[1].read()
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 178, in TTFOpenFile
raise TTFError('Can\'t open file "%s"' % fn)
TTFError: Can't open file "Vera.ttf"
======================================================================
ERROR: Tests TTFontFile and TTF parsing code
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/francois/ReportLab_2_2/tests/test_pdfbase_ttfonts.py",
line 170, in testSubsetting
ttf = TTFontFile("Vera.ttf")
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 411, in __init__
TTFontParser.__init__(self, file,
validate=validate,subfontIndex=subfontIndex)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 192, in __init__
self.readFile(file)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 264, in readFile
self.filename, file = TTFOpenFile(file)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 178, in TTFOpenFile
raise TTFError('Can\'t open file "%s"' % fn)
TTFError: Can't open file "Vera.ttf"
======================================================================
ERROR: Tests TTFontFace.addSubsetObjects
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/francois/ReportLab_2_2/tests/test_pdfbase_ttfonts.py",
line 208, in testAddSubsetObjects
face = TTFontFace("Vera.ttf")
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 898, in __init__
TTFontFile.__init__(self, filename, validate=validate,
subfontIndex=subfontIndex)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 411, in __init__
TTFontParser.__init__(self, file,
validate=validate,subfontIndex=subfontIndex)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 192, in __init__
self.readFile(file)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 264, in readFile
self.filename, file = TTFOpenFile(file)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 178, in TTFOpenFile
raise TTFError('Can\'t open file "%s"' % fn)
TTFError: Can't open file "Vera.ttf"
======================================================================
ERROR: Test TTFont.addObjects
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/francois/ReportLab_2_2/tests/test_pdfbase_ttfonts.py",
line 335, in testAddObjects
font = TTFont("Vera", "Vera.ttf")
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 989, in __init__
self.face = TTFontFace(filename, validate=validate,
subfontIndex=subfontIndex)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 898, in __init__
TTFontFile.__init__(self, filename, validate=validate,
subfontIndex=subfontIndex)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 411, in __init__
TTFontParser.__init__(self, file,
validate=validate,subfontIndex=subfontIndex)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 192, in __init__
self.readFile(file)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 264, in readFile
self.filename, file = TTFOpenFile(file)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 178, in TTFOpenFile
raise TTFError('Can\'t open file "%s"' % fn)
TTFError: Can't open file "Vera.ttf"
======================================================================
ERROR: TTFont.addObjects should not fail when no characters were used
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/francois/ReportLab_2_2/tests/test_pdfbase_ttfonts.py",
line 300, in testAddObjectsEmpty
font = TTFont("Vera", "Vera.ttf")
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 989, in __init__
self.face = TTFontFace(filename, validate=validate,
subfontIndex=subfontIndex)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 898, in __init__
TTFontFile.__init__(self, filename, validate=validate,
subfontIndex=subfontIndex)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 411, in __init__
TTFontParser.__init__(self, file,
validate=validate,subfontIndex=subfontIndex)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 192, in __init__
self.readFile(file)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 264, in readFile
self.filename, file = TTFOpenFile(file)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 178, in TTFOpenFile
raise TTFError('Can\'t open file "%s"' % fn)
TTFError: Can't open file "Vera.ttf"
======================================================================
ERROR: Test that TTFont can be used for different documents at the
same time
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/francois/ReportLab_2_2/tests/test_pdfbase_ttfonts.py",
line 322, in testParallelConstruction
font = TTFont("Vera", "Vera.ttf")
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 989, in __init__
self.face = TTFontFace(filename, validate=validate,
subfontIndex=subfontIndex)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 898, in __init__
TTFontFile.__init__(self, filename, validate=validate,
subfontIndex=subfontIndex)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 411, in __init__
TTFontParser.__init__(self, file,
validate=validate,subfontIndex=subfontIndex)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 192, in __init__
self.readFile(file)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 264, in readFile
self.filename, file = TTFOpenFile(file)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 178, in TTFOpenFile
raise TTFError('Can\'t open file "%s"' % fn)
TTFError: Can't open file "Vera.ttf"
======================================================================
ERROR: Tests TTFont.splitString
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/francois/ReportLab_2_2/tests/test_pdfbase_ttfonts.py",
line 255, in testSplitString
font = TTFont("Vera", "Vera.ttf")
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 989, in __init__
self.face = TTFontFace(filename, validate=validate,
subfontIndex=subfontIndex)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 898, in __init__
TTFontFile.__init__(self, filename, validate=validate,
subfontIndex=subfontIndex)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 411, in __init__
TTFontParser.__init__(self, file,
validate=validate,subfontIndex=subfontIndex)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 192, in __init__
self.readFile(file)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 264, in readFile
self.filename, file = TTFOpenFile(file)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 178, in TTFOpenFile
raise TTFError('Can\'t open file "%s"' % fn)
TTFError: Can't open file "Vera.ttf"
======================================================================
ERROR: testSplitStringSpaces (test_pdfbase_ttfonts.TTFontTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/francois/ReportLab_2_2/tests/test_pdfbase_ttfonts.py",
line 276, in testSplitStringSpaces
font = TTFont("Vera", "Vera.ttf")
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 989, in __init__
self.face = TTFontFace(filename, validate=validate,
subfontIndex=subfontIndex)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 898, in __init__
TTFontFile.__init__(self, filename, validate=validate,
subfontIndex=subfontIndex)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 411, in __init__
TTFontParser.__init__(self, file,
validate=validate,subfontIndex=subfontIndex)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 192, in __init__
self.readFile(file)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 264, in readFile
self.filename, file = TTFOpenFile(file)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 178, in TTFOpenFile
raise TTFError('Can\'t open file "%s"' % fn)
TTFError: Can't open file "Vera.ttf"
======================================================================
ERROR: Test TTFont.stringWidth
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/francois/ReportLab_2_2/tests/test_pdfbase_ttfonts.py",
line 246, in testStringWidth
font = TTFont("Vera", "Vera.ttf")
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 989, in __init__
self.face = TTFontFace(filename, validate=validate,
subfontIndex=subfontIndex)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 898, in __init__
TTFontFile.__init__(self, filename, validate=validate,
subfontIndex=subfontIndex)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 411, in __init__
TTFontParser.__init__(self, file,
validate=validate,subfontIndex=subfontIndex)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 192, in __init__
self.readFile(file)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 264, in readFile
self.filename, file = TTFOpenFile(file)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 178, in TTFOpenFile
raise TTFError('Can\'t open file "%s"' % fn)
TTFError: Can't open file "Vera.ttf"
======================================================================
ERROR: Tests TTFont.getSubsetInternalName
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/francois/ReportLab_2_2/tests/test_pdfbase_ttfonts.py",
line 287, in testSubsetInternalName
font = TTFont("Vera", "Vera.ttf")
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 989, in __init__
self.face = TTFontFace(filename, validate=validate,
subfontIndex=subfontIndex)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 898, in __init__
TTFontFile.__init__(self, filename, validate=validate,
subfontIndex=subfontIndex)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 411, in __init__
TTFontParser.__init__(self, file,
validate=validate,subfontIndex=subfontIndex)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 192, in __init__
self.readFile(file)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 264, in readFile
self.filename, file = TTFOpenFile(file)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
ttfonts.py", line 178, in TTFOpenFile
raise TTFError('Can\'t open file "%s"' % fn)
TTFError: Can't open file "Vera.ttf"
======================================================================
ERROR: Make documents with embedded fonts.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/francois/ReportLab_2_2/tests/test_pdfbase_fontembed.py",
line 70, in test0
c.setFont('DarkGardenMK', 12)
File "/usr/lib/python2.5/site-packages/reportlab/pdfgen/canvas.py",
line 1302, in setFont
font = pdfmetrics.getFont(self._fontname)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
pdfmetrics.py", line 676, in _py_getFont
return findFontAndRegister(fontName)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
pdfmetrics.py", line 658, in findFontAndRegister
face = getTypeFace(fontName)
File "/usr/lib/python2.5/site-packages/reportlab/pdfbase/
pdfmetrics.py", line 617, in getTypeFace
return _typefaces[faceName]
KeyError: 'DarkGardenMK'
======================================================================
FAIL: test1 (test_platypus_breaking.BreakingTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/francois/ReportLab_2_2/tests/test_platypus_breaking.py",
line 187, in test1
self.assertEqual(len(p.split(20,24)),0) #widows disallowed
AssertionError: 2 != 0
======================================================================
FAIL: Test if all manuals buildable from source.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/francois/ReportLab_2_2/tests/test_docs_build.py", line
27, in test0
assert os.path.isfile('userguide.pdf'), 'genAll.py failed to
generate userguide.pdf!'
AssertionError: genAll.py failed to generate userguide.pdf!
----------------------------------------------------------------------
Ran 150 tests in 53.371s
FAILED (failures=2, errors=18)
###################### the following tests could not be imported
file: "/home/francois/ReportLab_2_2/tests/test_platypus_general.py"
Traceback (most recent call last):
File "runAll.py", line 30, in makeSuite
exec 'import %s as module' % modname
File "<string>", line 1, in <module>
File "/home/francois/ReportLab_2_2/tests/test_platypus_general.py",
line 24, in <module>
from reportlab.lib.utils import haveImages, _RL_DIR, rl_isfile,
open_for_read, fileName2Utf8
ImportError: cannot import name fileName2Utf8
file: "/home/francois/ReportLab_2_2/tests/test_pdfgen_general.py"
Traceback (most recent call last):
File "runAll.py", line 30, in makeSuite
exec 'import %s as module' % modname
File "<string>", line 1, in <module>
File "/home/francois/ReportLab_2_2/tests/test_pdfgen_general.py",
line 13, in <module>
from reportlab.lib.utils import haveImages, fileName2Utf8
ImportError: cannot import name fileName2Utf8
file: "/home/francois/ReportLab_2_2/tests/test_platypus_paragraphs.py"
Traceback (most recent call last):
File "runAll.py", line 30, in makeSuite
exec 'import %s as module' % modname
File "<string>", line 1, in <module>
File "/home/francois/ReportLab_2_2/tests/
test_platypus_paragraphs.py", line 13, in <module>
from reportlab.pdfbase.pdfmetrics import stringWidth,
registerFont, registerFontFamily
ImportError: cannot import name registerFontFamily
file: "/home/francois/ReportLab_2_2/tests/test_pdfgen_callback.py"
Traceback (most recent call last):
File "runAll.py", line 30, in makeSuite
exec 'import %s as module' % modname
File "<string>", line 1, in <module>
File "/home/francois/ReportLab_2_2/tests/test_pdfgen_callback.py",
line 11, in <module>
from tests.test_pdfgen_general import makeDocument
File "/home/francois/ReportLab_2_2/tests/test_pdfgen_general.py",
line 13, in <module>
from reportlab.lib.utils import haveImages, fileName2Utf8
ImportError: cannot import name fileName2Utf8