← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 738683] Re: Graph View does not work on Mac OSX through the macports

 

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

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/738683

Title:
  Graph View does not work on Mac OSX through the macports

Status in OpenERP GTK Client:
  Incomplete

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-client/+bug/738683/+subscriptions


References