192.168.20.177.2019-05-17.10-35-07.293afb38-6e29-461b-8ccb-46092d983b29
| web2py™ | Version 2.18.5-stable+timestamp.2019.04.08.04.22.03 |
|---|---|
| Python | Python 2.7.10: C:\Python27\python.exe (prefix: C:\Python27) |
1. | Traceback (most recent call last): |
Inside the application which has the module in its modules folder all you need is "import mytest"
--
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 a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/vdwfLThWz0U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/dd1443ec-704f-48af-af0a-d66988d9281a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Check line 8 in error, it already contain import mytest, in another project i can import that module.
пт, 17 мая 2019 г., 18:59 Leonel Câmara <leonel...@gmail.com>:
--Inside the application which has the module in its modules folder all you need is "import mytest"
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 a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/vdwfLThWz0U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/4a3f7f28-cf62-47eb-a1c8-ddbdc9f81a65%40googlegroups.com.
Yes it have, but that file is empty

<type 'exceptions.ImportError'>(No module named application.modules)
File C:\inetpub\wwwroot\gluon\restricted.py in restricted at line 219 код аргументы переменные
File C:\inetpub\wwwroot\applications\application\controllers\bak.py in <module> at line 2 код аргументы переменные
File C:\inetpub\wwwroot\gluon\custom_import.py in custom_importer at line 74 код аргументы переменные
(name='mytest', globals={'A': <class 'gluon.html.A'>, 'ANY_OF': <class 'pydal.validators.ANY_OF'>, 'ASSIGNJS': <function ASSIGNJS>, 'AppConfig': <function AppConfig>, 'Auth': <class 'gluon.tools.Auth'>, 'B': <class 'gluon.html.B'>, 'BEAUTIFY': <class 'gluon.html.BEAUTIFY'>, 'BODY': <class 'gluon.html.BODY'>, 'BR': <class 'gluon.html.BR'>, 'BUTTON': <class 'gluon.html.BUTTON'>, ...}, locals={'A': <class 'gluon.html.A'>, 'ANY_OF': <class 'pydal.validators.ANY_OF'>, 'ASSIGNJS': <function ASSIGNJS>, 'AppConfig': <function AppConfig>, 'Auth': <class 'gluon.tools.Auth'>, 'B': <class 'gluon.html.B'>, 'BEAUTIFY': <class 'gluon.html.BEAUTIFY'>, 'BODY': <class 'gluon.html.BODY'>, 'BR': <class 'gluon.html.BR'>, 'BUTTON': <class 'gluon.html.BUTTON'>, ...}, fromlist=None, level=-1)
69. | if not fromlist: |
|
modules_prefix += "." + itemname |
| modules_prefix | 'applications.application.modules' |
|---|---|
| globals | {'A': <class 'gluon.html.A'>, 'ANY_OF': <class 'pydal.validators.ANY_OF'>, 'ASSIGNJS': <function ASSIGNJS>, 'AppConfig': <function AppConfig>, 'Auth': <class 'gluon.tools.Auth'>, 'B': <class 'gluon.html.B'>, 'BEAUTIFY': <class 'gluon.html.BEAUTIFY'>, 'BODY': <class 'gluon.html.BODY'>, 'BR': <class 'gluon.html.BR'>, 'BUTTON': <class 'gluon.html.BUTTON'>, ...} |
| itemname | 'mytest' |
| locals | {'A': <class 'gluon.html.A'>, 'ANY_OF': <class 'pydal.validators.ANY_OF'>, 'ASSIGNJS': <function ASSIGNJS>, 'AppConfig': <function AppConfig>, 'Auth': <class 'gluon.tools.Auth'>, 'B': <class 'gluon.html.B'>, 'BEAUTIFY': <class 'gluon.html.BEAUTIFY'>, 'BODY': <class 'gluon.html.BODY'>, 'BR': <class 'gluon.html.BR'>, 'BUTTON': <class 'gluon.html.BUTTON'>, ...} |
| level | -1 |
--
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+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/2d6d9fdb-50a3-480a-a4b2-8642664003b5%40googlegroups.com.
Maybe it info can help?
Frames
File C:\inetpub\wwwroot\gluon\restricted.py in restricted at line 219 код аргументы переменные
File C:\inetpub\wwwroot\applications\application\controllers\bak.py in <module> at line 2 код аргументы переменные
File C:\inetpub\wwwroot\gluon\custom_import.py in custom_importer at line 74 код аргументы переменные
Function argument list
(name='mytest', globals={'A': <class 'gluon.html.A'>, 'ANY_OF': <class 'pydal.validators.ANY_OF'>, 'ASSIGNJS': <function ASSIGNJS>, 'AppConfig': <function AppConfig>, 'Auth': <class 'gluon.tools.Auth'>, 'B': <class 'gluon.html.B'>, 'BEAUTIFY': <class 'gluon.html.BEAUTIFY'>, 'BODY': <class 'gluon.html.BODY'>, 'BR': <class 'gluon.html.BR'>, 'BUTTON': <class 'gluon.html.BUTTON'>, ...}, locals={'A': <class 'gluon.html.A'>, 'ANY_OF': <class 'pydal.validators.ANY_OF'>, 'ASSIGNJS': <function ASSIGNJS>, 'AppConfig': <function AppConfig>, 'Auth': <class 'gluon.tools.Auth'>, 'B': <class 'gluon.html.B'>, 'BEAUTIFY': <class 'gluon.html.BEAUTIFY'>, 'BODY': <class 'gluon.html.BODY'>, 'BR': <class 'gluon.html.BR'>, 'BUTTON': <class 'gluon.html.BUTTON'>, ...}, fromlist=None, level=-1)
[...]
from mymod import myfunc1, myfunc2
from applications.application.modules import mytest
import mytest