ofgulban / segmentator

3D MRI data exploration and segmentation tool.
https://github.com/ofgulban/segmentator/wiki
BSD 3-Clause "New" or "Revised" License
74 stars 13 forks source link

Unable to run segmentator_filters #78

Closed atylermorgan closed 5 years ago

atylermorgan commented 5 years ago

I am trying to run segmentator_filters, but my system is not able to find the config_filters module. I have tried adding the segmentator directory to $PYTHONPATH, but that didn't change things. Any help with this would be greatly appreciated.

Here is the traceback:

$ segmentator_filters data.nii.gz --nr_iterations 5
=================
Segmentator 1.5.2
=================
Filters initiated...
Traceback (most recent call last):
  File "/home/am/nipype/venv/bin/segmentator_filters", line 11, in <module>
    load_entry_point('segmentator==1.5.2', 'console_scripts', 'segmentator_filters')()
  File "/home/am/nipype/venv/lib/python3.6/site-packages/segmentator-1.5.2-py3.6-linux-x86_64.egg/segmentator/filters_ui.py", line 94, in main
  File "/home/am/nipype/venv/lib/python3.6/site-packages/segmentator-1.5.2-py3.6-linux-x86_64.egg/segmentator/filter.py", line 23, in <module>
ModuleNotFoundError: No module named 'config_filters'
ofgulban commented 5 years ago

Hi Andrew,

Thanks for the bug report. Could you try cloning and installing from devel branch and try again?

Let me know it it still doesn't work.

atylermorgan commented 5 years ago

Hi Faruk,

Thanks for your message. Things look the same after having installed the development branch.

Is there any more info I can give you to help?

Thanks again, Tyler

ofgulban commented 5 years ago

Did you try it from a fresh virtual environment? Because I cannot replicate the error now.

ofgulban commented 5 years ago

Oh, could it be the case that you did not do git checkout devel after cloning and before installing? Because I am pretty sure this commit solves the issue.

atylermorgan commented 5 years ago

Okay, yeah that was it. All good now!

ofgulban commented 5 years ago

Great, thanks ! I will merge this change into master and release a new version.