Re: [web2py] Re: Error in local_import()

2011-03-30 Thread Jonathan Lundell
On Mar 30, 2011, at 5:37 PM, contatogilson...@gmail.com wrote: > But doing the import from site-packages, to make deployed on Google App > Engine it will be able to use the modules? We're talking about web2py/site-packages. Create the directory if necessary in the web2py base directory. The mod

Re: [web2py] Re: Error in local_import()

2011-03-30 Thread contatogilson...@gmail.com
But doing the import from site-packages, to make deployed on Google App Engine itwill be able to use the modules? _ *Gilson Filho* *Web Developer http://gilsondev.com* 2011/3/30 Massimo Di Pierro >

[web2py] Re: Error in local_import()

2011-03-30 Thread Massimo Di Pierro
You have to look int them and change the imports. For example modules/package/a.py import package.b end modules/package/b.py import package.a end must be changed into modules/package/a.py import b end modules/package/b.py import a end because package is n

Re: [web2py] Re: Error in local_import()

2011-03-30 Thread Jonathan Lundell
On Mar 30, 2011, at 3:21 PM, contatogilson...@gmail.com wrote: > So what can I do to fix this. These modules would have to be in the folder > modulesbecause I'm going to play such an application on Google App Engine. Did you try putting them in site-packages?

Re: [web2py] Re: Error in local_import()

2011-03-30 Thread contatogilson...@gmail.com
So what can I do to fix this. These modules would have to be in the folder modulesbecause I'm going to play such an application on Google App Engine. _ *Gilson Filho* *Web Developer http://gilsondev.com* 2011/3/30 Massimo Di Pierro > I believe the pr

[web2py] Re: Error in local_import()

2011-03-30 Thread Massimo Di Pierro
I believe the problem is that the module expects to be in sys.path. Some python modules are very selfish and assume that. On Mar 30, 12:12 pm, "contatogilson...@gmail.com" wrote: > I researched the list of the error of using local_import (), but without > success. I used the "import applications.

Re: [web2py] Re: Error in local_import()

2011-03-30 Thread contatogilson...@gmail.com
Thanks Will. Locally it worked, but if I pack and send to GAE? _ *Gilson Filho* *Web Developer http://gilsondev.com* 2011/3/30 pbreit > I am not clear on what you are trying to do and what you have attempted. > The correct usage of local_import is: >

[web2py] Re: Error in local_import()

2011-03-30 Thread pbreit
I am not clear on what you are trying to do and what you have attempted. The correct usage of local_import is: For the module located at: applications/myapp/modules/mymodule.py In your controller, use: mymodule = local_import('mymodule')

[web2py] Re: Error in local_import()

2011-03-30 Thread Will Stevens
Try putting your module in 'web2py/site-packages' and reference it with a normal import and see if that works. If it does, good, but it wont help us understand the problem. If it doesn't, it may give you some more insight into why your module is not importing using local_import(). On Mar 30, 1:1