I ran into similar problems when I tried to install a plugin.
I suggest that web2py be changed to create the __init__.py files
automatically in all modules folders
after it unpacks a plugin.
I think the plugin system also needs to support subfolders in the modules
folder. Does not look like it ha
YAY! - Just figured out the problem.
Looks like there was no '__init__.py' file in my application root
directory (web2py/applications/mynewapp).
Now that I've put one there; importing works :D
On Mon, Mar 4, 2013 at 4:25 AM, Alec Taylor wrote:
> Confirmed that the alternate suggested syntax doe
Confirmed that the alternate suggested syntax doesn't work (same
error); and that a blank '__init__.py' file is present in my modules
directory.
On Mon, Mar 4, 2013 at 4:10 AM, Niphlod wrote:
> why don't you use the simplest form
> from foo_module import Foo
>
> ?
>
> PS: check that there's an __
why don't you use the simplest form
from foo_module import Foo
?
PS: check that there's an __init__.y in the modules folder. If you want to
use appname.modules.foo_module path, you need to check for the __init__.py
also in the applications directory.
On Sunday, March 3, 2013 6:03:19 PM UTC+1,
4 matches
Mail list logo