Fwd: Re: [reportlab-users] Problem installing ReportLab: Failed to import renderPM

trinkomail-box at yahoo.de trinkomail-box at yahoo.de
Fri May 20 11:33:56 EDT 2005


Hello all!

Many thanks to Johnny P, Andy and Robin for their
hints

Unfortunately I was not so successful:

First:
I tried to copy the reportlab-package to 
c:\python24\lib\site-package\reportlab 
as Johnny P suggested, but it did not work.

Second:
I took the _renderPM.pyd and copied it into
c:\python24\DLLs
as Robin  suggested. Noe I had _renderPM.pyd in the
DLLs subfolder and the reportlab-apckage in the
c:\python24\lib\site-package\reportlab subfolder

It seemed to work: "No more Failed to import renderPM"
Just this error-message:
ERROR: test0 (test_platypus_pto.BreakingTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"C:\Python24\Lib\site-packages\reportlab\test\test_platypus_pto.py",
line
 152, in test0
    _breakingTestCase(self)
  File
"C:\Python24\Lib\site-packages\reportlab\test\test_platypus_pto.py",
line
 136, in _breakingTestCase
    ptoblob('2 PTO (inner
split)',[ColorParagraph('pink',text0,bt),PTOContainer(
[ColorParagraph(black,'Inner
Starts',H1),ColorParagraph('yellow',text2,bt),Color
Paragraph('black','Inner
Ends',H1)],t1,h1),ColorParagraph('magenta',text1,bt)],t
0,h0)
  File
"C:\Python24\Lib\site-packages\reportlab\test\test_platypus_pto.py",
line
 49, in ColorParagraph
    return Paragraph('<para color=%s>%s</para>' %
(c,text),style)
  File
"C:\Python24\lib\site-packages\reportlab\platypus\paragraph.py",
line 378
, in __init__
    self._setup(text, style, bulletText, frags,
cleanBlockQuotedText)
  File
"C:\Python24\lib\site-packages\reportlab\platypus\paragraph.py",
line 403
, in _setup
    raise "xml parser error (%s) in paragraph
beginning\n'%s'"\
xml parser error (garbage in start tag) in paragraph
beginning
'<para color=Color(0,0,0)>Inner'

----------------------------------------------------------------------
Ran 132 tests in 135.224s

FAILED (errors=1)
Logs and output files written to folder
"c:\dokume~1\trinko~1\lokale~1\temp\Repo
rtLab_tmp\reportlab_test"

I must have a ugly-misconfiguration:
I can find render.PY and renderPM.pyc in the folder
c:\python24\lib\site-package\reportlab\graphics

>>> for line in sys.path:
	print line
	
C:\Python24\Lib\idlelib
C:\Python24
c:\python24\lib
c:\python24\lib\lib-tk
C:\WINNT\system32\python24.zip
C:\Python24\DLLs
C:\Python24\lib\plat-win
C:\Python24\lib\site-packages
C:\Python24\lib\site-packages\PIL

Many thanks for your help

Kurt




	
		
___________________________________________________________ 
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
-------------- next part --------------
An embedded message was scrubbed...
From: John Pywtorak <jpywtora at calpoly.edu>
Subject: Re: [reportlab-users] Problem installing ReportLab: Failed to import
	renderPM
Date: Thu, 19 May 2005 16:46:24 -0700
Size: 1645
Url: http://two.pairlist.net/pipermail/reportlab-users/attachments/20050520/c6961080/attachment-0001.mht


More information about the reportlab-users mailing list