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

ImportError: cannot import name 'sampling' from 'pymnet' #2

Closed lindayuanyuan closed 2 years ago

lindayuanyuan commented 2 years ago

Hello, After I installed pymnet from git, I run into the below issue when trying run "from pymnet import *":

ImportError: cannot import name 'sampling' from partially initialized module 'pymnet' (most likely due to a circular import)

Can you help me on this? thanks, Yuanyuan

bolozna commented 2 years ago

Thanks for reporting. Looks like some code in the sampling module was importing in a way that caused problems in newer Python versions. This is now solved.