I got:
Traceback (most recent call last): File "C:\Python26\web2py\gluon\restricted.py", line 212, in restricted exec ccode in environment File "c:/Python26/web2py/applications/Hcontrol/controllers/default.py" <http://127.0.0.1:8000/admin/default/edit/Hcontrol/controllers/default.py>, line 1000, in <module> File "C:\Python26\web2py\gluon\globals.py", line 188, in <lambda> self._caller = lambda f: f() File "c:/Python26/web2py/applications/Hcontrol/controllers/default.py" <http://127.0.0.1:8000/admin/default/edit/Hcontrol/controllers/default.py>, line 558, in pdf_prev pdf.add_page() File "C:\Python26\web2py\gluon\contrib\fpdf\fpdf.py", line 284, in add_page self.header() File "c:/Python26/web2py/applications/Hcontrol/controllers/default.py" <http://127.0.0.1:8000/admin/default/edit/Hcontrol/controllers/default.py>, line 540, in header self.image(logo,10,8,50) File "C:\Python26\web2py\gluon\contrib\fpdf\fpdf.py", line 896, in image info=self._parsepng(name) File "C:\Python26\web2py\gluon\contrib\fpdf\fpdf.py", line 1749, in _parsepng color += re.sub('(.{3}).',lambda m: m.group(1),line, flags=re.DOTALL) TypeError: sub() got an unexpected keyword argument 'flags' Does fpdf require Python >2.6 ? Until web2py 1.94.5 the same code worked. --