[web2py] Import of a package

2014-04-15 Thread Beat Kohler
I installed a package (not a single module) with easy_install. The 
installation works fine with Python (2.7). The package can be imported and 
used without any problems.
Inside web2py the import failed: cannot import module.
As a workaround I placed the package folder in the site-packages folder. 
But still no success..
Web2py-Version: 2.8.2
Plattform:windows 7 
Python Version:   2.7

What is wrong in the paradies??
Thanks for any help
Beat

-- 
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] import error debian package

2011-06-09 Thread Stavros
Has anyone who has used latest debian package been able to import
modules while keeping the application self contained?  I have the
traceback from another user's application.

First line of default.py
question_maker = local_import('question_maker')

then when you run it...

Traceback (most recent call last):
 File /usr/lib/pymodules/python2.6/gluon/restricted.py, line 192,
in restricted
   exec ccode in environment
 File /home/jelkner/web2py/applications/mathquiz/controllers/
default.py,
line 1, in module
   question_maker = local_import('question_maker')
 File /usr/lib/pymodules/python2.6/gluon/compileapp.py, line 246, in
lambda
   local_import_aux(name,reload,app)
 File /usr/lib/pymodules/python2.6/gluon/compileapp.py, line 177,
in local_import_aux
   module = __import__(name)
 File /usr/lib/pymodules/python2.6/gluon/custom_import.py, line
280, in __call__
   fromlist, level)
 File /usr/lib/pymodules/python2.6/gluon/custom_import.py, line 75,
in __call__
   level)
ImportError: No module named mathquiz.modules.question_maker