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

Louvain on google colab #195

Closed
Yquetzal opened this issue Dec 1, 2021 · 2 comments
Closed

Louvain on google colab #195

Yquetzal opened this issue Dec 1, 2021 · 2 comments

Comments

@Yquetzal
Copy link
Collaborator

Yquetzal commented Dec 1, 2021

For some reasons, I cannot use Louvain when working from google colab.
Error:
AttributeError: module 'community' has no attribute 'best_partition'

it seems an issue with a pre-installed version of python-louvain, since basically I cannot use this module in google Colab, even outside of cdlib.

To make it work, I must use
import community.community_louvain as cl
instead of ``import community as cl```

Not sure why, since it was working before...

And if I force uninstall and force re-install python-louvain, then everything works as expected.

I'll continue to investigate tonight, since usually I use this setting in my teaching...

@GiulioRossetti
Copy link
Owner

It seems related to #193 (comment)

@Yquetzal
Copy link
Collaborator Author

Solved in principle with the latest version

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

No branches or pull requests

2 participants