the patch above breaks web2py on GAE, perhaps we try the patch in
http://code.google.com/p/web2py/issues/detail?id=873 instead?
On Wednesday, July 4, 2012 5:47:11 AM UTC-7, Corne Dickens wrote:
>
> You can try the following to reproduce:
>
> easy_install -d ./web2py/site-packages sqlalchemy
> to
You can try the following to reproduce:
easy_install -d ./web2py/site-packages sqlalchemy
to install the module in the web2py site-packages directory.
If you now run web2py (console):
python web2py.py -S welcome
import sqlalchemy
Without the patch it fails ImportError: No module named sqlalchemy
I could use some more explanation.. the site module is imported in the
interpreter anyway, staring at the docs.
in the first post you say:
Only it does not work with modules installed by python easy-install.
>
in this one
Just installing with PIP or easy_install works
>
I'm surely missing
It depends on what you do..
Just installing with PIP or easy_install works..
Installing in web2py/site_packages and before starting web2py add
site_packages to the python path also works.
But in web2py its self the site_packages is added to the path, but in that
case installed packages are not
Ahem
If I install a module using easy_install web2py recognizes it
correctly (you should use pip, btw)
Maybe you are running two different python version and the easy_installed
library is on one interpreter and you run web2py with another
interpreter..
Web2py first looks into m
In trunk. Excellent!
On Thursday, 28 June 2012 09:27:58 UTC-5, Corne Dickens wrote:
>
> Hi,
>
> Web2py imports modules from the site-packages directory which is a great
> way to build a project withoud any 'external' dependencies.
> Only it does not work with modules installed by python easy-inst
Thanks for the answer
When I wrote this also worked.
prueba = local_import('plugin_test.test')
On 22 nov, 08:39, mdipierro wrote:
> Assuming the file should be in
>
> applications//modules/plugin_xx/libs1.py
>
> should be
>
> libs1 = local_import("plugin_xxx/libs1.py)
>
> and if there is
Assuming the file should be in
applications//modules/plugin_xx/libs1.py
should be
libs1 = local_import("plugin_xxx/libs1.py)
and if there is a function f in the module
r=libs1.f(...)
On Nov 22, 5:09 am, Aurigadl wrote:
> as I can import a model from plugin
>
> Example:
>
> myAplicatio
That was it.
I was missing : applications/__init__.py
It works now.
Thanks to both of you!!!
On Fri, Apr 2, 2010 at 5:21 PM, mdipierro wrote:
> You should have a __init__.py in all folders in path:
>
> applications/__init__.py
> applications/mlinks/__init__.py
> applications/mdlinks/modules/_
You should have a __init__.py in all folders in path:
applications/__init__.py
applications/mlinks/__init__.py
applications/mdlinks/modules/__init__.py
make sure they are there. That is the only possible problem.
On Apr 2, 7:08 pm, Miguel Goncalves wrote:
> yes I have one but it is empty.
>
> O
yes I have one but it is empty.
On Fri, Apr 2, 2010 at 4:01 PM, mr.freeze wrote:
> Do you have an __init__.py in your modules folder?
>
> On Apr 2, 3:02 pm, Miguel Goncalves wrote:
> > It gives me the following error:
> > ImportError: No module named applications.mlinks.modules
> >
> > On Fri,
Do you have an __init__.py in your modules folder?
On Apr 2, 3:02 pm, Miguel Goncalves wrote:
> It gives me the following error:
> ImportError: No module named applications.mlinks.modules
>
> On Fri, Apr 2, 2010 at 5:48 AM, mr.freeze wrote:
> > I was able to create a new app, copy clienttools.py
It gives me the following error:
ImportError: No module named applications.mlinks.modules
On Fri, Apr 2, 2010 at 5:48 AM, mr.freeze wrote:
> I was able to create a new app, copy clienttools.py to the modules
> directory and import with the code below. Perhaps there is an issue
> with local_imp
I was able to create a new app, copy clienttools.py to the modules
directory and import with the code below. Perhaps there is an issue
with local_import and GAE? Try changing this line:
clienttools = local_import('clienttools')
To this:
from applications.mlinks.modules import clienttools
On Apr 1,
14 matches
Mail list logo