← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 506427] Re: BaseException.message has been deprecated as of Python 2.6

 

The specific warning message in the title of this bug has been removed
in v6.0. Thanks Michael for taking the time to provide a patch for the
warning.

As for v5.0, we only apply bugfixes in stable versions, and this is not
a bugfix but an improvement, so we can't do it.


Concerning the issue with the save/restore asking for a password, this is because you have configured your Postgres database to use password protection for the user that OpenERP is using, and the dump/restore operations are performed by OpenERP by directly calling the postgres command-line tools (pg_dump/pg_restore), which thus require a password.

In that case you can add it in the $HOME/.pgpass of that user (for Unix), or in %APPDATA%\postgresql\pgpass.conf (for Windows). Alternatively you can use ident-based authentication for postgres and avoid that issue.
You will find more information about this in the postgres documentation, for example: http://www.postgresql.org/docs/8.3/static/libpq-pgpass.html

** Changed in: openobject-server
       Status: Confirmed => Fix Released

** Changed in: openobject-server
    Milestone: None => 6.0-rc2

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/506427

Title:
  BaseException.message has been deprecated as of Python 2.6

Status in OpenObject Server:
  Fix Released

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