Graph View does not work on Mac OSX through the macports

Bug #738683 reported by gobi
26
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Odoo GTK Client (MOVED TO GITHUB)
Invalid
Undecided
Unassigned

Bug Description

I tried to run OpenERP GTK client on Mac OSX using macports. Generally it is working fine.

There are only two problems I am facing so far are:
1. Calendar view does not work because of there are no python-hippocanvas on macports (I reported it on #738678)
2. Graph view also does not work. Here I am reporing it.

Error message is
------
Environment Information :
System : Darwin-10.6.0-i386-64bit
OS Name : posix
Your System is not lsb compliant
Operating System Release : 10.6.0
Operating System Version : Darwin Kernel Version 10.6.0: Wed Nov 10 18:13:17 PST 2010; root:xnu-1504.9.26~3/RELEASE_I386
Operating System Architecture : 64bit
Operating System Locale : en_US.UTF8
Python Version : 2.6.6
OpenERP-Client Version : 6.1-dev
Last revision No. & ID :1838 launchpad_translations_on_behalf_of_openerp-20110319051704-g23wtgck2xx0tnu3
Traceback (most recent call last):
  File "/Users/gobi/OpenERP/openobject-client/bin/widget/view/graph_gtk/parser.py", line 56, in parse
    import graph
  File "/Users/gobi/OpenERP/openobject-client/bin/widget/view/graph_gtk/graph.py", line 50, in <module>
    from matplotlib.backends.backend_gtkcairo import FigureCanvasGTKCairo as FigureCanvas
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/backends/backend_gtkcairo.py", line 10, in <module>
    from matplotlib.backends.backend_gtk import *
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/backends/backend_gtk.py", line 28, in <module>
    from matplotlib.backends.backend_gdk import RendererGDK, FigureCanvasGDK
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/backends/backend_gdk.py", line 29, in <module>
    from matplotlib.backends._backend_gdk import pixbuf_get_pixels_array
ImportError: No module named _backend_gdk

Changed in openobject-client:
status: New → Triaged
Revision history for this message
Thierry (tboulogne) wrote :

Hello,

Thanks to solve this please... more than 2 years using Openerp with this bug on macos.

Regards,

Thierry

Changed in openobject-client:
status: Triaged → Confirmed
Revision history for this message
Thierry (tboulogne) wrote :

note : python-hippocanvas is deprecated...

Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote :

Thierry, in your trace it says matplotlib is missing a _backend_gdk. Macport's matplotlib has multiple variants for all its possible backends:

    py26-matplotlib has the variants:
       cairo: Enable Cairo backends
       ghostscript: Enable GhostScript support
       gtk2: Enable GTKAgg backend
       latex: Enable LaTeX support
       qt4: Enable QT4Agg backend
    [+]tkinter: Enable tkAgg backend
       universal: Build for multiple architectures
       wxpython: Enable wxAgg backend

By default (as noted by the [+]), only tkinter is selected so matplotlib will *not* work in a GTK application. Have you tried enabling the GTK2 and cairo backends (not sure which one is going to be used, but probably one of these)? You'll need to uninstall matplotlib and reinstall it with those variants, by the way.

Changed in openobject-client:
status: Confirmed → Incomplete
Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote :

(on my machine, graphs display correctly with matplotlib installed and a bunch of backends, though on my machine I've installed pretty much all of the available backends not just GDK)

Revision history for this message
Thierry (tboulogne) wrote :

Hello,

Thanks for your reply Xavier and sorry for my answer delay (i did not subscribe to the bug :-(. )
I will install all the backing like :-) and let you know.

Regards,

Revision history for this message
Thierry (tboulogne) wrote :

Xavier,

i get the graphic after some compiling and mysterious thing :
i compile with python2.7 but i need to launch the client with python2.6 to get graphics :-).

Regarding calendar view, python-hypocanvas is always requested... and sure deprecated.
So no calendar view on mac :-(.

Thanks for all.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenERP GTK Client because there has been no activity for 60 days.]

Changed in openobject-client:
status: Incomplete → Expired
Amit Parik (amit-parik)
Changed in openobject-client:
status: Expired → New
status: New → Triaged
Revision history for this message
Amit Parik (amit-parik) wrote :

As per the XMO's comment #6 (All are working fine with macOS)
So this problem occurs due to the packages , That's why I am closing this issue.

Thanks!

Changed in openobject-client:
status: Triaged → Invalid
Revision history for this message
Thierry (tboulogne) wrote : Re: [Bug 738683] Re: Graph View does not work on Mac OSX through the macports

Hello,

not solved.... don't where you see all are working fine with macOS ;-(

Amit Parik (OpenERP) a écrit:
>
> As per the XMO's comment #6 (All are working fine with macOS)
> So this problem occurs due to the packages , That's why I am closing
> this issue.
>
> Thanks!
>
> ** Changed in: openobject-client
> Status: Triaged => Invalid

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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