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

not working running inside of a python script #108

Open
MushiTheMoshi opened this issue May 27, 2022 · 1 comment
Open

not working running inside of a python script #108

MushiTheMoshi opened this issue May 27, 2022 · 1 comment

Comments

@MushiTheMoshi
Copy link

MushiTheMoshi commented May 27, 2022

Hi there,

Really awesome tool, appreciated all effort done here.

I have problems to make it to work on a linux instance using python.

this is my code snippet:
#!/bin/python3 import os print(os.popen("kubie ctx mycontext; kubectl config current-context").read()) print(os.popen("/usr/local/bin/kubie ctx mycontext; kubectl config current-context").read())

error:

Error: No such file or directory (os error 2) mycontext Error: No such file or directory (os error 2) mycontext
 kubie --version kubie 0.16.0

Is there any way to troubleshoot this?

@sudohainguyen
Copy link

image

try applying one of these

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants