GuyAllard / markov_clustering

markov clustering in python
MIT License
167 stars 37 forks source link

AttributeError: module 'markov_clustering' has no attribute 'run_mcl' #5

Closed saini5 closed 5 years ago

saini5 commented 6 years ago

Hi, I installed your package using pip as stated on the readme, but can't get the example script running. I guess it can't find the run_mcl method/function.

The error is: AttributeError: module 'markov_clustering' has no attribute 'run_mcl'

Is there a problem in the released version of the package? or if no, can you suggest how I can fix this? I'm using Python 3.5

Thanks

GuyAllard commented 6 years ago

Hi,

Can you confirm the python version that you are using, e.g.
from the command line, python --version

And also the version of markov_clustering that you are using, e.g.

python
>>>import markov_clustering
>>>markov_clustering.__version__
saini5 commented 6 years ago

Hi, Python 3.5.2 Markov clustering version: 0.0.3.dev

saini5 commented 6 years ago

Ok, so one thing I did was to upgrade my pip version from 9.0.1 to 10.0.1 because I saw you bumped up the pip version in github. I was still running into the issue after restarting pycharm. I restarted my windows and the issue seems to be resolved. I'm not too sure if it was the pip thing that resolved it.

Now, I'm running into the issue raised by another person (#4 )

But I'll request you to keep this issue open for another two days, in case I run into the problem again. Hope you can resolve the #4 issue(matplotlib window disappearing) quickly.

Thanks!

GuyAllard commented 6 years ago

I hate it when things magically resolve themselves! Anyway, I will leave this issue open for a bit, hopefully you do not encounter this again.

GuyAllard commented 5 years ago

I'm closing this issue as it has not re-occurred. We can re-open it if necessary.

twesleyb commented 4 years ago

I had this same issue, AttributeError: module 'markov_clustering' has no attribute 'run_mcl'

I'm not sure why I have this issue, but I was able to fix it by explicitly importing the modules I needed from the __markov_clustering__ library, for example:

from markov_clustering import run_mcl
from markov_clustering import get_clusters

Posting in case anyone else has this same issue and comes across this thread.