Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named 'ndlib.models.compartments.enums' #195

Open
meekokaka opened this issue Mar 24, 2021 · 3 comments
Open

No module named 'ndlib.models.compartments.enums' #195

meekokaka opened this issue Mar 24, 2021 · 3 comments
Assignees
Labels

Comments

@meekokaka
Copy link

meekokaka commented Mar 24, 2021

Hi,

I'm learning to use ndlib for my project. When importing EdgeStochastic, I received an error.

I'm using the latest version of ndlib. The error occurred on both Windows and Linux.

error

@RaspyThommy
Copy link

Hi,
i'm having the same problem and i solved it by adding the "enums" directory (downloadable from this git in ndlib/models/compartments link: https://github.com/GiulioRossetti/ndlib/tree/master/ndlib/models/compartments) to your python's site-packages. You must add it to /ndlib/models/compartments.
On your code you need to call EdgeStocastic using
from ndlib.models.compartments import EdgeStochastic as es
I use macos and it works for me.

@GiulioRossetti
Copy link
Owner

Hi, the fix is already in the GitHub version of the library: just uninstall your current ndlib version and pip install it anew from github.

We'll push an updated version of the package on pypi next week.

@jameshughes89
Copy link
Contributor

Looks like it is still not up to date: https://pypi.org/project/ndlib/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants