Emad, In general, to use a module, you can copy it into your project directory. However, you don't need an app.yaml entry for it. It looks like you are defining the module directory as a static directory-- this is incorrect.
[Also, note that GAE does not support writing to the file system (see the 'Sandbox' section here: http://code.google.com/appengine/docs/whatisgoogleappengine.html), so if reportlab wants to create files, it will not be compatible]. On Tue, Oct 25, 2011 at 11:36 PM, Emad Maleki <[email protected]> wrote: > Hi Everybody > I have sever problem with GAE, I am pretty new in this stuff but i > frastrated googling about 3 days to find proper answer. > here is the challenge > I have installed reportlab to produce PDF files. but i dont know how > to fix the path, library and app.yaml things in order no to have <type > 'exceptions.ImportError'>: No module named reportlab.lib.pagesizes > error: > > Please someone simply describe what should some one do , when he wants > to use external library in GOOGLE APP ENgine > > here is my app.yaml file > > application: pdft > version: 1 > runtime: python > api_version: 1 > > handlers: > - url: /favicon.ico > static_files: static/shared/favicon.ico > upload: static/shared/favicon.ico > > - url: /reportlab > static_dir: reportlab > > - url: /.* > script: test.py > > here is my code > > from reportlab.lib.pagesizes import A4 > from reportlab.pdfgen import canvas > > ..... > > > Thank you in advanced, > Emad > > > -- > 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. > > -- 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.
