Comment 3 for bug 531676

Revision history for this message
Mark Guthart (mguthart) wrote : Re: [Bug 531676] Re: 5.0.7 client fails to launch - AttributeError: NoneType

Hey Jay. Wanted to give you an update.

I downloaded/installed the bazaar files with initially the same results. Not having any success with that route, I decided to reduce the possible variables in the equation. I first 'uninstalled' the client package using Xubuntu's Add/Remove Software Packages utility. I then removed the openerp-client file in the /usr/local/bin directory, and removed both the openerp_client-5.0.7.egg-info file and the openerp-client directory located at /usr/local/lib/python2.6/dist-packages. I figured this would basically get me back to where nothing was "installed".

I then proceeded to do an install with the bazaar files. The installation appeared to work fine, except when I then went to run the client (by invoking openerp-client from the command line), I got the following error messages:

CRITICAL:init:Failed to open file 'openerp-icon.png': No such file or directory
CRITICAL:init:Ensure that the file /home/mguthart/.openerprc is correct

I thought hmmm...well, okay.

So I then went straight to the bin directory itself and tried running the client directly (sudo python openerp-client.py). Running the client this way works just fine - which is nice to know because at least I know that it can work and that I may have overcome the initial problem I was having.

So my next question - any suggestions on overcoming the two CRITICAL errors so I can run it 'normally'?

(And whether this is still considered a "bug", or whether this is getting more into general support I don't know. If nothing else hopefully it helps identify what's going on).

Thanks again for all your help!

Mark

On Mar 4, 2010, at 1:26 AM, Jay (Open ERP) wrote:

> Hi Mark,
>
> It would pretty helpful to you if you can trace the value of entry_db.
>
> Latest code is the code from Launchpad, but the Downloads section of
> OpenERP Website contains the same currently.
>
> Make sure you have the same code as this :
> http://bazaar.launchpad.net/~openerp/openobject-client/5.0/files.
>
> Hope this helps.
>
> Queries Invited.
>
> Thanks.
>
> --
> 5.0.7 client fails to launch - AttributeError: NoneType
> https://bugs.launchpad.net/bugs/531676
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in OpenObject GTK Client: Invalid
>
> Bug description:
> Brand new machine running Xubuntu 9.10 (basically Ubuntu 9.10). Installed the 5.0.3 client from X/Ubuntu's the software repositories, ran it, connected to a database, made sure it worked, etc. No problems at all.
>
> Downloaded and installed 5.0.7 client. Now the client won't launch. It flashes the initial window briefly then disappears. Trying to run it from the command line generates the following:
>
> 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 380, in _refresh_dblist
> entry_db.hide()
> AttributeError: 'NoneType' object has no attribute 'hide'
>
> Not sure if this is an issue with having 5.0.3 loaded first, then trying to install/run 5.0.7...or if this is simply a 5.0.7 issue. Have Python 2.6.4 installed if that's worth noting.
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/openobject-client/+bug/531676/+subscribe