With Ubuntu Karmic: pixmaps location,RC files get wrong location!

Bug #484657 reported by Tanel Kurvits
68
This bug affects 9 people
Affects Status Importance Assigned to Milestone
Odoo GTK Client (MOVED TO GITHUB)
Fix Committed
Low
Stephane Wirtel (OpenERP)
Odoo Server (MOVED TO GITHUB)
Fix Committed
Low
Stephane Wirtel (OpenERP)

Bug Description

Kubuntu 9.10

1. We try start it.
./openerp-client

2. We get error:

:/usr/share/openerp-client# ./openerp-client
CRITICAL:init:Failed to open file 'openerp-icon.png': No such file or directory
CRITICAL:init:Ensure that the file /root/.openerprc is correct

3. Ok we look what is in /root/.openerprc

pixmaps = /usr/share/pixmaps/openerp-client

4. Lets search where that png is OUCH!
/usr/local/share/pixmaps/openerp-client

5. Ok not big deal but OPEN ERP highest priority is bug-free stable releases then its already big deal.

affects: openobject-client-kde → openobject-client
Revision history for this message
Inaki Fernandez - OpenERPappliance.com (inaki.fernandez) wrote :

I Have the same problem on Ubuntu 9.10. My workaround:

Replace in $HOME/.openerprc

FROM:
pixmaps = /usr/share/pixmaps/openerp-client
share = /usr/share/openerp-client

TO
pixmaps = /usr/local/share/pixmaps/openerp-client
share = /usr/local/share/openerp-client

description: updated
Changed in openobject-client:
milestone: none → 5.0.8
importance: Undecided → Low
Changed in openobject-client:
assignee: nobody → ame (Tiny) (ame-tiny)
assignee: ame (Tiny) (ame-tiny) → hda (OpenERP) (hda-tinyerp)
Revision history for this message
Tanel Kurvits (tanel-kurvits) wrote :

Also affects v 5.07
Dist= Karmic (ubuntu9.10)

(openerp-client.py:1952): libglade-WARNING **: Error loading image: Tõrge faili '/usr/local/share/openerp-client/pixmaps/openerp_logo.png' avamisel: No such file or directory

And openerp_logo.png location is:
/usr/local/share/pixmaps/openerp-client/openerp_logo.png

My question is What distro using developers when they not see so simple errors? Or they not care?

Revision history for this message
Tanel Kurvits (tanel-kurvits) wrote :

My workaround:

run script (its not correct way fix that bug but works):

#!/bin/sh
#

mkdir /usr/local/share/openerp-client/pixmaps

ln -s /usr/local/share/pixmaps/openerp-client/openerp_logo.png /usr/local/share/openerp-client/pixmaps/

Changed in openobject-client:
milestone: 5.0.8 → 5.0.9
Changed in openobject-client:
milestone: 5.0.9 → 5.0.10
summary: - 5.0.6 pixmaps location wrong in same cases
+ 5.0.6 pixmaps location,RC file location wrong in same cases
summary: - 5.0.6 pixmaps location,RC file location wrong in same cases
+ With Ubuntu Karmic: pixmaps location,RC files get wrong location!
Changed in openobject-client:
milestone: 5.0.10 → 5.0.11
Changed in openobject-client:
milestone: 5.0.11 → 5.0.12
Revision history for this message
hsm flxCore (hannes-smit) wrote :

After installing openerp-client 5.0.11 on Lucid Lynx I have to same problem. The workaround worked fine for me, but I guess that it is still an issue in the most recent version of the client.

Revision history for this message
Tanel Kurvits (tanel-kurvits) wrote :

Yes i think that is true. My problem is i to not understand Python language and can not make correct fix. I founded lot stupid bugs in OpenErp and fixed them with sell scripts. To me is hard to understand why OpenERP team is so passive to fix easy bugs like that! Most an owing is they even no fix them if i show how fix them.
Ok where is the problem! Is so hard build script what detecting distribution and puts files in right place in installation time!? Using simple shell script its easy to make and takes max five minit! Haw hard is to that with Python?
I think OpenERP team simple not cares... That is weakest part whole OpenERP project.

Revision history for this message
Jan Verlaan (jan-verlaan) wrote :

It is not only GTK-client, but also webclient.....
See also https://bugs.launchpad.net/openobject-server/+bug/603028

Revision history for this message
Richard (John) Nopkins@Servosoft (richard-nopkins) wrote :

I agree.

Changed in openobject-client:
milestone: 5.0.12 → none
status: New → Confirmed
Changed in openobject-server:
status: New → Confirmed
importance: Undecided → Low
Changed in openobject-client:
assignee: hda (OpenERP) (hda-tinyerp) → OpenERP's Framework R&D (openerp-dev-framework)
assignee: OpenERP's Framework R&D (openerp-dev-framework) → OpenERP sa GTK client R&D (openerp-dev-gtk)
Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

Reassigning to Stephane, he worked a lot on the packaging and setup.py scripts, it may be fixed already or may soon be

Changed in openobject-client:
assignee: OpenERP sa GTK client R&D (openerp-dev-gtk) → Stephane Wirtel (OpenERP) (stephane-openerp)
Changed in openobject-server:
assignee: OpenERP's Framework R&D (openerp-dev-framework) → Stephane Wirtel (OpenERP) (stephane-openerp)
Revision history for this message
Tanel Kurvits (tanel-kurvits) wrote :

Noup it is NOT fixed!
Client 5.0.15
Ubuntu 10.10

Notice Trunk 6.0 RC2 seems have same type bug!!!

Traceback (most recent call last):
  File "./openerp-client.py", line 103, in <module>
    import modules
  File "/usr/local/lib/python2.6/dist-packages/openerp_client-6.0.0_rc2-py2.6.egg/openerp-client/modules/__init__.py", line 24, in <module>
    import action
  File "/usr/local/lib/python2.6/dist-packages/openerp_client-6.0.0_rc2-py2.6.egg/openerp-client/modules/action/__init__.py", line 22, in <module>
    import main
  File "/usr/local/lib/python2.6/dist-packages/openerp_client-6.0.0_rc2-py2.6.egg/openerp-client/modules/action/main.py", line 34, in <module>
    from widget.view.form_gtk.many2one import dialog
  File "/usr/local/lib/python2.6/dist-packages/openerp_client-6.0.0_rc2-py2.6.egg/openerp-client/widget/view/form_gtk/__init__.py", line 22, in <module>
    from parser import *
  File "/usr/local/lib/python2.6/dist-packages/openerp_client-6.0.0_rc2-py2.6.egg/openerp-client/widget/view/form_gtk/parser.py", line 915, in <module>
    import image
  File "/usr/local/lib/python2.6/dist-packages/openerp_client-6.0.0_rc2-py2.6.egg/openerp-client/widget/view/form_gtk/image.py", line 36, in <module>
    REQUIRED_IMG = file(common.terp_path_pixmaps("image_required.png"), 'rb').read()
IOError: [Errno 2] No such file or directory: 'image_required.png'

Updated workaround for stable 5.0.15:

#!/bin/bash
sudo mkdir /usr/local/share/openerp-client/pixmaps
sudo ln -s /usr/local/share/pixmaps/openerp-client/* /usr/local/share/openerp-client/pixmaps/

Revision history for this message
Tanel Kurvits (tanel-kurvits) wrote :

Devs what Distro you are using for testing software? I need to know. Then easier to debug when i can compare Openerp installs with ubuntu. Umbutu is moust usable Linux distro in world! That means testing with Ubuntu is MAST BE AND CLITICAL!!!

Revision history for this message
tfr (Openerp) (tfr) wrote :
Changed in openobject-client:
status: Confirmed → Fix Committed
Changed in openobject-server:
status: Confirmed → Fix Committed
Revision history for this message
Tanel Kurvits (tanel-kurvits) wrote :

What about 6.0 RC2? Still i get:

....
  File "/usr/local/lib/python2.6/dist-packages/openerp_client-6.0.0_rc2-py2.6.egg/openerp-client/widget/view/form_gtk/parser.py", line 915, in <module>
    import image
  File "/usr/local/lib/python2.6/dist-packages/openerp_client-6.0.0_rc2-py2.6.egg/openerp-client/widget/view/form_gtk/image.py", line 36, in <module>
    REQUIRED_IMG = file(common.terp_path_pixmaps("image_required.png"), 'rb').read()
IOError: [Errno 2] No such file or directory: 'image_required.png'

Revision history for this message
Richard (John) Nopkins@Servosoft (richard-nopkins) wrote :

back on it again, i am not using karmic, so cannot say its fixed or not.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.