[MacPorts] #43423: Add gtk variant to py-graph-tool

MacPorts noreply at macports.org
Mon Apr 21 13:12:03 PDT 2014


#43423: Add gtk variant to py-graph-tool
----------------------------+--------------------------------
  Reporter:  tiago@…        |      Owner:  macports-tickets@…
      Type:  enhancement    |     Status:  new
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.2.1
Resolution:                 |   Keywords:  maintainer
      Port:  py-graph-tool  |
----------------------------+--------------------------------

Comment (by mmoll@…):

 I installed py-graph-tool with a gtk variant. I tried to run the demo
 shown here: https://graph-tool.skewed.de/static/doc/demos/animation.html.
 I get errors like the one shown here:
 {{{
 Traceback (most recent call last):
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4
 /site-packages/graph_tool/draw/gtk_draw.py", line 424, in draw
     lr = self.pos_to_device((self.base.get_width(),
 AttributeError: 'cairo.Surface' object has no attribute 'get_width'
 }}}
 According to
 http://cairographics.org/documentation/pycairo/2/reference/surfaces.html#cairo.Surface
 this is correct. I should mention that I have the Quartz variant of gtk3
 installed (a more OS X native backend than the default X11-based one). Is
 there another way to do this? If I remove the get_width() and get_height()
 calls, the demo appears to work, but obviously window resizing doesn't
 work (which, I guess, is still better than a fatal error).

-- 
Ticket URL: <https://trac.macports.org/ticket/43423#comment:4>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list