c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #00515
[Bug 506427] Re: BaseException.message has been deprecated as of Python 2.6
One of the things this bug report shows is that people are being misled
by this warning. They think that this warning is the cause of the
error, when it is not. The fix seems to be an easy one: reverse the
order of the the hasattr() calls in tools/misc.py. This way python >=
2.6 will never hit the deprecated check for the 'message' attribute.
Patch attached.
** Attachment added: "BaseException.message_deprecated_warning.patch.txt"
https://bugs.launchpad.net/openobject-server/+bug/506427/+attachment/1701144/+files/BaseException.message_deprecated_warning.patch.txt
--
BaseException.message has been deprecated as of Python 2.6
https://bugs.launchpad.net/bugs/506427
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP OpenObject.
Status in OpenObject Server: Confirmed
Bug description:
I am trying to backup my OpenERP database using "Databases" - "Backup" buttons on OpenERP web client.
I got the following error message on a server linux console
casufi@forth-server:~/projects/openobject-server$ python ./bin/openerp-server.py
[2010-01-12 15:59:03,556] INFO:server:version - 5.0.7
[2010-01-12 15:59:03,560] INFO:server:addons_path - /home/casufi/projects/openobject-server/bin/addons
[2010-01-12 15:59:03,561] INFO:server:database hostname - 127.0.0.1
[2010-01-12 15:59:03,562] INFO:server:database port - 5432
[2010-01-12 15:59:03,563] INFO:server:database user - openerp
[2010-01-12 15:59:03,574] INFO:objects:initialising distributed objects services
[2010-01-12 15:59:03,780] INFO:web-services:starting XML-RPC services, port 8069
[2010-01-12 15:59:03,782] INFO:web-services:starting NET-RPC service, port 8070
[2010-01-12 15:59:03,782] INFO:web-services:the server is running, waiting for connections...
DeprecationWarning: BaseException.message has been deprecated as of Python 2.6/home/casufi/projects/openobject-server/bin/tools/misc.py:145: DeprecationWarning: os.popen2 is deprecated. Use the subprocess module.
return os.popen2(cmd, 'b')
Password:
[2010-01-12 16:02:08,006] INFO:web-services:DUMP DB: demo