Re: [web2py] No module named error

2020-09-06 Thread xgp.l...@gmail.com
Its correct. Module its now working. Thanks sr. El Sunday, September 6, 2020 a la(s) 2:19:14 PM UTC-5, ermolaev...@gmail.com escribió: > need __init__.py in main folder of application too! > > четверг, 23 июля 2020 г. в 04:35:25 UTC+3, snide...@gmail.com: > >> >> >> On Tuesday, July 21, 2020 at

Re: [web2py] No module named error

2020-09-06 Thread Dmitrii Ermolaev
need __init__.py in main folder of application too! четверг, 23 июля 2020 г. в 04:35:25 UTC+3, snide...@gmail.com: > > > On Tuesday, July 21, 2020 at 11:41:43 PM UTC-7, AGRogers wrote: >> >> I think I'm on the latest versions of web2py and python. And i have >> problems getting modules to recom

Re: [web2py] No module named error

2020-07-22 Thread Dave S
On Tuesday, July 21, 2020 at 11:41:43 PM UTC-7, AGRogers wrote: > > I think I'm on the latest versions of web2py and python. And i have > problems getting modules to recompile (not sure how related that is to this > topic). I gave up and just put all my modules in the Models folder. That > alw

Re: [web2py] No module named error

2020-07-22 Thread xgp.l...@gmail.com
Hi, Im using : 2.19.1-stable+timestamp.2020.03.21.21.49.28 Maybe importing modules is broken? Cheers, El Wednesday, July 22, 2020 a la(s) 1:41:43 AM UTC-5, roge...@gmail.com escribió: > I think I'm on the latest versions of web2py and python. And i have > problems getting modules to recomp

Re: [web2py] No module named error

2020-07-21 Thread AGRogers
I think I'm on the latest versions of web2py and python. And i have problems getting modules to recompile (not sure how related that is to this topic). I gave up and just put all my modules in the Models folder. That always works for me. I'm going to need to sort that out though at some point. But

Re: [web2py] No module named error

2020-07-21 Thread Dave S
On Saturday, July 18, 2020 at 2:15:13 PM UTC-7, xgp.l...@gmail.com wrote: > > Hi, > > Im replicating the example from the book for better testing: > > ./modules/mytest.py > > from gluon import current > > def ip(): > return current.request.client > > ./controllers/test.py > > from applications.

Re: [web2py] No module named error

2020-07-18 Thread xgp.l...@gmail.com
Hi, Im replicating the example from the book for better testing: ./modules/mytest.py from gluon import current def ip(): return current.request.client ./controllers/test.py from applications.mdplenus.modules.mytest import ip def index(): return "Your ip is " + mytest.ip() * Same erro

Re: [web2py] No module named error

2020-07-18 Thread Dave S
On Friday, July 17, 2020 at 3:21:27 PM UTC-7, patito feo wrote: > > Hi, > > > __init__.py file in ./modules > moduloname.py file in ./modules > > But the module still not loade. An error is pop in the web-ide. > > [...] >>> failed to reload module because: >>> >>> ImportError('No mod

Re: [web2py] No module named error

2020-07-17 Thread patito feo
Hi, __init__.py file in ./modules moduloname.py file in ./modules But the module still not loade. An error is pop in the web-ide. Thanks, El lunes, 22 de junio de 2020, 14:33:28 (UTC-5), Dave S escribió: > > > > On Monday, June 22, 2020 at 5:13:46 AM UTC-7, patito feo wrote: >> >> Hi, >>

Re: [web2py] No module named error

2020-06-22 Thread Dave S
On Monday, June 22, 2020 at 5:13:46 AM UTC-7, patito feo wrote: > > Hi, > > I have done every recommended guide iv seen. Same error. > > Every time i saved the .py module file same message shows on top of the > editor. > > That's the editor/IDE shipped with web2py? (When you save a file, it t

Re: [web2py] No module named error

2020-06-22 Thread patito feo
Hi, I have done every recommended guide iv seen. Same error. Every time i saved the .py module file same message shows on top of the editor. Thanks in advance, El domingo, 21 de junio de 2020, 11:46:39 (UTC-5), Ramos escribió: > > check here > https://stackoverflow.com/questions/4657484/how

Re: [web2py] No module named error

2020-06-21 Thread António Ramos
check here https://stackoverflow.com/questions/4657484/how-can-i-use-modules-in-web2py Em sáb., 20 de jun. de 2020 às 21:14, patito feo escreveu: > Hi, > > Please define "all ok" > > __init__.py file in /modules > .py file in /modules > > > Thnx for your help! > > > > > El sábado, 13 de junio

Re: [web2py] No module named error

2020-06-20 Thread patito feo
Hi, Please define "all ok" __init__.py file in /modules .py file in /modules Thnx for your help! El sábado, 13 de junio de 2020, 18:45:39 (UTC-5), Ramos escribió: > > if all is ok, restart web2py > > Em dom., 14 de jun. de 2020 às 00:35, patito feo > escreveu: > >> Hi, >> >> Im trying to u

Re: [web2py] No module named error

2020-06-13 Thread António Ramos
if all is ok, restart web2py Em dom., 14 de jun. de 2020 às 00:35, patito feo escreveu: > Hi, > > Im trying to use a module file inside /modules/ folder but keep getting > this error. > > > failed to reload module because: > > ImportError('No module named mdplenus.modules.test',) > > -- > Resour

[web2py] No module named error

2020-06-13 Thread patito feo
Hi, Im trying to use a module file inside /modules/ folder but keep getting this error. failed to reload module because: ImportError('No module named mdplenus.modules.test',) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source