PML Errors

error in line 0: Traceback (innermost last):
  File "/home/gerardi/Desktop/work/pisa/sx/pisa2/pml.py", line 365, in __init__
  File "/usr/lib/python2.7/dist-packages/reportlab/platypus/doctemplate.py", line 956, in build
    self.handle_flowable(flowables)
  File "/usr/lib/python2.7/dist-packages/reportlab/platypus/doctemplate.py", line 821, in handle_flowable
    if frame.add(f, canv, trySplit=self.allowSplitting):
  File "/usr/lib/python2.7/dist-packages/reportlab/platypus/frames.py", line 167, in _add
    w, h = flowable.wrap(aW, h)
  File "/home/gerardi/Desktop/work/pisa/sx/pisa2/pml_images.py", line 54, in wrap
  File "/usr/lib/python2.7/dist-packages/reportlab/platypus/flowables.py", line 478, in __getattr__
    self._setup_inner()
  File "/usr/lib/python2.7/dist-packages/reportlab/platypus/flowables.py", line 442, in _setup_inner
    img = self._img
  File "/usr/lib/python2.7/dist-packages/reportlab/platypus/flowables.py", line 472, in __getattr__
    self._img = ImageReader(self._file)
  File "/usr/lib/python2.7/dist-packages/reportlab/lib/utils.py", line 807, in __init__
    annotateException('\nfileName=%r identity=%s'%(fileName,self.identity()))
  File "/usr/lib/python2.7/dist-packages/reportlab/lib/utils.py", line 1387, in annotateException
    rl_reraise(t,v,b)
  File "/usr/lib/python2.7/dist-packages/reportlab/lib/utils.py", line 794, in __init__
    self._image = self._read_image(self.fp)
  File "/usr/lib/python2.7/dist-packages/reportlab/lib/utils.py", line 822, in _read_image
    return Image.open(fp)
  File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 2349, in open
    % (filename if filename else fp))
 IOError: cannot identify image file <open file '/var/www/spirito.de/htdocs/index.html', mode 'rb' at 0x7fe7923f5f60>
fileName='/var/www/spirito.de/htdocs/index.html' identity=[ImageReader@0x7fe79239bd10 filename='/var/www/spirito.de/htdocs/index.html']

PML Sourcecode

        
                
        








<document author="spirito gmbh" format="a4">

    

    <fontembed
        afm="/pdft/DINLt___.afm"
        pfb="/pdft/DINLt___.pfb"
        name="DIN-Light">
    <fontembed
        afm="/pdft/DINMd___.afm"
        pfb="/pdft/DINMd___.pfb"
        name="DIN-Medium">

    <style type="text/css">
    <!--

        .default {
            font-family: DIN-Light;
        }

        p {
            font-family: DIN-Light;
        }

        li {
            font-family: DIN-Light;
        }

        ul {
            font-family: DIN-Light;
        }

        div {
            font-family: DIN-Light;
        }

        strong {
            font-family: DIN-Medium;
        }

        h1 {
            font-family: DIN-Medium;
            font-size: 16px;
            margin-top: 8px;
            margin-bottom: 8px;
        }

        h2 {
            font-family: DIN-Medium;
            font-size: 13px;
            margin-top: 8px;
            margin-bottom: 8px;
        }

        a {
            font-family: DIN-Light;
            color: #FF9900;
        }

        .bottom {
            font-family: DIN-Light;
            font-size: 8px;
            color: #555555;
        }

    -->
    </style>

    <template background="/pdft/meta03.pdf">

        <frame box="2,5cm 6,8cm 15cm -4cm" border=0>

        <static box="15cm -1,5cm -2,5cm 5cm">
            <p align="right" class="bottom">
            Seite <pagenumber example="0">
        </static>

        <static box="2,5cm -1,5cm -1cm 5cm">
            <p class="bottom">
                spirito GmbH
                    + Otawistr 19
                    + 47249 Duisburg
                    + Tel: 0203 / 318 77 77
                    + team@spirito.de
                    + www.spirito.de
                <br>
                    Diese Seite wurde automatisch am 14.11.2019
                    mit unserem Produkt "pisa" generiert.
                    http://pisa.by.spirito.de
        </static>

    </template>

    <div id="crumb">
        
<a href="http://www.spirito.de/index.html">spirito</a> / <a href="http://www.spirito.de/pwelba/index.html?idd=10">Produkte</a> / <a href="http://www.spirito.de/pwelba/index.html?idd=24">luca</a> / <a href="http://www.spirito.de/pwelba/index.html?idd=94">Demoinstallation</a>

    </div>

    
<!-- #BeginEditable "output" -->


<h1>Sie möchten luca gerne testen?</h1>

<p ><strong></STRONG></P>
<h2>kein Problem!</H2>
<p>Füllen Sie einfach das Formular aus und wir setzen Ihnen eine voll funktionsfähige Demoinstallation von luca auf. Garantiert kostenlos und unverbindlich für vier Wochen.</P>
<form action="index.html" method="post"><input type="hidden" name="idd" value="94"><input type="hidden" name="sent" value="1">
<div id="dadoform">
<p>E-mail : <input name="vae-mail" ></p>
<hr noshade width="100%" size="2" color="#FFFFFF">

<p>Name : <input name="vaname" ></p>
<hr noshade width="100%" size="2" color="#FFFFFF">

<p>Unternehmen : <input name="vaunternehmen" ></p>
<hr noshade width="100%" size="2" color="#FFFFFF">
<br>
<textarea name="message"  >
</textarea><br>

<p class="captcha">
    _(Bitte geben Sie die Zahlen aus dem Bild ein.)_<br />
    <input type="text" class="nr required" id="captcha" name="captcha">
    
    <img src="/_dado/img/spirito-captcha.dado.png?_=uhnSF_b_jlJTM93zoQKIdIoOEtM&timestamp=20191114121832">
</p>
<input type="submit" id="submit" value="">
</div></form></p><br>

<!-- #EndEditable --> 


</document>