Skip to content

Python3.7 binascii.Error: Incorrect padding on configuration loading #860

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

Closed
zrks opened this issue Jun 28, 2019 · 6 comments
Closed

Python3.7 binascii.Error: Incorrect padding on configuration loading #860

zrks opened this issue Jun 28, 2019 · 6 comments
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@zrks
Copy link

zrks commented Jun 28, 2019

  File "<...>/venv3.7/lib/python3.7/site-packages/kubernetes-10.0.0_snapshot-py3.7.egg/kubernetes/config/kube_config.py", line 636, in load_kube_config
  File "<...>/venv3.7/lib/python3.7/site-packages/kubernetes-10.0.0_snapshot-py3.7.egg/kubernetes/config/kube_config.py", line 448, in load_and_set
  File "<...>/venv3.7/lib/python3.7/site-packages/kubernetes-10.0.0_snapshot-py3.7.egg/kubernetes/config/kube_config.py", line 203, in _load_authentication
  File "<...>/venv3.7/lib/python3.7/site-packages/kubernetes-10.0.0_snapshot-py3.7.egg/kubernetes/config/kube_config.py", line 222, in _load_auth_provider_token
  File "<...>/venv3.7/lib/python3.7/site-packages/kubernetes-10.0.0_snapshot-py3.7.egg/kubernetes/config/kube_config.py", line 287, in _load_oid_token
  File "<...>/venv3.7/lib/python3.7/base64.py", line 87, in b64decode
    return binascii.a2b_base64(s)
binascii.Error: Incorrect padding

Could someone apply fix for this and release?

@ltagliamonte-dd
Copy link

I'm having the same problem, it comes from the python-client submodule.
i believe if should be updated and create a release of this module.
related to: #525

@zrks
Copy link
Author

zrks commented Jul 1, 2019

@ltagliamonte-dd Fix is something like:

cd venv3.6/lib/python3.6/site-packages/kubernetes/config/
curl -sL https://github.com/kubernetes-client/python-base/pull/79.diff | patch -p2

However would be great to release this fix.

@micw523
Copy link
Contributor

micw523 commented Jul 17, 2019

The fix should have been released in v10.

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 15, 2019
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Nov 14, 2019
@zrks
Copy link
Author

zrks commented Nov 21, 2019

Fix confirmed.

@zrks zrks closed this as completed Nov 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

5 participants