FNNDSC / med2image

Converts medical images to more displayable formats, e.g. NIfTI to jpg.
MIT License
185 stars 56 forks source link

Eroor with "error.py" module #5

Closed FlorentBaudon closed 7 years ago

FlorentBaudon commented 7 years ago

Hello,

When i run med2image script i have this following error :

./med2image.py -i .\MRI.nii -d out -o image.jpg -s -1 Traceback (most recent call last): File "med2image.py", line 30, in from . import error ImportError: cannot import name 'error'

When i tried to fix import error by replacing "from . import xxxx" by " import xxxx", script output nothing.

Have you any ideas to fix that error ?

Thanks.

rudolphpienaar commented 7 years ago

Please update to the latest version and try again...

jbernal0019 commented 7 years ago

Hey @Javanoide

You should now install med2image with:

pip3 install med2image

A med2image script is now available after the installation. So your new code would be:

med2image -i .\MRI.nii -d out -o image.jpg -s -1

Notice that med2image has been ported to python3 where there are important differences between dotted-relative and non-dotted-absolute imports.