@cvp thanks. That fixed things. I had been trying with the individual files in the External Files area, but once I placed the whole folder in External Files, everything works, even with the ‘dummy.py’ name. Much appreciated.
Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Latest posts made by maxelon
-
RE: ModuleNotFoundError when run from External Files
-
RE: ModuleNotFoundError when run from External Files
Definitely no upper case and in the same folder, and it does works from my Mac. I can also make it work from Pythonista’s iCloud Script Library area, just not from a folder accessed by External Files.
-
ModuleNotFoundError when run from External Files
If I try and run programs from an external file, it gives me a ModuleNotFoundError, even though the module is in the same folder and it runs perfectly from my Mac. For example,
File 1: (dummy.py) has this line:
print('Hello')File 2: (dummy2.py) has this line:
import dummyWhen I run File 2, on my Mac I get 'Hello' printed. On Pythonista, I get ModuleNotfoundError.
Can someone help me understand what is going on?