ccipd / MRQy

RadQy is a quality assurance and checking tool for quantitative assessment of magnetic resonance imaging (MRI) and computed tomography (CT) data.
https://ccipd.github.io/MRQy/
BSD 3-Clause Clear License
93 stars 28 forks source link

ModuleNotFoundError: No module named 'QCF' #3

Closed vascosa closed 2 years ago

vascosa commented 3 years ago

Hello,

I was getting the ModuleNotFoundError: No module named 'QCF' issue when running the test example python -m mrqy.QC --help.

I solved this by going into the virtual environment site-packages and editing line 11 on the QC.py to import mrqy.QCF as QCF, which solved my issue. I don't know if you ever run into anything like this. The package mrqy included both files, but I had to point it to the package itself to import QCF it looks like. I'm on python 3.6.8.

Cheers, Vasco

satishev commented 3 years ago

@Amir-Reza-Sadri can double check, maybe some kind of env check is required.

Amir-Reza-Sadri commented 3 years ago

The issue has been fixed.

giemmecci commented 2 years ago

Hi, I'm having the same issue, and the only way to have it working was to change line 11 in the QC.py file, as mentioned by @vascosa.

Thanks

satishev commented 2 years ago

@giemmecci this issues should have been fixed in an update made to QC.py back in March. Could you check whether you have the latest version of the repo?

giemmecci commented 2 years ago

Thanks!

I think so; I've downloaded the v2022.04 version of the code; this is the output:

(mrqyenv) (MRQy-2022.04) redacted@redacted MRQy-2022.04 % python -m mrqy.QC --help Traceback (most recent call last): File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/runpy.py", line 87, in _run_code exec(code, run_globals) File "/Users/redacted/.local/share/virtualenvs/MRQy-2022.04-p-CJzWwa/lib/python3.8/site-packages/mrqy/QC.py", line 11, in import QCF ModuleNotFoundError: No module named 'QCF'

satishev commented 2 years ago

@Amir-Reza-Sadri could you check the mentioned package on the releases page and fix as needed?

Amir-Reza-Sadri commented 2 years ago

The issue has been fixed.

satishev commented 2 years ago

@giemmecci please try updating your repo (not released this as a package yet) and seeing if the issue is fixed?

giemmecci commented 2 years ago

I've re-installed everything from scratch and it works now, thanks!