What am I doing wrong? Debian Squeeze with backports, postgresql 9.1.9-1~bpo60+1, python 2.6.6-8+b1, openerp 7.0-20130819-231103 Tried a number of different community modules including:- ;Australian and New Zealand States; Willow Australian and New Zealand Postcode Lookup ;Customize OpenERP web client. All have a number of different errors but share one:-
File "/usr/lib/python2.6/shutil.py", line 142, in copytree
os.makedirs(dst)
File "/usr/lib/python2.6/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied:
OpenERP, postgresql, and python have been re-installed on clean VMs three times, and I've attempted to reinstall the same modules, in a different order each time - with the same result. No clues in the logs. Non-community modules install without error.
I've found the same problem reported several times on the old forums and elsewhere on the intertubes. In each case no answer has been given.
Australian and New Zealand States module errors:-
Server Traceback (most recent call last):
File "/usr/lib/pymodules/python2.6/openerp/addons/web/session.py", line 89, in send
return openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/usr/lib/pymodules/python2.6/openerp/netsvc.py", line 292, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/usr/lib/pymodules/python2.6/openerp/service/web_services.py", line 626, in dispatch
res = fn(db, uid, *params)
File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 188, in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 131, in wrapper
return f(self, dbname, *args, **kwargs)
File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 197, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 185, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/usr/lib/pymodules/python2.6/openerp/addons/base/module/module.py", line 682, in install_from_urls
shutil.move(os.path.join(tmp, module_name), module_path)
File "/usr/lib/python2.6/shutil.py", line 257, in move
copytree(src, real_dst, symlinks=True)
File "/usr/lib/python2.6/shutil.py", line 142, in copytree
os.makedirs(dst)
File "/usr/lib/python2.6/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/usr/lib/pymodules/python2.6/openerp/addons/base_aus_nz_states'
That looks like a file permissions error. You don't way which module is causing that error, or what the other errors are getting .. they may relate to that error you have shown us. You'll need to further investigate what/where the particular module is trying to write to.
Thanks Ian, I'd named three of the modules in question. I've just added the full traceback for one of the modules to the parent.
Also .. where did you get Australian and New Zealand States; Willow Australian and New Zealand Postcode Lookup from? We could find those quite handy ourselves