mckib2 / phantominator

Generate numerical phantoms.
MIT License
33 stars 2 forks source link

import error #8

Closed merna17798 closed 4 years ago

merna17798 commented 4 years ago

CT phantom

from phantominator import shepp_logan ph = shepp_logan(128)

MR phantom (returns proton density, T1, and T2 maps)

M0, T1, T2 = shepp_logan((128, 128, 20), MR=True) while i had runing the example i got this error although the liberary installed correctly

Traceback (most recent call last): File "c:/Users/pc/Desktop/mri/task1/phantom.py", line 2, in from phantominator import shepp_logan File "C:\Users\pc\Anaconda3\lib\site-packages\phantominator__init.py", line 10, in from .kspace import kspace_shepp_logan File "C:\Users\pc\Anaconda3\lib\site-packages\phantominator\kspace.py", line 7, in from scipy.special import j1 # pylint: disable=E0611 File "C:\Users\pc\Anaconda3\lib\site-packages\scipy\special\init__.py", line 634, in from . import _ufuncs ImportError: DLL load failed: The specified module could not be found.

mckib2 commented 4 years ago

@merna17798 Sorry, just saw this.

Do you mind giving me some info:

mckib2 commented 4 years ago

I'm guessing you're on windows using anaconda. Looks like an issue with scipy import. Does scipy work on your machine?

merna17798 commented 4 years ago

Hey! First of all,thanks for your interest and to replay ... The real hassle was I had used visual studio which have some conflict in running so when I ran my file on anaconda prompt. It works Thanks for your priceless time

On Mon, Apr 13, 2020, 02:02 mckib2 notifications@github.com wrote:

I'm guessing you're on windows using anaconda. Looks like an issue with scipy import. Does scipy work on your machine?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mckib2/phantominator/issues/8#issuecomment-612695486, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKGUL7AZP63TWVWIDC6RVPTRMJJDDANCNFSM4LWVVMCQ .

mckib2 commented 4 years ago

Glad you got it working, I'll go ahead and close this issue