https://prefect.io logo
h

Hung Hoang

09/07/2023, 6:52 AM
hi guys, I have a typical python issue in my prefect project:
Copy code
from tip.flows.auth import authenticate
ModuleNotFoundError: No module named 'tip'

The above exception was the direct cause of the following exception:
...
prefect.exceptions.ScriptError: Script at 'src/tip/flows/uvis_polling.py' encountered an exception: ModuleNotFoundError("No module named 'tip'")
So I’d like to learn how u guys resolve this situation ? Extra info: My project structure
Copy code
src
   / tip
    __init__.py
        /flows
          __init__.py
          auth.py
          uvis_collect.py
          uvis_polling.py
t

Tim Galvin

09/07/2023, 7:00 AM
Put an
__init__.py
file in the tip directory
h

Hung Hoang

09/07/2023, 7:28 AM
I have it already
t

Tim Galvin

09/07/2023, 7:41 AM
If I am reading your project structure, you have it In your flows folder, not in the actual tip folder
h

Hung Hoang

09/07/2023, 7:45 AM
I’m missing it in my description. I actually have it in my project. and still didn’t work