loli / medpy

Medical image processing in Python
http://loli.github.io/medpy/
GNU General Public License v3.0
559 stars 136 forks source link

ModuleNotFoundError: No module named 'medpy.graphcut.maxflow' #87

Closed varanasivenkatsai closed 5 years ago

varanasivenkatsai commented 5 years ago

Hi,

I am trying to use graphcut from medpy, but unfortunately i found it works only on python 2.7. So i created virtual environment in conda and installed medpy 0.3.0 on python 2.7. But the error remains same. This is the error message:

from .maxflow import GraphDouble, GraphFloat, GraphInt # this always triggers an error in Eclipse, but is right

ImportError: No module named maxflow

varanasivenkatsai commented 5 years ago

Update: when i tried to install by cloning from github i am getting this error.

WARNING: The medpy.graphcut.maxflow external C++ package could not be compiled, all graphcut functionality will be disabled. You might be missing Boost.Python or some build essentials like g++. Plain-Python installation succeeded.

loli commented 5 years ago

Did you install the requirements for the graphcut package as detailed in the documentation http://loli.github.io/medpy/installation/graphcutsupport.html?

And which OS are you working on? It most likely won't work under windows.

varanasivenkatsai commented 5 years ago

I am using windows OS. I installed gcc and libboost from anaconda but still its showing same error.Is there any other way to run this for windows? What would be easy way to install other platforms in my computer? and which platform the maxflow is ideally designed for?

I found out windows system got the update for linux.we can use ubuntu directly as an application on windows 10. Does this work for my problem?

loli commented 5 years ago

Medpy has no official support for windows. Although all but the graph cut package seem to work.

I never got the graph cut package to compile with the conda libboost. You can try to do it by hand... But it might be quite some work. And I would be interested on how you managed to add the support :)

On Ubuntu everything should work fine of you follow the installation instruction for an installation with graph cut support.