python - OpenERP sever error when installing a new module (windows 7 ) -


i got problem after creating new module in openerp 7.0 using windows 7 .. when go install new module error "openerp server error"

openerp server error client traceback (most recent call last):  file "c:\program files (x86)\openerp 7.0-20140227-01259\server\server\openerp\addons\web\session.py", line 89,      in send file "c:\program files (x86)\openerp 7.0-20140227-001259\server\server\.\openerp\netsvc.py", line 292,      in dispatch_rpc file "c:\program files (x86)\openerp 7.0-20140227-001259\server\server\openerp\addons\student_init_.py", line 1,      in <module> importerror: no module named py 

i suspect doing;

import my_module.py 

rather than

import my_module 

as in java, python using dots break package names thinks want import module called "py" package called "my_module". think of

from my_module import py 

whereas should (assuming problem)

import my_module 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -