client is crashing with the following error on ubuntu

Asked by Bushair

I have installed the Client and Server version 5.0.6 on my Ubuntu machine.
When starting the client am getting the below error

bushair@bushair:~/Downloads/OPENERP$ openerp-client
Traceback (most recent call last):
  File "./", line 135, in <module>
  File "/usr/local/lib/python2.6/dist-packages/openerp-client/modules/gui/", line 1051, in sig_login
    res =, parent=self.window)
  File "/usr/local/lib/python2.6/dist-packages/openerp-client/modules/gui/", line 538, in run
    res = self.refreshlist(None, combo_db, entry_db, label, url, but_connect)
  File "/usr/local/lib/python2.6/dist-packages/openerp-client/modules/gui/", line 494, in refreshlist
    if _refresh_dblist(db_widget, entry_db, label, butconnect, url):
  File "/usr/local/lib/python2.6/dist-packages/openerp-client/modules/gui/", line 366, in _refresh_dblist
AttributeError: 'NoneType' object has no attribute 'hide'

How to resolve this error?


Question information

English Edit question
Odoo GTK Client (MOVED TO GITHUB) Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) said :

Hello Bushair,

The latest version of tiny server and client is 5.0.7.Please use the latest code instead of 5.0.6.
I am not reproduce this error at my end.So check with new code and provide me more information or steps, If you will getting similar problem with latest code.


Revision history for this message
Bushair (bushairka) said :

thanks for the information.

I have installed the latest version of openerp server and client.
Also installed the postgres 8.4.

I could start the Post gres and open erp server witout any issue.

bushair@bushair:~/Downloads/openerp-server-5.0.7$ service openerp-server start
[2010-03-29 16:58:06,942] INFO:server:version - 5.0.7
[2010-03-29 16:58:06,942] INFO:server:addons_path - /usr/local/lib/python2.6/dist-packages/openerp-server/addons
[2010-03-29 16:58:06,942] INFO:server:database hostname - localhost
[2010-03-29 16:58:06,942] INFO:server:database port - 5432
[2010-03-29 16:58:06,942] INFO:server:database user - bushair
[2010-03-29 16:58:06,943] INFO:objects:initialising distributed objects services
[2010-03-29 16:58:07,170] INFO:web-services:starting XML-RPC services, port 8069
[2010-03-29 16:58:07,170] INFO:web-services:starting NET-RPC service, port 8070
[2010-03-29 16:58:07,171] INFO:web-services:the server is running, waiting for connections...

But when i start the openerp client ,
The GTK client is coming with the following details.

Server :socket://localhost:8070
Database :could not connect to server

Though the posgress db and openerp server is running,why am getting the
Database :could not connect to server

hot to resolve this error?
Which file i have to modify for this work?


Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) said :

Hello Bushiar,

I think you need to alter postgress user by following steps:

1.sudo su postgres <Press Enter>

2.psql <Press Enter>

3.alter user postgres password '123456'
You will get the following message after applying third step.
Alter Role.
Hope this will help you.


Revision history for this message
Bushair (bushairka) said :

Thanks for the information.

I executed the above 3 steps.

But i didnt get the Alter Role message after the 3 step.

i just got the prompt

postgres=# alter user postgres password '123456'

Also when i tried to login again as
sudo su postgres

it is asking password for postgress ,but when i entered 123456 , it is saying password wrong

postgres@bushair:/etc/init.d$ sudo su postgres
[sudo] password for postgres:
Sorry, try again.

How to reset the password for user postgres ?


Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) said :

Hello Bushair,

It is only example. You need to use the password from which you login in your system.


Can you help with this problem?

Provide an answer of your own, or ask Bushair for more information if necessary.

To post a message you must log in.