I have face this problem with latest trunk.
I agree with Michael ( Need to import os,base64) Before use it.
Traceback (most recent call last):
File "/home/jir/workspace/Test/Workspace/Trun/server/trunk/openerp/netsvc.py", line 236, in dispatch_rpc
result = dispatch(method, params)
File "/home/jir/workspace/Test/Workspace/Trun/server/trunk/openerp/service/db.py", line 77, in dispatch
return fn(*params)
File "/home/jir/workspace/Test/Workspace/Trun/server/trunk/openerp/service/db.py", line 216, in exp_dump
with _set_pg_password_in_environment():
File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
return self.gen.next()
File "/home/jir/workspace/Test/Workspace/Trun/server/trunk/openerp/service/db.py", line 205, in _set_pg_password_in_environment
if os.name != 'nt' or os.environ.get('PGPASSWORD'):
NameError: global name 'os' is not defined
Hello ,
I have face this problem with latest trunk.
I agree with Michael ( Need to import os,base64) Before use it.
Traceback (most recent call last): jir/workspace/ Test/Workspace/ Trun/server/ trunk/openerp/ netsvc. py", line 236, in dispatch_rpc jir/workspace/ Test/Workspace/ Trun/server/ trunk/openerp/ service/ db.py", line 77, in dispatch jir/workspace/ Test/Workspace/ Trun/server/ trunk/openerp/ service/ db.py", line 216, in exp_dump password_ in_environment( ): python2. 7/contextlib. py", line 17, in __enter__ jir/workspace/ Test/Workspace/ Trun/server/ trunk/openerp/ service/ db.py", line 205, in _set_pg_ password_ in_environment get('PGPASSWORD '):
File "/home/
result = dispatch(method, params)
File "/home/
return fn(*params)
File "/home/
with _set_pg_
File "/usr/lib/
return self.gen.next()
File "/home/
if os.name != 'nt' or os.environ.
NameError: global name 'os' is not defined
With Revision :
web = 3702
addons = 8630
server = 4826
THANKS.