[MacPorts] #57786: py37-graph-tool graph_draw throws segmentation fault without XQuartz running
MacPorts
noreply at macports.org
Mon Dec 17 16:14:30 UTC 2018
#57786: py37-graph-tool graph_draw throws segmentation fault without XQuartz
running
----------------------------+----------------------
Reporter: ssllmit | Owner: count0
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: py-graph-tool |
----------------------------+----------------------
Comment (by mamoll):
This is very odd. If I don't have X11 running and run the python code
above, it works, but I do get this error:
{{{
** (.:50936): WARNING **: 10:09:54.255: Failed to load shared library
'libcairo-gobject.2.dylib' referenced by the typelib: dlopen(libcairo-
gobject.2.dylib, 9): image not found
}}}
(and the X11 server is automatically launched in the background.)
If I launch python like so:
{{{
env DYLD_LIBRARY_PATH=/opt/local/lib python
}}}
then things crash right after the import statement:
{{{
env DYLD_LIBRARY_PATH=/opt/local/lib python
Python 3.7.1 (default, Oct 23 2018, 09:39:32)
[Clang 10.0.0 (clang-1000.11.45.2)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import graph_tool.all as gt
/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
/site-packages/graph_tool/draw/cairo_draw.py:39: RuntimeWarning: Error
importing cairo. Graph drawing will not work.
warnings.warn(msg, RuntimeWarning)
/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
/site-packages/graph_tool/draw/cairo_draw.py:39: RuntimeWarning: Error
importing cairo. Graph drawing will not work.
warnings.warn(msg, RuntimeWarning)
Segmentation fault: 11
}}}
I have `py37-graph-tool @2.27_2+clang70+gtk3+openmp` installed.
--
Ticket URL: <https://trac.macports.org/ticket/57786#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list