Hi:
I have a function just to render a pdf with an image, by means of pfpdf. 
Everything was running on a PC with Windows 7 64 bits. Now I have to use 
another PC, same environment but with Windows XP 32 bits.

It's pretty similar to this one: 
https://groups.google.com/forum/#!searchin/web2py/fpdf$20_parsepng/web2py/cfqTaBGuPs4/SDSdT1PnsnYJ
 (I 
tried it with no luck)

And I believe it has something to do with this 
http://bugs.python.org/issue17998

Any ideas about how to fix this?

Traceback

1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.

Traceback (most recent call last):
  File "e:\Dropbox\myWebs\MyApps\myeduapps\gluon\restricted.py", line 212, in 
restricted
    exec ccode in environment
  File 
"e:/Dropbox/myWebs/MyApps/myeduapps/applications/myeducenter/controllers/worksheets.py"
 
<http://127.0.0.1:8083/admin/default/edit/myeducenter/controllers/worksheets.py>,
 line 472, in <module>
  File "e:\Dropbox\myWebs\MyApps\myeduapps\gluon\globals.py", line 194, in 
<lambda>
    self._caller = lambda f: f()
  File 
"e:/Dropbox/myWebs/MyApps/myeduapps/applications/myeducenter/controllers/worksheets.py"
 
<http://127.0.0.1:8083/admin/default/edit/myeducenter/controllers/worksheets.py>,
 line 453, in numbers
    pdf=imgRepInPDF(pdf,'tri', 15, 15, [50,50], 4, outline=False)
  File 
"e:/Dropbox/myWebs/MyApps/myeduapps/applications/myeducenter/controllers/worksheets.py"
 
<http://127.0.0.1:8083/admin/default/edit/myeducenter/controllers/worksheets.py>,
 line 436, in imgRepInPDF
    pdf.image(os.path.join(request.folder,'static',imgroute ),type='PNG', 
x=canvasgrid[rows_shuffle[r]][cols_shuffle[c]][0]-randint(0,margin_max), 
y=canvasgrid[rows_shuffle[r]][cols_shuffle[c]][1]-randint(0,margin_max), w=0, 
h=imgh)
  File "e:\Dropbox\myWebs\MyApps\myeduapps\gluon\contrib\fpdf\fpdf.py", line 
915, in image
    info=self._parsepng(name)
  File "e:\Dropbox\myWebs\MyApps\myeduapps\gluon\contrib\fpdf\fpdf.py", line 
1788, in _parsepng
    alpha += data[pos]
  File "c:\Python27\lib\re.py", line 151, in sub
    return _compile(pattern, flags).sub(repl, string, count)
RuntimeError: internal error in regular expression engine


Cheers
Pablo



-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to