ImportError('No module named mdplenus.modules.test',)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+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/ba92fb90-96da-48a1-8130-b12a0256bb84o%40googlegroups.com.
if all is ok, restart web2py
Em dom., 14 de jun. de 2020 às 00:35, patito feo <xgp....@gmail.com> 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 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/64e635de-af0b-4184-8ae5-d887eb52e346o%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/64e635de-af0b-4184-8ae5-d887eb52e346o%40googlegroups.com.
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.
Hi,
__init__.py file in ./modulesmoduloname.py file in ./modulesBut 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',
Hi,Im replicating the example from the book for better testing:./modules/mytest.pyfrom gluon import current
def ip():
return current.request.client./controllers/test.pyfrom applications.mdplenus.modules.mytest import ip
def index():
return "Your ip is " + mytest.ip()* Same error: ImportError('No module named apptest.modules.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 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.
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.
To unsubscribe from this group and stop receiving emails from it, send an email to web...@googlegroups.com.