-
Notifications
You must be signed in to change notification settings - Fork 778
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
when i run aws-shell, I got a error #208
Comments
Also seeing this error:
Python 3.6.3:
|
Same. On a Mac. Tried it with both Python 2.7.15 and 3.7.0 with the same results. |
Thank you! It works well now. |
same deal here... No such file or directory: '/home//.aws/shell/cache/completions-1.16.14.json' installing directly off master did the trick as well. |
Confirmed, in order to fix "TypeError: generate_shorthand_example() got an unexpected keyword argument 'service_name' " , I've done "pip install git+https://github.com/awslabs/aws-shell.git" (which is newer than latest v0.2.0) and it works OK now |
Still getting the error. even after I tried. pip install git+https://github.com/awslabs/aws-shell.git First run, creating autocomplete index... |
Same problem seen here (Debian stretch), Installing from master worked. |
We've just released v0.2.1 which contains the fix for this issue. Let us know if you're still seeing issues with 0.2.1. |
I have been experiencing this for a couple days.
|
Me too. Installing from master did not fix the issue. Installed it both as user and as root
|
Why is this issue closed? There doesn't seem to be a resolution and I'm still seeing the same issue today, over 2 years after it was reported. Installed initially on macOS Catalina 10.15.7 via Homebrew. $ aws-shell
/usr/local/Cellar/aws-shell/0.2.1_3/libexec/lib/python3.9/site-packages/jmespath/visitor.py:32: SyntaxWarning: "is" with a literal. Did you mean "=="?
if x is 0 or x is 1:
/usr/local/Cellar/aws-shell/0.2.1_3/libexec/lib/python3.9/site-packages/jmespath/visitor.py:32: SyntaxWarning: "is" with a literal. Did you mean "=="?
if x is 0 or x is 1:
/usr/local/Cellar/aws-shell/0.2.1_3/libexec/lib/python3.9/site-packages/jmespath/visitor.py:34: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif y is 0 or y is 1:
/usr/local/Cellar/aws-shell/0.2.1_3/libexec/lib/python3.9/site-packages/jmespath/visitor.py:34: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif y is 0 or y is 1:
/usr/local/Cellar/aws-shell/0.2.1_3/libexec/lib/python3.9/site-packages/jmespath/visitor.py:260: SyntaxWarning: "is" with a literal. Did you mean "=="?
if original_result is 0:
First run, creating autocomplete index...
Traceback (most recent call last):
File "/usr/local/Cellar/aws-shell/0.2.1_3/libexec/lib/python3.9/site-packages/awsshell/utils.py", line 84, in file_contents
with open(filename, mode) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/erhhungy/.aws/shell/cache/completions-1.16.313.json'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/Cellar/aws-shell/0.2.1_3/libexec/lib/python3.9/site-packages/awsshell/index/completion.py", line 63, in load_index
contents = self._fslayer.file_contents(filename)
File "/usr/local/Cellar/aws-shell/0.2.1_3/libexec/lib/python3.9/site-packages/awsshell/utils.py", line 87, in file_contents
raise FileReadError(str(e))
awsshell.utils.FileReadError: [Errno 2] No such file or directory: '/Users/erhhungy/.aws/shell/cache/completions-1.16.313.json'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/Cellar/aws-shell/0.2.1_3/libexec/lib/python3.9/site-packages/awsshell/__init__.py", line 39, in main
index_str = indexer.load_index(utils.AWSCLI_VERSION)
File "/usr/local/Cellar/aws-shell/0.2.1_3/libexec/lib/python3.9/site-packages/awsshell/index/completion.py", line 65, in load_index
raise IndexLoadError(str(e))
awsshell.index.completion.IndexLoadError: [Errno 2] No such file or directory: '/Users/erhhungy/.aws/shell/cache/completions-1.16.313.json'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/aws-shell", line 33, in <module>
sys.exit(load_entry_point('aws-shell==0.2.1', 'console_scripts', 'aws-shell')())
File "/usr/local/Cellar/aws-shell/0.2.1_3/libexec/lib/python3.9/site-packages/awsshell/__init__.py", line 47, in main
write_index(index_file)
File "/usr/local/Cellar/aws-shell/0.2.1_3/libexec/lib/python3.9/site-packages/awsshell/makeindex.py", line 63, in write_index
driver = awscli.clidriver.create_clidriver()
File "/usr/local/Cellar/aws-shell/0.2.1_3/libexec/lib/python3.9/site-packages/awscli/clidriver.py", line 77, in create_clidriver
load_plugins(session.full_config.get('plugins', {}),
File "/usr/local/Cellar/aws-shell/0.2.1_3/libexec/lib/python3.9/site-packages/awscli/plugin.py", line 44, in load_plugins
modules = _import_plugins(plugin_mapping)
File "/usr/local/Cellar/aws-shell/0.2.1_3/libexec/lib/python3.9/site-packages/awscli/plugin.py", line 61, in _import_plugins
module = __import__(path, fromlist=[module])
ModuleNotFoundError: No module named '/usr/local/opt/awscli/libexec/lib/python3' I then tried the "update from master branch" suggestion to version 0.2.2, but it didn't seem to help: /usr/local/Cellar/aws-shell/0.2.1_3/libexec/bin/python3 -m pip install git+https://github.com/awslabs/aws-shell.git
Collecting git+https://github.com/awslabs/aws-shell.git
Cloning https://github.com/awslabs/aws-shell.git to /private/var/folders/lb/r6s0bsf17n1dpfmy58zp3b9w0000gn/T/pip-req-build-tn02j7j7
Requirement already satisfied: awscli<2.0.0,>=1.16.10 in /usr/local/Cellar/aws-shell/0.2.1_3/libexec/lib/python3.9/site-packages (from aws-shell==0.2.2) (1.16.313)
Requirement already satisfied: prompt-toolkit<1.1.0,>=1.0.0 in /usr/local/Cellar/aws-shell/0.2.1_3/libexec/lib/python3.9/site-packages (from aws-shell==0.2.2) (1.0.18)
Requirement already satisfied: boto3<2.0.0,>=1.9.0 in /usr/local/Cellar/aws-shell/0.2.1_3/libexec/lib/python3.9/site-packages (from aws-shell==0.2.2) (1.10.49)
Requirement already satisfied: configobj<6.0.0,>=5.0.6 in /usr/local/Cellar/aws-shell/0.2.1_3/libexec/lib/python3.9/site-packages (from aws-shell==0.2.2) (5.0.6)
Requirement already satisfied: Pygments<3.0.0,>=2.1.3 in /usr/local/Cellar/aws-shell/0.2.1_3/libexec/lib/python3.9/site-packages (from aws-shell==0.2.2) (2.5.2)
Requirement already satisfied: botocore==1.13.49 in /usr/local/Cellar/aws-shell/0.2.1_3/libexec/lib/python3.9/site-packages (from awscli<2.0.0,>=1.16.10->aws-shell==0.2.2) (1.13.49)
Requirement already satisfied: docutils<0.16,>=0.10 in /usr/local/Cellar/aws-shell/0.2.1_3/libexec/lib/python3.9/site-packages (from awscli<2.0.0,>=1.16.10->aws-shell==0.2.2) (0.15.2)
Requirement already satisfied: rsa<=3.5.0,>=3.1.2 in /usr/local/Cellar/aws-shell/0.2.1_3/libexec/lib/python3.9/site-packages (from awscli<2.0.0,>=1.16.10->aws-shell==0.2.2) (3.4.2)
Requirement already satisfied: s3transfer<0.3.0,>=0.2.0 in /usr/local/Cellar/aws-shell/0.2.1_3/libexec/lib/python3.9/site-packages (from awscli<2.0.0,>=1.16.10->aws-shell==0.2.2) (0.2.1)
Requirement already satisfied: PyYAML<5.3,>=3.10 in /usr/local/Cellar/aws-shell/0.2.1_3/libexec/lib/python3.9/site-packages (from awscli<2.0.0,>=1.16.10->aws-shell==0.2.2) (5.2)
Requirement already satisfied: colorama<0.4.2,>=0.2.5 in /usr/local/Cellar/aws-shell/0.2.1_3/libexec/lib/python3.9/site-packages (from awscli<2.0.0,>=1.16.10->aws-shell==0.2.2) (0.4.1)
Requirement already satisfied: six>=1.9.0 in /usr/local/Cellar/aws-shell/0.2.1_3/libexec/lib/python3.9/site-packages (from prompt-toolkit<1.1.0,>=1.0.0->aws-shell==0.2.2) (1.13.0)
Requirement already satisfied: wcwidth in /usr/local/Cellar/aws-shell/0.2.1_3/libexec/lib/python3.9/site-packages (from prompt-toolkit<1.1.0,>=1.0.0->aws-shell==0.2.2) (0.1.8)
Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in /usr/local/Cellar/aws-shell/0.2.1_3/libexec/lib/python3.9/site-packages (from boto3<2.0.0,>=1.9.0->aws-shell==0.2.2) (0.9.4)
Requirement already satisfied: python-dateutil<3.0.0,>=2.1 in /usr/local/Cellar/aws-shell/0.2.1_3/libexec/lib/python3.9/site-packages (from botocore==1.13.49->awscli<2.0.0,>=1.16.10->aws-shell==0.2.2) (2.8.1)
Requirement already satisfied: urllib3<1.26,>=1.20 in /usr/local/Cellar/aws-shell/0.2.1_3/libexec/lib/python3.9/site-packages (from botocore==1.13.49->awscli<2.0.0,>=1.16.10->aws-shell==0.2.2) (1.25.7)
Requirement already satisfied: pyasn1>=0.1.3 in /usr/local/Cellar/aws-shell/0.2.1_3/libexec/lib/python3.9/site-packages (from rsa<=3.5.0,>=3.1.2->awscli<2.0.0,>=1.16.10->aws-shell==0.2.2) (0.4.8)
Building wheels for collected packages: aws-shell
Building wheel for aws-shell (setup.py) ... done
Created wheel for aws-shell: filename=aws_shell-0.2.2-py2.py3-none-any.whl size=50556 sha256=fadb788aeb50428a0ac56fad06cf0065af4b2e6d314affb4603380d0980845e4
Stored in directory: /private/var/folders/lb/r6s0bsf17n1dpfmy58zp3b9w0000gn/T/pip-ephem-wheel-cache-84434u0p/wheels/3a/9f/59/e483fb27c7863a2fcfa31ac1bd1262870b41d369eb8bed958a
Successfully built aws-shell
Installing collected packages: aws-shell
Attempting uninstall: aws-shell
Found existing installation: aws-shell 0.2.1
Uninstalling aws-shell-0.2.1:
Successfully uninstalled aws-shell-0.2.1
Successfully installed aws-shell-0.2.2 Same issue, though errors start from the "First run, creating autocomplete index..." line. |
Any updates on this? |
Also having the same problem on Linux Mint 20.1 with 0.2.2, like others here installing from master does not solve it. But it was because I had not used pip3 to install aws-shell. I uninstalled, re-installed using pip3 and upgraded the version of awscli also and now it works fine. |
Needed to use pip3 on Debian 10. |
Hi, when I run aws-shell onMac(Python:2.7.10), and I got an error like this
The text was updated successfully, but these errors were encountered: