DeprecationWarning

Asked by javedamar

hi
basically i installed a new operating system Ubuntu 9.10 then i downloaded openerp server , client and installed all it's dependencies
now i want to restore a database but when i restore a database it's gave me an error "Couldn't restore database"

and on server log it show's the following error

/home/alam/Desktop/Data/server/bin/tools/misc.py:750: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  if hasattr(e, 'message'):
/home/alam/Desktop/Data/server/bin/tools/misc.py:751: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  return ustr(e.message)

what could be the problem ?????

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo Addons (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Solved by:
javedamar
Solved:
Last query:
Last reply:
Revision history for this message
mm alam (masoom-alam) said :
#1

hi javed,

I had the same problem, however i noted down that, whenever, I install OpenERP through proper channel, that is through this script http://opensourceconsulting.wordpress.com/2009/09/15/openerp-all-in-one-installer-update-for-dummies/ it is not giving any problem, espeically in restoring the database.

However, when I just download and run OpenERP directly, this restore database problem is a common problem.

Could any body can suggest solution to this problem

Regards,

Revision history for this message
javedamar (javedamar) said :
#2

and let suppose after these messages when i connect that database it is just like fresh database installed no previous data no menu's nothing

Revision history for this message
mm alam (masoom-alam) said :
#3

Hi Every one,

No answer so far.

When I started the openerp server in the debug mode, the following error comes:

 /home/alam/openerp/server/bin/tools/misc.py(140)exec_pg_command_pipe()
-> raise Exception('Couldn\'t find %s' % name)

Also a (pdb) command prompt is given on the server command line.

Please help where is the probelm

Revision history for this message
Pierre G (pierre-gurdjian) said :
#4

I reproduce the same problem on a fresh install of ubuntu server 10.4 or after a supposed update on ubuntu desktop minimal 9.1 ( on 9.1 it was working, and after a reboot i obtained the same message)

I obtain this message when a client try to connect.
 On the ubuntu 9.1 there were database working the day before.
 On the ubuntu 10.4, it is a fresh install...

I have posted on the openerp forum... if someone post an answer there...:

http://openobject.com/forum/topic17133.html

If i don't find an answer, i think i ll have to try on an older ubuntu version;....

Good luck.

Revision history for this message
javedamar (javedamar) said :
#5

i found the problem
the problem was that when ever your python and your python dependencies are not installed properly or any package or dependency is missing it will raise such an errors

Revision history for this message
GEM (nimp3) said :
#6

problem comes from lib pyxml in :
site-packages/_xmlplus/xpath/ParsedAbbreviatedAbsoluteLocationPath.py
lines 27-28
site-packages/_xmlplus/xpath/ParsedAbbreviatedRelativeLocationPath.py
lines 31-32
"as" is a reserved keyword in python 2.6, perhaps if ou change "as" by a non reserved keyword in those files ... (delete files .pyo and pyc too)

somebody can try and give result ?

Revision history for this message
GEM (nimp3) said :
#7

new in python 2.6 :

The hasattr() function was catching and ignoring all errors, under the assumption that they meant a __getattr__() method was failing somehow and the return value of hasattr() would therefore be False. This logic shouldn’t be applied to KeyboardInterrupt and SystemExit, however; Python 2.6 will no longer discard such exceptions when hasattr() encounters them. (Fixed by Benjamin Peterson; issue 2196.)