[reportlab-users] Problems installing ReportLab 2.2 on Ubuntu Hardy
Cameron Booth
cameron at cdbdesign.net
Thu Mar 12 11:25:43 EDT 2009
Hi there,
I'm having some difficulty getting Reportlab 2.2 to install on my Ubuntu
Hardy machine. I downloaded the ReportLab_2_3.tar.gz file, untarred it, and
have run "python setup.py install", but it fails out with the following
error:
running build_ext
building '_rl_accel' extension
creating
build/temp.linux-x86_64-2.5/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -I/usr/include/python2.5 -c
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c
-o
build/temp.linux-x86_64-2.5/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.o
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:11:20:
error: Python.h: No such file or directory
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:35:
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:36:
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:53:
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:55:
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:
In function 'find_encoding':
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:60:
warning: implicit declaration of function 'strcasecmp'
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:
At top level:
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:70:
error: expected ')' before '*' token
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:80:
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:106:
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:126:
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:168:
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:189:
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:219:
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:269:
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:337:
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:411:
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:484:
error: expected ')' before '*' token
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:528:
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:577:
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:603:
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:612:
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:622:
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:654:
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:688:
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:722:
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:749:
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:776:
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:1688:
error: array type has incomplete element type
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:1689:
error: '_pdfmetrics_defaultEncoding' undeclared here (not in a function)
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:1690:
error: '_pdfmetrics_getFonts' undeclared here (not in a function)
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:1691:
error: '_pdfmetrics_getFontInfo' undeclared here (not in a function)
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:1692:
error: '_pdfmetrics_setFontInfo' undeclared here (not in a function)
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:1693:
error: '_pdfmetrics_stringWidth' undeclared here (not in a function)
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:1694:
error: '_pdfmetrics_instanceStringWidth' undeclared here (not in a function)
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:1695:
error: '_pdfmetrics__SWRecover' undeclared here (not in a function)
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:1700:
error: '_a85_encode' undeclared here (not in a function)
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:1700:
error: 'METH_VARARGS' undeclared here (not in a function)
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:1701:
error: '_a85_decode' undeclared here (not in a function)
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:1702:
error: 'escapePDF' undeclared here (not in a function)
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:1703:
error: '_instanceEscapePDF' undeclared here (not in a function)
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:1704:
error: '_fp_str' undeclared here (not in a function)
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:1705:
error: '_sameFrag' undeclared here (not in a function)
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:1706:
error: 'ttfonts_calcChecksum' undeclared here (not in a function)
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:1707:
error: 'ttfonts_calcChecksumL' undeclared here (not in a function)
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:1708:
error: 'ttfonts_add32' undeclared here (not in a function)
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:1709:
error: 'ttfonts_add32L' undeclared here (not in a function)
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:1710:
error: 'hex32' undeclared here (not in a function)
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:
In function 'init_rl_accel':
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:1734:
error: 'PyObject' undeclared (first use in this function)
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:1734:
error: (Each undeclared identifier is reported only once
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:1734:
error: for each function it appears in.)
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:1734:
error: 'd' undeclared (first use in this function)
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:1738:
error: 'moduleObject' undeclared (first use in this function)
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:1738:
warning: implicit declaration of function 'Py_InitModule3'
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:1741:
error: 'ErrorObject' undeclared (first use in this function)
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:1742:
warning: implicit declaration of function 'PyErr_NewException'
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:1745:
warning: implicit declaration of function 'Py_INCREF'
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:1746:
error: 'moduleVersion' undeclared (first use in this function)
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:1746:
warning: implicit declaration of function 'PyString_FromString'
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:1751:
warning: implicit declaration of function 'PyModule_GetDict'
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:1752:
warning: implicit declaration of function 'PyDict_SetItemString'
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:1765:
warning: implicit declaration of function 'PyErr_Occurred'
/usr/lib/python2.5/site-packages/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:1765:
warning: implicit declaration of function 'Py_FatalError'
error: command 'gcc' failed with exit status 1
Does anybody have any advice?? I'm feeling kind of stuck. Thanks in advance!
Cameron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20090312/dd831d91/attachment-0001.htm>
More information about the reportlab-users
mailing list