[reportlab-users] Windows ReportLab Demo Installation

Ashley Lloyd reportlab-users@reportlab.com
Thu, 06 Feb 2003 15:17:34 +0000


I have been attempting to install the demo (ReportLabDemo-1.17.exe) on Win 
2k, and have been encountering errors.
The contents of POST_INSTALL_LOG.txt are as follows:

################ Thu Feb 06 14:49:59 2003: start ..\..\..\python.exe 
genuserguide.py --outdir=..\..\..\Doc
Built story contains 1223 flowables...
Saved "..\..\..\Doc\userguide.pdf"

################ Thu Feb 06 14:50:05 2003: finished
################ Thu Feb 06 14:50:05 2003: start ..\..\..\python.exe 
gen_rmluserguide.py --outdir=..\..\..\Doc
################ Thu Feb 06 14:50:34 2003: finished
################ Thu Feb 06 14:50:34 2003: start .\rml2pdf.exe 
.\rlextra\pageCatcher\PageCatchIntro.rml --outdir=.\Doc
################ Thu Feb 06 14:50:36 2003: finished
################ Thu Feb 06 14:50:36 2003: start .\rml2pdf.exe 
.\rlextra\preppy\preppyspec.rml --outdir=.\Doc
################ Thu Feb 06 14:50:37 2003: finished
################ Thu Feb 06 14:50:37 2003: start .\pythonpoint.exe 
--outdir=.\Doc .\reportlab\tools\pythonpoint\demos\pythonpoint.xml
################ Thu Feb 06 14:50:40 2003: finished
################ Thu Feb 06 14:50:40 2003: start ..\..\python.exe runAll.py
................................E..F.........................................................................
======================================================================
ERROR: try stuff known to be in the path
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Program Files\ReportLab\Demo\reportlab\test\test_lib_utils.py", 
line 19, in test1
    m1 = recursiveImport('reportlab.pdfgen.canvas')
  File "_p:reportlab\lib\utils.py", line 86, in recursiveImport
ImportError: cannot import 'reportlab' while attempting recursive import of 
'reportlab.pdfgen.canvas'
======================================================================
FAIL: ensure noCWD removes current dir from path
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Program Files\ReportLab\Demo\reportlab\test\test_lib_utils.py", 
line 47, in test4
    noCWD=1)
  File "_p:reportlab\test\unittest.py", line 266, in failUnlessRaises
AssertionError: ImportError
----------------------------------------------------------------------
Ran 109 tests in 24.797s

FAILED (failures=1, errors=1)

################ Thu Feb 06 14:51:07 2003: finished

I also tried runAll.py, and the results are as follows:

.C:\Python21\lib\reportlab
.EEE..............................F.............................................
............................
======================================================================
ERROR: Test if classes have a doc string.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Program Files\ReportLab\Demo\reportlab\test\test_docstrings.py", 
line
164, in test1
    self._writeLogFile(ClassType)
  File "C:\Program Files\ReportLab\Demo\reportlab\test\test_docstrings.py", 
line
114, in _writeLogFile
    objects = getModuleObjects(RL_HOME, 'reportlab', objType)
  File "C:\Program Files\ReportLab\Demo\reportlab\test\test_docstrings.py", 
line
67, in getModuleObjects
    module = getattr(module, part)
AttributeError: 'reportlab.graphics' module has no attribute 'renderPM'
======================================================================
ERROR: Test if methods have a doc string.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Program Files\ReportLab\Demo\reportlab\test\test_docstrings.py", 
line
170, in test2
    self._writeLogFile(MethodType)
  File "C:\Program Files\ReportLab\Demo\reportlab\test\test_docstrings.py", 
line
114, in _writeLogFile
    objects = getModuleObjects(RL_HOME, 'reportlab', objType)
  File "C:\Program Files\ReportLab\Demo\reportlab\test\test_docstrings.py", 
line
67, in getModuleObjects
    module = getattr(module, part)
AttributeError: 'reportlab.graphics' module has no attribute 'renderPM'
======================================================================
ERROR: Test if modules have a doc string.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Program Files\ReportLab\Demo\reportlab\test\test_docstrings.py", 
line
176, in test3
    self._writeLogFile(ModuleType)
  File "C:\Program Files\ReportLab\Demo\reportlab\test\test_docstrings.py", 
line
114, in _writeLogFile
    objects = getModuleObjects(RL_HOME, 'reportlab', objType)
  File "C:\Program Files\ReportLab\Demo\reportlab\test\test_docstrings.py", 
line
67, in getModuleObjects
    module = getattr(module, part)
AttributeError: 'reportlab.graphics' module has no attribute 'renderPM'
======================================================================
FAIL: ensure noCWD removes current dir from path
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Program Files\ReportLab\Demo\reportlab\test\test_lib_utils.py", 
line
47, in test4
    noCWD=1)
  File "C:\Python21\reportlab\test\unittest.py", line 266, in 
failUnlessRaises
    raise self.failureException, excName
AssertionError: ImportError
----------------------------------------------------------------------
Ran 109 tests in 35.453s

FAILED (failures=1, errors=3)

Can anyone provide any advice on what I'm doing wrong?

Kind regards
Ashley

_________________________________________________________________
Stay in touch with absent friends - get MSN Messenger 
http://messenger.msn.co.uk