i placed a new module file in the modules folder but i got the error saying there is no module named in the modules folder when i import the module. However, i can import the other modules in the modules folder but not the new one.Please help
Hi Davei restarted the web2py, reloaded the adminpage but i still got the error saying no module named in the modules folder. i have no problem with the other modules except the new one named mode_extraction. Also, i checked my modules folder, web2py actually compiles the mode_extraction module because i saw the pyc file but i dont know why i got the error of no module named in the folder.Thanks
Hi Johnathan, thanks for your suggestion. it's really helpful
it turns out that the import psycopg2 in my module caused the problem. it i take out the import psycopg2, the import module works fine. However, i need to import psycopg2 to connect postgres database. how can i fix this situation ?Please help thanks
db1 = DAL(myconf.take('db1.uri'), ....)
db2 = DAL(myconf.take('db2.uri'), ....)
Hi Johnathan, thanks for your suggestion. it's really helpful
it turns out that the import psycopg2 in my module caused the problem. it i tool the import psycopg2, the import works fine. However, i need to import psycopg2 to connect postgres database. how can i fix this situation ?
--
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/7D53le8swWE/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/e32f82db-78b0-4b67-b005-c4e8007bb36c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.