... | ... | @@ -106,44 +106,6 @@ In an ideal world, the correct version should be the latest one from the "stock" |
|
|
|
|
|
(If possible, a much better option would be to use a less [defective](http://www.defectivebydesign.org/apple) platform in the first place.)
|
|
|
|
|
|
<a name="faq"></a>
|
|
|
|
|
|
### FAQ for installation in MacOS X
|
|
|
|
|
|
#### Q: Why can't this be installed via pip? Why so complicated?
|
|
|
A: See [note for MacOS X users](#note-macos) above. The short answer is that it can't be done, since graph-tool depends crucially on some (excellent) C++ libraries such as Boost, which are not installable via pip.
|
|
|
|
|
|
#### Q: When importing the module, I get the following errors:
|
|
|
```
|
|
|
ERROR:root:Could not find any typelib for Gtk
|
|
|
ERROR:root:Could not find any typelib for Gdk
|
|
|
ERROR:root:Could not find any typelib for GdkPixbuf
|
|
|
```
|
|
|
A: Make sure you have [XQuartz](http://xquartz.macosforge.org/landing/) installed, as well as GTK+ 3 (gtk3 port in Macports).
|
|
|
|
|
|
#### Q: When attempting to draw a graph to the screen, I get the error:
|
|
|
|
|
|
```
|
|
|
gi._glib.GError: Couldn't recognize the image file format for file '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/graph_tool/draw/graph-tool-logo.svg'
|
|
|
Exception AttributeError: "'GraphWindow' object has no attribute 'graph'" in > ignored
|
|
|
```
|
|
|
|
|
|
A: You probably don't have the standard librsvg library installed. This can be installed with macports as follows:
|
|
|
```
|
|
|
port install librsvg
|
|
|
```
|
|
|
|
|
|
#### Q: I get unresolved symbol errors when importing the module, something like:
|
|
|
|
|
|
```python
|
|
|
>>> import graph_tool
|
|
|
dyld: lazy symbol binding failed: Symbol not found: __ZN5boost6python7objects23register_dynamic_id_auxENS0_9type_infoEPFNSt3__14pairIPvS2_EES5_E
|
|
|
Referenced from: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/graph_tool/libgraph_tool_core.so
|
|
|
Expected in: flat namespace
|
|
|
```
|
|
|
|
|
|
A: This is due to different flavors of the C++ standard library (libc++ and libstdc++) being used for Boost and graph-tool itself. This is resolved by either compiling everything using clang with c++11 mode activated (which could be cumbersome, since the same would have to be done for everything else which uses Boost), or simply by upgrading to Mavericks or newer (see [here](https://trac.macports.org/ticket/43086) for more info).
|
|
|
|
|
|
# Manual compilation
|
|
|
|
|
|
Graph-tool was tested extensively only on
|
... | ... | |