Graphic Tools for Import

Using Python 2.7 I am trying to import a graphical tool:

from graph_tool.all import * 

Each time I execute the above command, the following error is returned and Python crashes.

dyld: unsuccessful lazy character binding: Character not found: __ZN5boost6python6detail11init_moduleEPKcPFvvE Link: /usr/local/lib/python2.7/site-packages/graph_tool/libgraph_tool_core.so Expected in: flat namespace

dyld: Symbol not found: __ZN5boost6python6detail11init_moduleEPKcPFvvE Link from: / usr / local / lib / python 2.7 / site-packages / graph_tool / libgraph_tool_core.so Expected in: flat namespace

Trace / BPT Trap: 5

I installed the graphical tool with homebrew on Mac OSX 10.10. Does anyone know how to fix this problem?

0
source share
2 answers

There is probably a mismatch between the version of python used, and the one used to compile boost :: python and graph-tool.

For example, you can use system python, while graph-tool / python was compiled with the version installed via homebrew.

0
source

Python modules are installed, but site packages may not be available in your sys.path Python, so you cannot import the modules this formula is installed. If you plan to develop these modules, follow these steps:

 mkdir -p /Users/myname/Library/Python/2.7/lib/python/site-packages echo 'import site; site.addsitedir("/usr/local/lib/python2.7/site-packages")' >> /Users/myname/Library/Python/2.7/lib/python/site-packages/homebrew.pth 

In my case, this is the homebrew site-packages site, but maybe not yours

0
source

All Articles