-
Notifications
You must be signed in to change notification settings - Fork 96
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
Unable to install aws-sam-cli using Linuxbrew on Ubuntu #25
Comments
where is your python 3 coming from? was it installed via brew? |
Hello Sriram, I have python 2.7 ubuntu@ip-172-31-26-208:~$ python --version And It was not installed via brew. It was installed with below command: sudo apt-get install python2.7 |
Can you please suggest the solution? |
I've also got the same issue. You should try with alternative by using pip: pip install aws-sam-cli. It worked for me. |
Well It did not work for me. |
what error did you get? Do you use python2 or python3? |
try using pip3. It worked for me.
|
We do not recommend pip as it does not give isolation to your installs. also we have bottles now, which are direct binaries, do try that as well.
Following is my output and was a fast install.
|
Hello,
I am getting below error while installing aws-sam-cli using brew:
_==> Installing aws-sam-cli from aws/tap
==> Downloading https://files.pythonhosted.org/packages/92/df/3e8c8a65075d810f8f35157d60c06461061f51c3713c47ca3afaef2c5b89/aws-sam-cli-0.15.0.tar.gz
Already downloaded: /home/ubuntu/.cache/Homebrew/downloads/ff0d5369448d0410046d92b82f88c194df5ef137651c42e41a67b3dac4fd8f76--aws-sam-cli-0.15.0.tar.gz
==> Downloading https://files.pythonhosted.org/packages/37/db/89d6b043b22052109da35416abc3c397655e4bd3cff031446ba02b9654fa/virtualenv-16.4.3.tar.gz
Already downloaded: /home/ubuntu/.cache/Homebrew/downloads/5ef64a64cc03693fde53fa854689f38961d1645c648e8a47d4235e714a07e04d--virtualenv-16.4.3.tar.gz
==> python3 -c import setuptools... --no-user-cfg install --prefix=/tmp/aws-sam-cli--homebrew-virtualenv-20190424-18984-18mx1ju/target --install-scripts=/tmp/aws-sam-cli--homebrew-virtualenv-20190424-18984-18mx1ju/target/bin --single-ver
==> python3 -s /tmp/aws-sam-cli--homebrew-virtualenv-20190424-18984-18mx1ju/target/bin/virtualenv -p python3 /home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.15.0/libexec
==> /home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.15.0/libexec/bin/pip install -v --no-binary :all: --ignore-installed /tmp/aws-sam-cli-20190424-18984-1dct2pk/aws-sam-cli-0.15.0
Last 15 lines from /home/ubuntu/.cache/Homebrew/Logs/aws-sam-cli/03.pip:
Removed build tracker '/tmp/pip-req-tracker-h0274guc'
ERROR: Command "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.15.0/libexec/bin/python3.7 -u -c 'import setuptools, tokenize;file='"'"'/tmp/pip-install-_xw3v7gl/regex/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-gv7tz2zm/install-record.txt --single-version-externally-managed --compile --install-headers /home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.15.0/libexec/include/site/python3.7/regex" failed with error code 1 in /tmp/pip-install-_xw3v7gl/regex/
Exception information:
Traceback (most recent call last):
File "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.15.0/libexec/lib/python3.7/site-packages/pip/_internal/cli/base_command.py", line 178, in main
status = self.run(options, args)
File "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.15.0/libexec/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 414, in run
use_user_site=options.use_user_site,
File "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.15.0/libexec/lib/python3.7/site-packages/pip/_internal/req/init.py", line 58, in install_given_reqs
**kwargs
File "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.15.0/libexec/lib/python3.7/site-packages/pip/_internal/req/req_install.py", line 953, in install
spinner=spinner,
File "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.15.0/libexec/lib/python3.7/site-packages/pip/_internal/utils/misc.py", line 776, in call_subprocess
% (command_desc, proc.returncode, cwd))
pip._internal.exceptions.InstallationError: Command "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.15.0/libexec/bin/python3.7 -u -c 'import setuptools, tokenize;file='"'"'/tmp/pip-install-_xw3v7gl/regex/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-gv7tz2zm/install-record.txt --single-version-externally-managed --compile --install-headers /home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.15.0/libexec/include/site/python3.7/regex" failed with error code 1 in /tmp/pip-install-_xw3v7gl/regex/
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/aws/homebrew-tap/issues_
Can you please help?
The text was updated successfully, but these errors were encountered: