[Networkit] Possible solution: Difficult installation bug following python3 homebrew

Gregory Fenn gregjfenn at hotmail.com
Sun Nov 13 17:26:52 CET 2016


Hi again,

I think I solved or worked-around the issues described in the email below.

For my solution which might help other Mac users use NetworKit, see http://stackoverflow.com/questions/40349110/unable-to-install-networkit-using-sudo-pip3-install-networkit/40572959#40572959

Best
~Greg

Gregory Joseph Fenn
PhD Researcher
Information Security Group
Royal Holloway, University of London



On 12 Nov 2016, at 12:53, Gregory Fenn <gregjfenn at hotmail.com<mailto:gregjfenn at hotmail.com>> wrote:

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/20161113/6d03144e/attachment.html>


More information about the NetworKit mailing list