Just to provide a bit more information, I created a brand-new Ubuntu
8.04 VPS on
vps.net, and then documented the steps I took to get the
web site ready to use. I ended up exactly at the same place...(when
called from the command line xhtml2pdf will perfectly convert the
xhtml content generated by my web app, when my web app calls
pisaDocument to generate the PDF, it does not work (though the same
code works on my development machine).
What I'm looking for are suggestions on how to tweak pisa to tell me
more about what's going on here. I've put output statements in the
pisa_document.py file to indicate where things get to...and it all
seems to be going well. No errors generated, no exceptions thrown.
For the record, a TOC is built, so it would be calling doc.multiBuild
(c.story). I've called pisaDocument with xhtml=1, capacity=-1, and
show_error_as_pdf=1, just in case.
I'm still stumped, so any suggestions would be greatly appreciated.
-Ken
-----------------------------------------------------------------------------------------------------------------
The steps to get a server to this state:
apt-get install lighttpd
apt-get install python-setuptools
easy_install web.py
easy_install pisa
apt-get install links
apt-get install libfreetype6
apt-get install gcc
apt-get install libart-2.0-2
apt-get install build-essential
apt-get install python-dev
apt-get install python-flup
links
http://reportlab.com (download ReportLabs 2.3)
(unpack ReportLabs 2.3)
apt-get install libttf2
cd /src/ReportLab...
python setup.py install
easy_install -U xlrd
easy_install pyPdf
apt-get install python-imaging
copy the /etc/lighttpd/conf-enabled/* to the new machine.
copy the /var/app and /var/www to the new machine.
restart lighttpd so it can pick up /etc/lighttpd/conf-enabled/10-
fastcgi, which links the app in.
mkdir /var/egg
chmod 777 /var/egg
chown www-data:www-data /var/app/dbstore.db
edit /etc/passwd and change the shell for www-data to bash
apt-get install libsqlite3-dev
easy_install -U pysqlite
apt-get install python-html5lib
------------------------------------------------------------------------------------------------------
So, at this point, the xhtml2pdf command line successfully converts,
but the same thing attemped by my web app doesn't work.
Please help!
-Ken