mnets / pymnet

The original library for analyzing multilayer networks.
https://mnets.github.io/pymnet/
GNU General Public License v3.0
118 stars 24 forks source link

importing pymnet library #1

Closed tfblanken closed 3 years ago

tfblanken commented 3 years ago

Dear bolozna,

I apologise in advance as I am relatively new to python and perhaps the issue I'm experiencing is the result of that rather than a real issue. I really tried to make sure I checked everything, but you never new when learning a new programming language..

I'm trying to get the pymnet library running. I cloned the repository and I have added the library directory to my python path in Spyder. Now I'm running the first lines but run into the error:

ImportError: cannot import name 'sampling' from 'pymnet' (/usr/local/anaconda3/envs/multilayer-networks/lib/python3.7/site-packages/pymnet/init.py)

If you have any idea what I'm doing wrong here and if you could point me in a right direction (documentation?) I'm super grateful.

Thank you very much in advance, Tessa

tfblanken commented 3 years ago

OK I don't know what I did exactly (ao installed Matplotlib and networkx), but it now works! Thanks very much, it is a great library.