[web2py] ImportError: No module named myapp.modules

2014-10-01 Thread Alex


I've added a file to the modules folder, in a controller I import this 
module which works fine locally (Windows). When I deploy my application to 
the server (linux, apache) I get the following error when I try to import 
my module:

File web2pypath/gluon/custom_import.py, line 82, in custom_importer
modules_prefix, globals, locals, [itemname], level)
ImportError: No module named myapp.modules

I did not activate the custom importer (track_changes) and there is a file 
__init__.py (which is empty) in the modules folder. Does someone have an 
idea what could be wrong or what I could try to fix this?


thanks, Alex

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] ImportError: No module named myapp.modules

2014-04-20 Thread weheh
I'm in the process of installing a new version of my app and getting this 
error message right off the bat. My modules folder does contain an 
__init__.py file, so it should be OK. But I'm getting this traceback. This 
has got me dead in the water, so any quick help would be much appreciated. 
Should be obvious, but I don't see it.

Traceback (most recent call last):
  File C:\web2py\gluon\restricted.py, line 212, in restricted
exec ccode in environment
  File C:/web2py/applications/myapp/models/0_db_1_user.py 
http://127.0.0.1:8000/admin/edit/YAKiToMe/models/0_db_1_user.py, line 18, in 
module
import yak_globs
  File C:\web2py\gluon\custom_import.py, line 73, in custom_importer
modules_prefix, globals, locals, [itemname], level)
  File C:\web2py\gluon\custom_import.py, line 124, in __call__
result = NATIVE_IMPORTER(name, globals, locals, fromlist, level)
ImportError: No module named myapp.modules


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.