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 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 
>>> always works for me. I'm going to need to sort that out though at some 
>>> point.  But to be clear, i am not saying there is anything wrong with 
>>> web2py. My general knowledge is scant so it could well be me doing 
>>> something wrong.
>>>
>>>
>> There's a performance impact of putting more files in the Models folder.
>>
>> /dps
>>  
>>
>>> On Wed, 22 Jul 2020 at 16:28, Dave S  wrote:
>>>
>>

 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.mdplenus.modules.mytest import ip
>

 I have a function restuff() in  dot/modules/restuff.py

 I use "import restuff"

 I admit that for those files  I'm on python 2.7.something and several 
 bumps back  on web2py versions (I've tried newer ones, just haven't needed 
 to go all in for them yet).  So it's possible that something changed that 
 broke things, but I expect the regression tests Massimo has would have 
 caught it.

 web2py, unlike the newer py4web, uses a custom importer.


> def index():
> return "Your ip is " + mytest.ip()
>
>
> * Same error: ImportError('No module named apptest.modules.mytest',)
>
>
 /dps
  

 -- 
 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 web...@googlegroups.com.
>>>
>>>
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/web2py/c1e19587-9ad9-40d0-9718-fb7200da3f64o%40googlegroups.com
  
 
 .

>>>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/805155e0-2798-4a0c-bab3-e2554f79c3ean%40googlegroups.com.


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 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 to be clear, i am not saying there is anything wrong with 
>> web2py. My general knowledge is scant so it could well be me doing 
>> something wrong.
>>
>>
> There's a performance impact of putting more files in the Models folder.
>
> /dps
>  
>
>> On Wed, 22 Jul 2020 at 16:28, Dave S  wrote:
>>
>
>>>
>>> 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.mdplenus.modules.mytest import ip

>>>
>>> I have a function restuff() in  dot/modules/restuff.py
>>>
>>> I use "import restuff"
>>>
>>> I admit that for those files  I'm on python 2.7.something and several 
>>> bumps back  on web2py versions (I've tried newer ones, just haven't needed 
>>> to go all in for them yet).  So it's possible that something changed that 
>>> broke things, but I expect the regression tests Massimo has would have 
>>> caught it.
>>>
>>> web2py, unlike the newer py4web, uses a custom importer.
>>>
>>>
 def index():
 return "Your ip is " + mytest.ip()


 * Same error: ImportError('No module named apptest.modules.mytest',)


>>> /dps
>>>  
>>>
>>> -- 
>>> 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 web...@googlegroups.com.
>>
>>
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/web2py/c1e19587-9ad9-40d0-9718-fb7200da3f64o%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/9dbbaf75-7e8c-4277-a4b3-bb8550e1a1ccn%40googlegroups.com.


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 
> always works for me. I'm going to need to sort that out though at some 
> point.  But to be clear, i am not saying there is anything wrong with 
> web2py. My general knowledge is scant so it could well be me doing 
> something wrong.
>
>
There's a performance impact of putting more files in the Models folder.

/dps
 

> On Wed, 22 Jul 2020 at 16:28, Dave S > 
> wrote:
>
>>
>>
>> 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.mdplenus.modules.mytest import ip
>>>
>>
>> I have a function restuff() in  dot/modules/restuff.py
>>
>> I use "import restuff"
>>
>> I admit that for those files  I'm on python 2.7.something and several 
>> bumps back  on web2py versions (I've tried newer ones, just haven't needed 
>> to go all in for them yet).  So it's possible that something changed that 
>> broke things, but I expect the regression tests Massimo has would have 
>> caught it.
>>
>> web2py, unlike the newer py4web, uses a custom importer.
>>
>>
>>> def index():
>>> return "Your ip is " + mytest.ip()
>>>
>>>
>>> * Same error: ImportError('No module named apptest.modules.mytest',)
>>>
>>>
>> /dps
>>  
>>
>> -- 
>> 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 web...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/web2py/c1e19587-9ad9-40d0-9718-fb7200da3f64o%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/acb8357a-f9a3-4ade-82d7-36fe5f6e9da1o%40googlegroups.com.


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 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 to be clear, i am not saying there is anything wrong with 
> web2py. My general knowledge is scant so it could well be me doing 
> something wrong.
>
> On Wed, 22 Jul 2020 at 16:28, Dave S  wrote:
>
>>
>>
>> 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.mdplenus.modules.mytest import ip
>>>
>>
>> I have a function restuff() in  dot/modules/restuff.py
>>
>> I use "import restuff"
>>
>> I admit that for those files  I'm on python 2.7.something and several 
>> bumps back  on web2py versions (I've tried newer ones, just haven't needed 
>> to go all in for them yet).  So it's possible that something changed that 
>> broke things, but I expect the regression tests Massimo has would have 
>> caught it.
>>
>> web2py, unlike the newer py4web, uses a custom importer.
>>
>>
>>> def index():
>>> return "Your ip is " + mytest.ip()
>>>
>>>
>>> * Same error: ImportError('No module named apptest.modules.mytest',)
>>>
>>>
>> /dps
>>  
>>
>> -- 
>>
> 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/c1e19587-9ad9-40d0-9718-fb7200da3f64o%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/c787593d-1e9b-4c30-a12a-65251bbda1c2n%40googlegroups.com.


Re: [web2py] No module named error

2020-07-22 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 to be clear, i am not saying there is anything wrong with
web2py. My general knowledge is scant so it could well be me doing
something wrong.

On Wed, 22 Jul 2020 at 16:28, Dave S  wrote:

>
>
> 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.mdplenus.modules.mytest import ip
>>
>
> I have a function restuff() in  dot/modules/restuff.py
>
> I use "import restuff"
>
> I admit that for those files  I'm on python 2.7.something and several
> bumps back  on web2py versions (I've tried newer ones, just haven't needed
> to go all in for them yet).  So it's possible that something changed that
> broke things, but I expect the regression tests Massimo has would have
> caught it.
>
> web2py, unlike the newer py4web, uses a custom importer.
>
>
>> def index():
>> return "Your ip is " + mytest.ip()
>>
>>
>> * Same error: ImportError('No module named apptest.modules.mytest',)
>>
>>
> /dps
>
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/web2py/c1e19587-9ad9-40d0-9718-fb7200da3f64o%40googlegroups.com
> 
> .
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CACWMBMNUEOGXV8DYtRbB%2BQeFU8kjxRTjcuMTxc-azDsFEA2ccQ%40mail.gmail.com.


Re: [web2py] No module named error

2020-07-22 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.mdplenus.modules.mytest import ip
>

I have a function restuff() in  dot/modules/restuff.py

I use "import restuff"

I admit that for those files  I'm on python 2.7.something and several bumps 
back  on web2py versions (I've tried newer ones, just haven't needed to go 
all in for them yet).  So it's possible that something changed that broke 
things, but I expect the regression tests Massimo has would have caught it.

web2py, unlike the newer py4web, uses a custom importer.


> def index():
> return "Your ip is " + mytest.ip()
>
>
> * Same error: ImportError('No module named apptest.modules.mytest',)
>
>
/dps
 

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/c1e19587-9ad9-40d0-9718-fb7200da3f64o%40googlegroups.com.


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 error: ImportError('No module named apptest.modules.mytest',)


__
Thanks in advance,
El Saturday, July 18, 2020 a la(s) 3:20:28 PM UTC-5, snide...@gmail.com 
escribió:

>
>
> 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 module named mdplenus.modules.test',


> Is "mdplenus.py" in ./modules?  The name has to match.  Is "test" the name 
> of your application?
>
> /dps
>  
>  
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/a9c90319-850f-4e31-bba4-48ac3dee4149n%40googlegroups.com.


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 module named mdplenus.modules.test',
>>>
>>>
Is "mdplenus.py" in ./modules?  The name has to match.  Is "test" the name 
of your application?

/dps
 
 

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/07fd7b8a-91ea-4a5e-8681-67862c3e54e6o%40googlegroups.com.


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,
>>
>> 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 
> tries to load the file to check for syntax errors)
>
> Below you refer to "/modules".  Please clarify if you mean "*.*/modules" 
> relative 
> to the application directory, or some other location.
>
> In the IDE, a file in "*.*/modules" would show up under "Modules" in the 
> files sidebar.
>
> /dps
>
>
>
>> 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-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 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 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 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 web...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/web2py/ba92fb90-96da-48a1-8130-b12a0256bb84o%40googlegroups.com
>>  
>> 
>> .
>>
> -- 
 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 web...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/web2py/64e635de-af0b-4184-8ae5-d887eb52e346o%40googlegroups.com
  
 
 .

>>>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/a5927d67-e331-4700-8c38-905c8430f5a2o%40googlegroups.com.


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 tries 
to load the file to check for syntax errors)

Below you refer to "/modules".  Please clarify if you mean "*.*/modules" 
relative 
to the application directory, or some other location.

In the IDE, a file in "*.*/modules" would show up under "Modules" in the 
files sidebar.

/dps



> 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-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 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 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 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 web...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/web2py/ba92fb90-96da-48a1-8130-b12a0256bb84o%40googlegroups.com
>  
> 
> .
>
 -- 
>>> 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 web...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/web2py/64e635de-af0b-4184-8ae5-d887eb52e346o%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/a39f2b7b-062d-4961-9da5-361aafcd283fo%40googlegroups.com.


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-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 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 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 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 web...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/web2py/ba92fb90-96da-48a1-8130-b12a0256bb84o%40googlegroups.com
  
 
 .

>>> -- 
>> 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 web...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/web2py/64e635de-af0b-4184-8ae5-d887eb52e346o%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/f2a7c9f8-690d-4754-b4b5-b4dad6d8df22o%40googlegroups.com.


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 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 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 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 web...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/web2py/ba92fb90-96da-48a1-8130-b12a0256bb84o%40googlegroups.com
>>> 
>>> .
>>>
>> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/web2py/64e635de-af0b-4184-8ae5-d887eb52e346o%40googlegroups.com
> 
> .
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CAEM0BxM%2By-iD34AE6Lbo3t3qLok_Sj28qjVQKysDA3Uxi46dDg%40mail.gmail.com.


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 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 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 web...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/web2py/ba92fb90-96da-48a1-8130-b12a0256bb84o%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/64e635de-af0b-4184-8ae5-d887eb52e346o%40googlegroups.com.


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',)
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/web2py/ba92fb90-96da-48a1-8130-b12a0256bb84o%40googlegroups.com
> 
> .
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CAEM0BxMSw8NOVhSREc8mF8QK3Ph%3D2Cr-C%2BN%2BbjSq8Eoa0G9i8w%40mail.gmail.com.


[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 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/ba92fb90-96da-48a1-8130-b12a0256bb84o%40googlegroups.com.