[reportlab-users] Reportlab compiling in Linux

Uwe C. Schroeder uwe at oss4u.com
Wed May 2 16:53:00 EDT 2007



David,

you can test it yourself and get the errors to the list.
I just tried that and I get 25 errors on the below procedure, all of which are
missing fonts or images for the test documents - and I know my installation
works just fine.

Anyways, try this:

grab reportlab and unpack it to some place in your home.
cd into the directory and run:

rm -rf build
python setup.py build

If that already throws errors post them here.
If not:

cd into the "test" directory.
Edit the runAll.py script to have the beginning look like this:

import os, glob, sys, string, traceback
sys.path.append('../build/lib')
from reportlab.test import unittest
from reportlab.test.utils import GlobDirectoryWalker, outputfile,printLocation

The only change to the original is the sys.path.append statement.
The path to append would be the lib directory in the build. It's certainly
important that the sys.path.append statement is before the import reportlab
statements :-)

You can also use the same trick to just distribute reportlab together with
your application and modify the sys.path variable to add that directory - no
sysadmin neccessary.

Hope that gets you further.

Uwe




On Wednesday 02 May 2007, David Frank wrote:

> Hello Uwe and Rich,

>

> So, I guess if reportlab works fine with Python 2.3, I think my problem

> may be because of unsufficient libraries as Wayne suggested, or maybe

> wetware as Rich suggests. But, is it possible that even with insufficient

> libraries, Python programs would run without problems?

>

> I can try installing Python 2.4 or 2.5 and see if the missing libraries

> are included there. I just wish I knew what were these missing libraries!

>

> Looks like if I dont get this done soon, it would be a looooong time

> before I leave the Ivory Tower :-(

>

> Thanks,

>

> David

>

> > Reportlab works just fine with python 2.3

> > I still have one installation (32 bit) with 2.3 and everything is peachy

> >

> > there.

> >

> > Uwe

> >

> > > The location of the python library files are usr/lib64/python2.3 and

>

> the

>

> > > /location of the python interpreter is usr/bin.

> >

> > David,

> >

> > Python-2.4 is shipped with many distributions, and -2.5 is available. I

> > don't know if ReportLabs has issues with the -2.3 release, but other

> > libraries will.

> >

> > From what you've written, you don't have a hardware or software problem,

> > but a wetware problem: your SysAdmin. That issue, unfortunately, cannot

>

> be

>

> > solved by subscribers to a technical mail list. Your management is the

> > sourse of a solution, but that probably involves corporate political

>

> issues

>

> > fraught with danger for mere developers like yourself.

> >

> > You have my sympathies.

> >

> > Rich

> >

> > > I'm quite sure that the fault was on his side since he's known to have

> > > caused problems with other people's applications before.

> >

> > David,

> > Ah, yes. You're in academia, not the real world. That's even more

> > problematical.

> >

> > Go to www.python.org and see what's included in the distribution. Also

> > look for tests that you can run as a user. Someone on a python newsgroup

>

> or

>

> > mail list can also help you to install ReportLabs locally so python will

> > find and use it.

> >

> > Good luck ... I escaped from the ivory tower more than two decades ago

>

> and

>

> > have never regretted leaving,

> >

> > Rich





More information about the reportlab-users mailing list