[MacPorts] #33641: py27-graph-tool @2.2.15 won't build
MacPorts
noreply at macports.org
Fri May 25 14:18:16 PDT 2012
#33641: py27-graph-tool @2.2.15 won't build
------------------------------------------+---------------------------------
Reporter: anthony.bak@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.0.4
Keywords: graph-tool build lion python | Port: py27-graph-tool
------------------------------------------+---------------------------------
Comment(by mmoll@…):
The attached Portfile seems to build and install everything. I compiled
everything with gcc46. However, the code crashes on a simple example I
pulled from the graph-tool web site:
{{{
#!/bin/env python
import graph_tool.all as gt
from numpy import *
from numpy.random import seed, zipf
seed(43)
g = gt.price_network(1500)
deg = g.degree_property_map("in")
deg.a = 4 * (sqrt(deg.a) * 0.5 + 0.4)
ebet = gt.betweenness(g)[1]
ebet.a /= ebet.a.max() / 10.
eorder = ebet.copy()
eorder.a *= -1
pos = gt.sfdp_layout(g)
control = g.new_edge_property("vector<double>")
for e in g.edges():
d = sqrt(sum((pos[e.source()].a - pos[e.target()].a) ** 2)) / 5
control[e] = [0.3, d, 0.7, d]
gt.graph_draw(g, pos=pos, vertex_size=deg, vertex_fill_color=deg,
vorder=deg,
edge_color=ebet, eorder=eorder, edge_pen_width=ebet,
edge_control_points=control, # some curvy edges
output="graph-draw.pdf")
}}}
I get this stack trace:
{{{
#0 0x00007fff9ab656c0 in malloc_error_break ()
#1 0x00007fff9ab65805 in free ()
#2 0x0000000102c76d5b in boost::any::holder<std::string>::~holder ()
}}}
--
Ticket URL: <https://trac.macports.org/ticket/33641#comment:7>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list