client is crashing with the following error on ubuntu

Asked by Bushair on 2010-03-27

Hi,
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 "./openerp-client.py", line 135, in <module>
    win.sig_login()
  File "/usr/local/lib/python2.6/dist-packages/openerp-client/modules/gui/main.py", line 1051, in sig_login
    res = l.run(dbname=dbname, parent=self.window)
  File "/usr/local/lib/python2.6/dist-packages/openerp-client/modules/gui/main.py", 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/main.py", 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/main.py", line 366, in _refresh_dblist
    entry_db.hide()
AttributeError: 'NoneType' object has no attribute 'hide'

How to resolve this error?

thanks

Question information

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

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.

Thanks.

Revision history for this message
Bushair (bushairka) said :
#2

Hi,
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?

Thanks

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

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.

Thanks.

Revision history for this message
Bushair (bushairka) said :
#4

Hi
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'
postgres-#

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 ?

Thanks

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

Hello Bushair,

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

Thanks.

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.