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
kopf provides a -m option for that, however, it doesn't work and it always throw the ModuleNotFoundError error.
command used : kopf run -m package_2.main
I ran the same file using python -m, but it didn't trigger the ModuleNotFoundError error. as shown in the screenshot below:
if I use just kopf run without -m option, I the no No module named error (same as running python main.py without -m option.
Kopf version
No response
Kubernetes version
No response
Python version
No response
Code
No response
Logs
No response
Additional information
No response
The text was updated successfully, but these errors were encountered:
Long story short
I want to use named import in kopf:
from module.functions import function_1
kopf provides a
-m
option for that, however, it doesn't work and it always throw theModuleNotFoundError
error.command used :
kopf run -m package_2.main
I ran the same file using
python -m
, but it didn't trigger theModuleNotFoundError
error. as shown in the screenshot below:if I use just
kopf run
without -m option, I the noNo module named error
(same as runningpython main.py
without -m option.Kopf version
No response
Kubernetes version
No response
Python version
No response
Code
No response
Logs
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: