nyukat / breast_cancer_classifier

Deep Neural Networks Improve Radiologists' Performance in Breast Cancer Screening
https://ieeexplore.ieee.org/document/8861376
GNU Affero General Public License v3.0
844 stars 269 forks source link

ModuleNotFoundError: No module named 'src' #23

Closed parkhojun closed 4 years ago

parkhojun commented 4 years ago

python3 src/cropping/crop_mammogram.py \ --input-data-folder $DATA_FOLDER \ --output-data-folder $CROPPED_IMAGE_PATH \ --exam-list-path $INITIAL_EXAM_LIST_PATH \ --cropped-exam-list-path $CROPPED_EXAM_LIST_PATH \ --num-processes $NUM_PROCESSES

Hi when i try to execute the this, I got the following error. Can you help me please? Thanks :)

Traceback (most recent call last): File "src/cropping/crop_mammogram.py", line 32, in import src.utilities.pickling as pickling ModuleNotFoundError: No module named 'src'

LubomirKovalcik commented 4 years ago

How did you fix it?

shahJaimin77 commented 4 years ago

How did you fix it?

Use sys.path.append("../") As that is where the src module of the project lies