Comments (7)
issue is resolved after reinstall awscli. Thanks
from yawsso.
That's a bit odd, yes. Umm, would you mind use --trace
to see any meaningful pointer to where the issue might be.
It is using Python built-in shutil.which
module to find aws
binary in your current shell env PATH. As last resort, you can use -b
(or --bin
) flag to point the absolute path of the AWS v2 binary location. I made it that for those folks using both v1 alias to aws
and; v2 such that aws2
.
Happy to provide more if I can see some trace output. Please mask any private info, if any.
from yawsso.
The output from --trace
is:
2021-01-30 19:59:37,433 yawsso.cli TRACE Logging level: TRACE
2021-01-30 19:59:37,434 yawsso.cli TRACE args: Namespace(bin=None, command=None, debug=False, default=False, default_only=False, export_vars1=True, profiles=['00'], trace=True, version=False)
2021-01-30 19:59:37,434 yawsso.cli TRACE AWS_CONFIG_FILE: /Users/joey/.aws/config
2021-01-30 19:59:37,434 yawsso.cli TRACE AWS_SHARED_CREDENTIALS_FILE: /Users/joey/.aws/credentials
2021-01-30 19:59:37,434 yawsso.cli TRACE AWS_SSO_CACHE_PATH: /Users/joey/.aws/sso/cache
2021-01-30 19:59:37,434 yawsso.cli TRACE Cache SSO JSON files: ['/Users/joey/.aws/sso/cache/c9f2ab5ada1a3d25651c848225b644f863a38826.json', '/Users/joey/.aws/sso/cache/botocore-client-id-ap-southeast-2.json']
2021-01-30 19:59:37,872 yawsso.cli ERROR Required AWS CLI v2. Found aws-cli/1.18.0 Python/3.7.4 Darwin/20.2.0 botocore/1.12.253
Do you see anything wrong in the output?
from yawsso.
Do you see anything wrong in the output?
Nop.
Probably related with how you setup your shell environment PATH and Python, I reckon. Show output of these commands:
yawsso --version
aws --version
python -V
python3 -V
pip -V
pip3 -V
which yawsso
which aws
which python
which python3
which pip
which pip3
from yawsso.
Below is the output.
Joey-Zeller:k8s joey$ yawsso --version
yawsso 0.6.1
Joey-Zeller:k8s joey$ aws --version
aws-cli/2.1.22 Python/3.7.4 Darwin/20.2.0 exe/x86_64 prompt/off
Joey-Zeller:k8s joey$ python -V
Python 3.7.4
Joey-Zeller:k8s joey$ python3 -V
Python 3.7.4
Joey-Zeller:k8s joey$ pip -V
pip 21.0 from /Users/joey/.pyenv/versions/3.7.4/lib/python3.7/site-packages/pip (python 3.7)
Joey-Zeller:k8s joey$ pip3 -V
pip 20.0.2 from /usr/local/lib/python3.7/site-packages/pip (python 3.7)
Joey-Zeller:k8s joey$ which python
/Users/joey/.pyenv/shims/python
Joey-Zeller:k8s joey$ which python3
/Users/joey/.pyenv/shims/python3
Joey-Zeller:k8s joey$ which pip
/Users/joey/.pyenv/shims/pip
Joey-Zeller:k8s joey$ which pip3
/usr/local/bin//pip3
from yawsso.
Please also include output of
which yawsso
which aws
ls -l $(which aws)
eval $(which aws) --version
Also try which aws
output path directly with -b
flag. Example:
yawsso -b $(which aws) -p 00 -e
from yawsso.
Joey-Zeller:entity joey$ which yawsso
/Users/joey/.pyenv/shims/yawsso
$ which aws
/usr/local/bin//aws
Joey-Zeller:entity joey$ ls -l $(which aws)
lrwxr-xr-x 1 root staff 22 30 Jan 14:47 /usr/local/bin//aws -> /usr/local/aws-cli/aws
Joey-Zeller:entity joey$ eval $(which aws) --version
aws-cli/2.1.22 Python/3.7.4 Darwin/20.2.0 exe/x86_64 prompt/off
Joey-Zeller:entity joey$ yawsso -b $(which aws) -p 00 -e
No section: 'profile 00'
I see that the command yawsso -b $(which aws) -p 00 -e
works but when I run it without -b
, it complains about the aws version.
from yawsso.
Related Issues (20)
- ValueError on time data again HOT 3
- aws_session_expiration value is incorrect ...uses UTC time rather than the UTC timezone offset HOT 2
- Rename profile on sync HOT 4
- yawsso -e only exports Linux form of environment variables HOT 2
- Fix distutils packaging warning
- Improve clipboard masking HOT 2
- Automatically log in when sync fails HOT 3
- syncing for all named profiles fails when cache for first profile is not active on first time set up HOT 4
- Sync fails when values have double-quotes HOT 3
- yawsso doesn't recognize new-style SSO profiles HOT 9
- Request: do not put region into the profile written to ~/.aws/credentials HOT 4
- New Windows -e process is too restrictive HOT 3
- can't get aws credentials in cmd line HOT 2
- Error: "no section: 'default' HOT 2
- ValueError: time data '2023-03-16T15:11:53.540Z' does not match format '%Y-%m-%dT%H:%M:%SZ' HOT 8
- yawsso auto without cache HOT 4
- Add parameter to control setting the region in the .aws/credentials file HOT 2
- yawsso needs to ignore the expiresAt parameter in .aws/sso/cache/<thing>.json HOT 15
- How can I skip encrypt? HOT 2
- KeyError: 'refreshToken' after updating to 1.2.0 HOT 16
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yawsso.