[Networkit] Difficult installation bug following python3 homebrew

Gregory Fenn gregjfenn at hotmail.com
Sat Nov 12 13:53:12 CET 2016


Hi all,

After destroying all trace of python and python3 from my computer, and removing all site-packages (e.g. bumpy, script, network etc) I then reinstalled all with brew.
Any help or tips to fix this would help! I tried following the brew advice to remove all non-brewed dependencies.

    $ brew install python python3
    $ brew linkapps python3
    $ brew linkapps python
    $ python3
    Python 3.5.2 (default, Oct 11 2016, 04:59:56)
    [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.38)] on darwin
    Type “help”, “copyright”, “credits”, or “license” for more information.
    >>> quit()
…etc: all good.


Then I reinstalled all the key modules including networkit:


    $ sudo pip3 install cython seaborn seaboard pandas scipy numpy readline matplotlib networkx tabulate networkit


which seems to work fine.

    $ python3
    Python 3.5.2 (default, Oct 11 2016, 04:59:56)
    [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.38)] on darwin
    Type “help”, “copyright”, “credits”, or “license” for more information.
    >>> import cython
    >>> import seaborn
    …
    >>> import tabulate

…. all good. Except

    >>> import networkit
    Traceback (most recent call last):
        File “<stdin>”, line 1, in <module>
        File “usr/local/lib/python3.5/site-packages/networkit/__init__.py”, line 43, in <module>
            from . import graph
        File “/usr/local/lib/python3.5/site-packages/networkit/graph.py”, line 2, in <module>
            from _NetworKit import Graph, BFS, Dijkstra, DynBFS, DynDijkstra, SpanningForest, GraphTools, RandomMaximumSpanningForest, UnionMaximumSpanningForest
    ImportError: dlopen(/usr/local/lib/python3.5/site-packages/_NetworKit.cpython-35m-darwin.so
        Reason: image not found




System details.
OS: MacOS Sierra 10.12.1
Python3: 3.5.2
Build: GCC 4.2.1


Does anyone else have this problem?

Best
~Gregory Fenn
gregjfenn at hotmail.com<mailto:gregjfenn at hotmail.com>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ira.uni-karlsruhe.de/pipermail/networkit/attachments/20161112/a2d5c651/attachment.html>


More information about the NetworKit mailing list