[reportlab-users] Hi Help on Install, get errors.
Danie Brink
reportlab-users@reportlab.com
Mon, 26 Apr 2004 21:54:45 +0200
Hi All,
I read the manual and it told me to put it in the python path. That did
not work, then I installed it using :
python setup.py build
and
python setup.py install
Ran the ./test/runAll.py and it gave me errors not finding renderPM,
which I downloaded and installed using the same technique. Once again I
tested an had a lot of errors regarding fonts, gifs, etc. I finally
realized the software only installed the py files and not the other
files. I then copied these into the corresponding install directories
and again ran ./test/runAll.py. It gave me this output which, for the
live of me I can not figure out why. It can not find the procedures
listed in ./lib/colors.py, they are there and they should work, I Think.
:-(
Can anybody help me with this one ?. I am running SuSE 9.0 and Python
2.3.
linux:/usr/lib/python/site-packages/reportlab/test # python ./runAll.py
.....................................................................................................................EEEEEE..............
======================================================================
ERROR: Test color2bw function on all named colors.
----------------------------------------------------------------------
Traceback (most recent call last):
File "./test_lib_colors.py", line 43, in test0
cols = colors.getAllNamedColors().values()
AttributeError: 'NoneType' object has no attribute 'getAllNamedColors'
======================================================================
ERROR: Test colorDistance function.
----------------------------------------------------------------------
Traceback (most recent call last):
File "./test_lib_colors.py", line 53, in test1
cols = colors.getAllNamedColors().values()
AttributeError: 'NoneType' object has no attribute 'getAllNamedColors'
======================================================================
ERROR: Test toColor function on half a dozen ways to say 'red'.
----------------------------------------------------------------------
Traceback (most recent call last):
File "./test_lib_colors.py", line 62, in test2
allRed = [colors.red, [1, 0, 0], (1, 0, 0),
AttributeError: 'NoneType' object has no attribute 'red'
======================================================================
ERROR: Test roundtrip RGB to CMYK conversion.
----------------------------------------------------------------------
Traceback (most recent call last):
File "./test_lib_colors.py", line 75, in test3
rgbCols = colors.getAllNamedColors().items()
AttributeError: 'NoneType' object has no attribute 'getAllNamedColors'
======================================================================
ERROR: Construct CMYK instances and test round trip conversion
----------------------------------------------------------------------
Traceback (most recent call last):
File "./test_lib_colors.py", line 93, in test4
rgbCols = colors.getAllNamedColors().items()
AttributeError: 'NoneType' object has no attribute 'getAllNamedColors'
======================================================================
ERROR: List and display all named colors and their gray equivalents.
----------------------------------------------------------------------
Traceback (most recent call last):
File "./test_lib_colors.py", line 113, in test5
canvas = reportlab.pdfgen.canvas.Canvas('test_lib_colors.pdf')
AttributeError: 'NoneType' object has no attribute 'pdfgen'
----------------------------------------------------------------------
Ran 137 tests in 103.628s
FAILED (errors=6)
Any help will be much appreciated.
Danie Brink.