pckiller2008 / pyfpdf

Automatically exported from code.google.com/p/pyfpdf
GNU Lesser General Public License v3.0
0 stars 0 forks source link

web2py 2.0.9 sub() got an unexpected keyword argument 'flags' #47

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.I move my web2py app from web2py 2.2.3 to web2py 2.0.9

Traceback (most recent call last):
  File "C:\web2py2\gluon\restricted.py", line 209, in restricted
    exec ccode in environment
  File "C:/web2py2/applications/EMPRE/controllers/default.py", line 530, in <module>
  File "C:\web2py2\gluon\globals.py", line 186, in <lambda>
    self._caller = lambda f: f()
  File "C:/web2py2/applications/EMPRE/controllers/default.py", line 155, in report
    pdf.image(logo,xy[0],xy[1],w=30)
  File "C:\web2py2\gluon\contrib\fpdf\fpdf.py", line 896, in image
    info=self._parsepng(name)
  File "C:\web2py2\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'

Original issue reported on code.google.com by ramstei...@gmail.com on 14 Feb 2013 at 5:51

GoogleCodeExporter commented 9 years ago
Please see issue # 42, it has a temporary workaround

Original comment by reingart@gmail.com on 14 Feb 2013 at 6:31