Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using named import in kopf #1086

Open
skandarchahbouni opened this issue Jan 5, 2024 · 0 comments
Open

Using named import in kopf #1086

skandarchahbouni opened this issue Jan 5, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@skandarchahbouni
Copy link

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 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:

image
image

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

@skandarchahbouni skandarchahbouni added the bug Something isn't working label Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant