This still does not work for me running the dev GAE. Do we have to do: from site-packages import moduleX
The hyphen throws a syntax error. I'd like to put them in site- packages but I'm stumped. On Mar 24, 8:24 am, mdipierro <[email protected]> wrote: > You have to add the folder to sys.path in gaehandler.py > It may be considered a bug so I fixed it. > > On Mar 24, 6:32 am, Jon Romero <[email protected]> wrote: > > > > > This doesn't seem to work when you are running on AppEngine! > > > It works perfectly outside but when I am running it using > > dev_appserver, it doesn't work. > > > Is this a bug? > > > On Mar 18, 4:54 pm, mdipierro <[email protected]> wrote: > > > > You should put them in web2py/site-packages > > > > On Mar 18, 9:35 am, PanosJee <[email protected]> wrote: > > > > > Never mind i just put the folder in /web2py and smiled > > > > But i am not sure if it s good way to do it > > > > > On Mar 18, 4:11 pm, PanosJee <[email protected]> wrote: > > > > > > Hey guys there were some posts regarding this issue but i could not > > > > > figure out what to do > > > > > I want to use some python libraries but i cannot install them > > > > > insite-> > packagesor pymodules so i have to add them in > > > > > themodulesfolder. > > > > > > Let s say i want to use gdatamind > > > > > There are tons of files and in most of them there areimportlike > > > > >importgdata > > > > >importgdata.contacts > > > > > > Acually i am using the pystache library. In the __init__.py there is > > > > > the following code > > > > > from pystache.templateimportTemplate > > > > > from pystache.viewimportView > > > > > > in my controller i have written > > > > > from applications.init.modules.pystacheimport* > > > > > i also tried > > > > >importapplications.init.modules.pystache as pystache > > > > > > I get the following error > > > > > ImportError: No module named pystache.template > > > > > > And i get the same error. I could rewrite theimportin the > > > > > __init__.py but then i have to change all imports in other files of > > > > > the code and this could be a show stopper when i ll try to put in the > > > > >modulesthe gdata library. > > > > > > Do you have any hints on how to do thisimportand actually change the > > > > > namespace of theimportor so? -- Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en

