You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue arises when executing python pdr_backend/predictoor/main.py because it imports approach2/main.py. In approach2/main.py, there's a call to getenv_or_exit("MODELDIR") directly within the file scope and not inside a function. Hence, when the file is imported, the environment check is triggered immediately, leading to that error.
To reproduce: do predictoor setup like in its README. Up to doing this CLI call:
python pdr_backend/predictoor/main.py
What this call should have done is give guidance on using approach 1 or 2.
Instead, it raised an error: "You must set MODELDIR environment variable". That's an approach2 specific thing.
Also: the CLI should give better hints about what to do, depending what you give it.
The text was updated successfully, but these errors were encountered: