Hello Arun Shanker Prasad,

I'm not familiar with ReportLab, but from reading a tiny bit of their
documentation it seems like they are interested in making their
software usable from within App Engine.

(They mention App Engine on this page 
http://www.reportlab.org/downloads.html#reportlab
)

Have you tried contacting the ReportLab developers? It looks this the
issue is related to secure runtime restrictions and are triggered by
the module loader during the import. It would be great if this library
worked on App Engine, so I'm hoping that we collectively will figure
this out. I'm not sure if I'll have time to dig in to this issue, as
much as I'd like to.

Thank you,

Jeff

On Apr 6, 10:23 pm, Arun Shanker Prasad <[email protected]>
wrote:
> Hi,
>
> Anyone got any work-around for my situation? I am stuck at this
> point...
>
> Thanks,
> Arun Shanker Prasad.
>
> On Apr 6, 5:12 pm, Arun Shanker Prasad <[email protected]>
> wrote:
>
> > Hi,
>
> > I have a requirement to generate dynamic PDFs from HTML source. I
> > included the Pisa, html5lib and the reportlab packages for this.
> > Everything works fine in the local environment as long I keep all the
> > packages in the initial source ie I do not zip it.
>
> > Keeping the whole ReportLab package (204 files) might take me way
> > close to the allowed file limit. I tried to convert the ReportLab
> > package into a zip and use zipimport to use it. This causes the
> > following error,
>
> > AttributeError: 'HardenedModulesHook' object has no attribute '_files'
>
> > My source where the imports are called,
> > import sys
> > sys.path.insert(0, 'ho.zip')
> > sys.path.insert(0, 'html5lib.zip')
> > sys.path.insert(0, 'sx.zip')
> > sys.path.insert(0, 'reportlab.zip')
> > import ho.pisa as pisa
>
> > Googled a bit for the solution found another mention of this in issue
> > tracker,http://code.google.com/p/googleappengine/issues/detail?id=1085.
>
> > Can anyone help me get around this problem? I have seen many use
> > reportlab in Google App Engine how do you guys get around this issue??
>
> > Any help will be greatly appreciated.
>
> > Thanks,
> > Arun Shanker Prasad.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to