[web2py] Re: I can not import module in app

2019-06-07 Thread Константин Комков
P.S. If you delete comment from default.py controller you can see that app don't work becouse dont have that module. > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Repo

[web2py] Re: I can not import module in app

2019-06-06 Thread Константин Комков
It's my minimal app - https://drive.google.com/open?id=1db5yxx03Deg4T7YCu813HZWFCarChfQ6 -- 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 thi

[web2py] Re: I can not import module in app

2019-05-31 Thread Dave S
On Friday, May 31, 2019 at 5:10:23 AM UTC-7, Константин Комков wrote: > > *Dave S*, today I rename my app from "application" to "statement". After > that in browser I saw: > invalid function (default/statement). After that I restart server and > "statement" start working. Then I tried to import

[web2py] Re: I can not import module in app

2019-05-31 Thread Константин Комков
*Dave S*, today I rename my app from "application" to "statement". After that in browser I saw: invalid function (default/statement). After that I restart server and "statement" start working. Then I tried to import my module, but have error again: import mytest >>>No module named statement.mod

[web2py] Re: I can not import module in app

2019-05-26 Thread Константин Комков
*Dave S*, it is as variant, but I think that if I change app name maybe somthing will broken. And links too. *Val K*, I have two controller for enrants bachelor degree and magistracy. That controllers have many identical code and functions. I think it is not so good transfer part of app to anoth

[web2py] Re: I can not import module in app

2019-05-26 Thread Val K
There is 'site-packages' folder, modules that is placed in this folder can be imported in any application just as 'import foo' I think using this folder is better than importing across applications -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/w

[web2py] Re: I can not import module in app

2019-05-24 Thread Dave S
On Thursday, May 23, 2019 at 11:44:19 PM UTC-7, Константин Комков wrote: > > Christian Varas, I don't find solution. > Dave S, yes I tried import mytest like one line without system modules, > and like that: > from applications.application.modules import mytest > Is "mymod" your app name? > > No

[web2py] Re: I can not import module in app

2019-05-23 Thread Константин Комков
from applications.application.modules import mytest >>>No module named application.modules from applications.application import mytest >>>No module named application from applications import mytest >>>cannot import name mytest My modul pass: C:\inetpub\wwwroot\applications\application\modules\mytes

[web2py] Re: I can not import module in app

2019-05-23 Thread Константин Комков
Christian Varas, I don't find solution. Dave S, yes I tried import mytest like one line without system modules, and like that: from applications.application.modules import mytest Is "mymod" your app name? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.

[web2py] Re: I can not import module in app

2019-05-23 Thread Dave S
On Thursday, May 23, 2019 at 4:03:05 AM UTC-7, Константин Комков wrote: > > Maybe it info can help? > Error snapshot [image: help] > > > (No module named application.modules)

Re: [web2py] Re: I can not import module in app

2019-05-23 Thread Christian Varas
I'm facing the same issue, did you already found the solution? Btw, I'm running web2py in my android phone, maybe for me is quite different... Cheers. Chris. El jue., 23 de may. de 2019 07:03, Константин Комков escribió: > Maybe it info can help? > Error snapshot [image: help] >

[web2py] Re: I can not import module in app

2019-05-23 Thread Константин Комков
Maybe it info can help? Error snapshot [image: help] (No module named application.modules) inspect attributes Frames - *File C:\inetpub\wwwroot\gluon\restricte

Re: [web2py] Re: I can not import module in app

2019-05-20 Thread Dave S
On Saturday, May 18, 2019 at 7:05:07 AM UTC-7, Константин Комков wrote: > > Yes it have, but that file is empty > > Empty is ok, but the file is required. /dps > сб, 18 мая 2019 г., 3:38 Dave S >: > >> >> >> On Friday, May 17, 2019 at 2:49:45 PM UTC-7, Константин Комков wrote: >>> >>> Check l

Re: [web2py] Re: I can not import module in app

2019-05-18 Thread Константин Комков
Yes it have, but that file is empty сб, 18 мая 2019 г., 3:38 Dave S : > > > On Friday, May 17, 2019 at 2:49:45 PM UTC-7, Константин Комков wrote: >> >> Check line 8 in error, it already contain import mytest, in another >> project i can import that module. >> > > The working application has a mod

Re: [web2py] Re: I can not import module in app

2019-05-17 Thread Dave S
On Friday, May 17, 2019 at 2:49:45 PM UTC-7, Константин Комков wrote: > > Check line 8 in error, it already contain import mytest, in another > project i can import that module. > The working application has a modules/_init__.py file; does the excepting app have that? /dps > пт, 17 мая 20

Re: [web2py] Re: I can not import module in app

2019-05-17 Thread Константин Комков
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 : > Inside the application which has the module in its modules folder all you > need is "import mytest" > > -- > Resources: > - http://web2py.com > - http:

[web2py] Re: I can not import module in app

2019-05-17 Thread Leonel Câmara
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 rec