I've installed graph-tool and when I try to import it, I get the following
message:
import graph_tool
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "graph_tool/__init__.py", line 101, in <module>
dl_import("from . import libgraph_tool_core as libcore")
File "graph_tool/dl_import.py", line 57, in dl_import
exec(import_expr, local_dict, global_dict)
File "<string>", line 1, in <module>
ImportError: cannot import name libgraph_tool_core
This is most likely an installation problem, but it is difficult to say
without you giving us more information. What operating system and
versions of Python and Boost were you using? Did you compile it
yourself? If so, what options did you pass to the configure script, and
what was the output in the config.log file?
I can't vouch for these installation instructions myself, since I never
used homebrew, but it seems that there is a mismatch between the python
you are using and the one for which graph-tool was installed.
Unfortunately, you are still giving too little information to precisely
pinpoint the problem. That error message by itself does not say much...
I recommend you install graph-tool with macports, since it requires less
manual intervention.
Yes, I did install graph-tool using macports. This problem occur when the
installations done.
Please let me know What king of information do you want me to provide you?
It looks like you are using a different python interpreter than the one
which was used to compile graph-tool. Beware that macports and homebrew
both install different python interpreters, which are in turn different
than the system's version.