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

Wrong PYTHONHOME and PYTHONPATH #35

Open
naude-r opened this issue Oct 7, 2024 · 4 comments
Open

Wrong PYTHONHOME and PYTHONPATH #35

naude-r opened this issue Oct 7, 2024 · 4 comments
Labels
question Further information is requested

Comments

@naude-r
Copy link

naude-r commented Oct 7, 2024

jet-pilot sets its own variables for python, e.g.:
PYTHONHOME = '/tmp/.mount_jet-piOqe0fr/usr/'\n PYTHONPATH = '/tmp/.mount_jet-piOqe0fr/usr/share/pyshared/:/usr/lib/python3.12

the result is that a kubelogin with azurecli fails with:
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding\nPython runtime state: core initialized\nModuleNotFoundError: No module named 'encodings'

running the command line works just fine from a shell:
kubelogin get-token --login azurecli --server-id xxxx

anything else that can be tried?

@unxsist unxsist added the bug Something isn't working label Oct 11, 2024
@unxsist
Copy link
Owner

unxsist commented Nov 4, 2024

What OS are you using to run JET Pilot? And what installation method did you use?

Afaik JET Pilot does not set any custom variables and quick checks on MacOS have shown no Python vars to be set and we do not use Python under the hood either.

@unxsist unxsist added question Further information is requested and removed bug Something isn't working labels Nov 4, 2024
@naude-r
Copy link
Author

naude-r commented Nov 5, 2024

running a standard install of fedora 40, specifically the kde spin.

is there anything specific i can run to provide more info?

@unxsist
Copy link
Owner

unxsist commented Nov 6, 2024

Debug logging / Applications logs are my highest priority at the moment. Probably will be in the next release in the upcoming days. It would be great if you could provide yours once it's out.

@unxsist
Copy link
Owner

unxsist commented Jan 2, 2025

@naude-r can you try this again with the latest release?

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

No branches or pull requests

2 participants