cevoaustralia / aws-google-auth

Provides AWS STS credentials based on Google Apps SAML SSO auth (what a jumble!)
MIT License
537 stars 181 forks source link

Error trying to install on iSH app (via `pip install aws-google-auth`) #175

Closed jjarava closed 4 years ago

jjarava commented 4 years ago

Hi!

I'm tying to install this on the iSH "Linux emulator" app (https://ish.app/) but I'm getting an error when the install run.

The full logs of the error are:

JJiPad3:~# pip install aws-google-auth
Collecting aws-google-auth
  Downloading https://files.pythonhosted.org/packages/52/be/959a3f86085bbb61b26e96bdc2c68f9594521f91afeae28323b7e38f56de/aws-google-auth-0.0.34.tar.gz
Collecting beautifulsoup4
  Downloading https://files.pythonhosted.org/packages/cb/a1/c698cf319e9cfed6b17376281bd0efc6bfc8465698f54170ef60a485ab5d/beautifulsoup4-4.8.2-py3-none-any.whl (106kB)
     |████████████████████████████████| 112kB 819kB/s 
Requirement already satisfied: boto3 in /usr/lib/python3.7/site-packages (from aws-google-auth) (1.11.0)
Collecting configparser
  Downloading https://files.pythonhosted.org/packages/7a/2a/95ed0501cf5d8709490b1d3a3f9b5cf340da6c433f896bbe9ce08dbe6785/configparser-4.0.2-py2.py3-none-any.whl
Collecting keyring
  Downloading https://files.pythonhosted.org/packages/c2/be/fa3593f8ebf1956b363409fd36a098ea5e538754fd547006f92634435664/keyring-21.1.1-py3-none-any.whl
Collecting keyrings.alt
  Downloading https://files.pythonhosted.org/packages/0c/3e/a39c3fb722ffdee50db5dff1e794a01cab7e0408bba1aa0e02e28a87667d/keyrings.alt-3.4.0-py2.py3-none-any.whl
Collecting lxml
  Downloading https://files.pythonhosted.org/packages/39/2b/0a66d5436f237aff76b91e68b4d8c041d145ad0a2cdeefe2c42f76ba2857/lxml-4.5.0.tar.gz (4.5MB)
     |████████████████████████████████| 4.5MB 1.0MB/s 
Collecting Pillow
  Downloading https://files.pythonhosted.org/packages/39/47/f28067b187dd664d205f75b07dcc6e0e95703e134008a14814827eebcaab/Pillow-7.0.0.tar.gz (38.2MB)
     |████████████████████████████████| 38.2MB 218kB/s 
Collecting requests
  Downloading https://files.pythonhosted.org/packages/1a/70/1935c770cb3be6e3a8b78ced23d7e0f3b187f5cbfab4749523ed65d7c9b1/requests-2.23.0-py2.py3-none-any.whl (58kB)
     |████████████████████████████████| 61kB 552kB/s 
Requirement already satisfied: six in /usr/lib/python3.7/site-packages (from aws-google-auth) (1.13.0)
Collecting tabulate
  Downloading https://files.pythonhosted.org/packages/c4/41/523f6a05e6dc3329a5660f6a81254c6cd87e5cfb5b7482bae3391d86ec3a/tabulate-0.8.6.tar.gz (45kB)
     |████████████████████████████████| 51kB 527kB/s 
Collecting tzlocal
 Downloading https://files.pythonhosted.org/packages/ef/99/53bd1ac9349262f59c1c421d8fcc2559ae8a5eeffed9202684756b648d33/tzlocal-2.0.0-py2.py3-none-any.whl
Collecting soupsieve>=1.2
  Downloading https://files.pythonhosted.org/packages/05/cf/ea245e52f55823f19992447b008bcbb7f78efc5960d77f6c34b5b45b36dd/soupsieve-2.0-py2.py3-none-any.whl
Requirement already satisfied: s3transfer<0.4.0,>=0.3.0 in /usr/lib/python3.7/site-packages (from boto3->aws-google-auth) (0.3.0)
Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in /usr/lib/python3.7/site-packages (from boto3->aws-google-auth) (0.9.4)
Requirement already satisfied: botocore<1.15.0,>=1.14.0 in /usr/lib/python3.7/site-packages (from boto3->aws-google-auth) (1.14.0)
Collecting jeepney>=0.4.2; sys_platform == "linux"
  Downloading https://files.pythonhosted.org/packages/79/31/2e8d42727595faf224c6dbb748c32b192e212f25495fe841fb7ce8e168b8/jeepney-0.4.3-py3-none-any.whl
Collecting importlib-metadata; python_version < "3.8"
  Downloading https://files.pythonhosted.org/packages/8b/03/a00d504808808912751e64ccf414be53c29cad620e3de2421135fcae3025/importlib_metadata-1.5.0-py2.py3-none-any.whl
Collecting SecretStorage>=3; sys_platform == "linux"
  Downloading https://files.pythonhosted.org/packages/c3/50/8a02cad020e949e6d7105f5f4530d41e3febcaa5b73f8f2148aacb3aeba5/SecretStorage-3.1.2-py3-none-any.whl
Collecting idna<3,>=2.5
  Downloading https://files.pythonhosted.org/packages/89/e3/afebe61c546d18fb1709a61bee788254b40e736cff7271c7de5de2dc4128/idna-2.9-py2.py3-none-any.whl (58kB)
     |████████████████████████████████| 61kB 427kB/s 
Collecting certifi>=2017.4.17
  Downloading https://files.pythonhosted.org/packages/b9/63/df50cac98ea0d5b006c55a399c3bf1db9da7b5a24de7890bc9cfd5dd9e99/certifi-2019.11.28-py2.py3-none-any.whl (156kB)
     |████████████████████████████████| 163kB 812kB/s 
Collecting chardet<4,>=3.0.2
  Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
     |████████████████████████████████| 143kB 817kB/s 
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /usr/lib/python3.7/site-packages (from requests->aws-google-auth) (1.25.7)
Collecting pytz
  Downloading https://files.pythonhosted.org/packages/e7/f9/f0b53f88060247251bf481fa6ea62cd0d25bf1b11a87888e53ce5b7c8ad2/pytz-2019.3-py2.py3-none-any.whl (509kB)
     |████████████████████████████████| 512kB 814kB/s 
Requirement already satisfied: docutils<0.16,>=0.10 in /usr/lib/python3.7/site-packages (from botocore<1.15.0,>=1.14.0->boto3->aws-google-auth) (0.15.2)
Requirement already satisfied: python-dateutil<3.0.0,>=2.1 in /usr/lib/python3.7/site-packages (from botocore<1.15.0,>=1.14.0->boto3->aws-google-auth) (2.8.1)
Collecting zipp>=0.5
  Downloading https://files.pythonhosted.org/packages/b2/34/bfcb43cc0ba81f527bc4f40ef41ba2ff4080e047acb0586b56b3d017ace4/zipp-3.1.0-py3-none-any.whl
Collecting cryptography
  Downloading https://files.pythonhosted.org/packages/be/60/da377e1bed002716fb2d5d1d1cab720f298cb33ecff7bf7adea72788e4e4/cryptography-2.8.tar.gz (504kB)
     |████████████████████████████████| 512kB 811kB/s 
  Installing build dependencies ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3.7 /usr/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-j95scyzj/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.6.0' wheel 'cffi>=1.8,!=1.11.3; platform_python_implementation != '"'"'PyPy'"'"''
       cwd: None
  Complete output (67 lines):
  Collecting setuptools>=40.6.0
    Downloading https://files.pythonhosted.org/packages/70/b8/b23170ddda9f07c3444d49accde49f2b92f97bb2f2ebc312618ef12e4bd6/setuptools-46.0.0-py3-none-any.whl (582kB)
  Collecting wheel
    Downloading https://files.pythonhosted.org/packages/8c/23/848298cccf8e40f5bbb59009b32848a4c38f4e7f3364297ab3c3e2e2cd14/wheel-0.34.2-py2.py3-none-any.whl
  Collecting cffi!=1.11.3,>=1.8
    Downloading https://files.pythonhosted.org/packages/05/54/3324b0c46340c31b909fcec598696aaec7ddc8c18a63f2db352562d3354c/cffi-1.14.0.tar.gz (463kB)
  Collecting pycparser
    Downloading https://files.pythonhosted.org/packages/ae/e7/d9c3a176ca4b02024debf82342dab36efadfc5776f9c8db077e8f6e71821/pycparser-2.20-py2.py3-none-any.whl (112kB)
  Installing collected packages: setuptools, wheel, pycparser, cffi
      Running setup.py install for cffi: started
      Running setup.py install for cffi: finished with status 'error'
      ERROR: Command errored out with exit status 1:
       command: /usr/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-25r62do6/cffi/setup.py'"'"'; __file__='"'"'/tmp/pip-install-25r62do6/cffi/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-khnr8799/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-j95scyzj/overlay --compile
           cwd: /tmp/pip-install-25r62do6/cffi/
      Complete output (48 lines):
     unable to execute 'gcc': No such file or directory
      unable to execute 'gcc': No such file or directory

          No working compiler found, or bogus compiler options passed to
          the compiler from Python's standard "distutils" module.  See
          the error messages above.  Likely, the problem is not related
          to CFFI but generic to the setup.py of any Python package that
          tries to compile C code.  (Hints: on OS/X 10.8, for errors about
          -mno-fused-madd see http://stackoverflow.com/questions/22313407/
          Otherwise, see https://wiki.python.org/moin/CompLangPython or
          the IRC channel #python on irc.freenode.net.)

          Trying to continue anyway.  If you are trying to install CFFI from
          a build done in a different context, you can ignore this warning.

      running install
      running build
      running build_py
      creating build
      creating build/lib.linux-i686-3.7
      creating build/lib.linux-i686-3.7/cffi
      copying cffi/backend_ctypes.py -> build/lib.linux-i686-3.7/cffi
      copying cffi/error.py -> build/lib.linux-i686-3.7/cffi
      copying cffi/setuptools_ext.py -> build/lib.linux-i686-3.7/cffi
      copying cffi/__init__.py -> build/lib.linux-i686-3.7/cffi
      copying cffi/cffi_opcode.py -> build/lib.linux-i686-3.7/cffi
      copying cffi/vengine_gen.py -> build/lib.linux-i686-3.7/cffi
      copying cffi/pkgconfig.py -> build/lib.linux-i686-3.7/cffi
      copying cffi/model.py -> build/lib.linux-i686-3.7/cffi
      copying cffi/ffiplatform.py -> build/lib.linux-i686-3.7/cffi
      copying cffi/api.py -> build/lib.linux-i686-3.7/cffi
     copying cffi/vengine_gen.py -> build/lib.linux-i686-3.7/cffi
      copying cffi/pkgconfig.py -> build/lib.linux-i686-3.7/cffi
      copying cffi/model.py -> build/lib.linux-i686-3.7/cffi
      copying cffi/ffiplatform.py -> build/lib.linux-i686-3.7/cffi
      copying cffi/api.py -> build/lib.linux-i686-3.7/cffi
      copying cffi/vengine_cpy.py -> build/lib.linux-i686-3.7/cffi
      copying cffi/commontypes.py -> build/lib.linux-i686-3.7/cffi
      copying cffi/lock.py -> build/lib.linux-i686-3.7/cffi
      copying cffi/recompiler.py -> build/lib.linux-i686-3.7/cffi
      copying cffi/cparser.py -> build/lib.linux-i686-3.7/cffi
      copying cffi/verifier.py -> build/lib.linux-i686-3.7/cffi
      copying cffi/_cffi_include.h -> build/lib.linux-i686-3.7/cffi
      copying cffi/parse_c_type.h -> build/lib.linux-i686-3.7/cffi
      copying cffi/_embedding.h -> build/lib.linux-i686-3.7/cffi
      copying cffi/_cffi_errors.h -> build/lib.linux-i686-3.7/cffi
      running build_ext
      building '_cffi_backend' extension
      creating build/temp.linux-i686-3.7
      creating build/temp.linux-i686-3.7/c
      gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python3.7m -c c/_cffi_backend.c -o build/temp.linux-i686-3.7/c/_cffi_backend.o
      unable to execute 'gcc': No such file or directory
      error: command 'gcc' failed with exit status 1
      ----------------------------------------
  ERROR: Command errored out with exit status 1: /usr/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-25r62do6/cffi/setup.py'"'"'; __file__='"'"'/tmp/pip-install-25r62do6/cffi/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-khnr8799/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-j95scyzj/overlay --compile Check the logs for full command output.
  WARNING: You are using pip version 19.3.1; however, version 20.0.2 is available.
  You should consider upgrading via the 'pip install --upgrade pip' command.
  ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3.7 /usr/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-j95scyzj/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.6.0' wheel 'cffi>=1.8,!=1.11.3; platform_python_implementation != '"'"'PyPy'"'"'' Check the logs for full command output.
stevemac007 commented 4 years ago

Looks like you are missing gcc from your install. Maybe installing it will help.

I'm not familiar with iSH, so can't really help with how to get gcc installed.

stevemac007 commented 4 years ago

Reopen if still persists.