I'm working in google colab and trying to run a python file (let's call it B) and get this:
Traceback (most recent call last): File "run_sem_seg_penumothorax.py", line 5, in <module> import step.make_sem_seg_lables_pneumothorax as make_sem_seg_lables_pneumothorax
I am in a mother directory, let's call it A. This is how it's organised:
- I'm in cd A
- -B is a file that I'm trying to run
-
-STEP is a directory in A
-
make_sem..... is a file in directory A/STEP
For some reason my colab notebook doesn't pull this file from the step folder and I don't know how to resolve it. I was trying to edit my file B and do something like this:
import 'google drive directory:/step.make_sem_seg_lables_pneumothorax' as make_sem_seg_lables_pneumothorax ModuleNotFoundError: No module named 'step.make_sem_seg_lables_pneumothorax'
Sadly, didn't work.
- Do I have to edit the file?
- If so, how to do it?
- I see in all githubs that they name files this way mother_folder.daughter_file so I guess it works in their cases. Why doesn't it work for me?
Thank you, Joanna