Failure during installing the azure-cli 2.0 in Bash on Ubuntu on Windows #1075

Closed
troydai opened this Issue Oct 12, 2016 · 3 comments

Comments

Projects
None yet
2 participants
@troydai
Contributor

troydai commented Oct 12, 2016

Log:

11:33 $ curl -L https://aka.ms/InstallAzureCli | sudo bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   167  100   167    0     0    601      0 --:--:-- --:--:-- --:--:--   605[sudo] password for troydai:
100  1048  100  1048    0     0   2415      0 --:--:-- --:--:-- --:--:--  2415

Downloading Azure CLI install script from https://azurecliprod.blob.core.windows.net/install.py to /tmp/azure_cli_install_tmp_YQ8o.
######################################################################## 100.0%
Running install script.
In what directory would you like to place the install? (leave blank to use /usr/local/az):
Directory '/usr/local/az' does not exist. Creating directory...
We will install at '/usr/local/az'.
In what directory would you like to place the executable? (leave blank to use /usr/local/bin):
The executable will be in '/usr/local/bin'.
Executing: /usr/bin/python virtualenv.py --python /usr/bin/python /usr/local/az
Already using interpreter /usr/bin/python
New python executable in /usr/local/az/bin/python
Installing setuptools, pip, wheel...done.
Executing: /usr/local/az/bin/pip install --cache-dir /tmp/tmp6HNHbZ azure-cli --upgrade
Collecting azure-cli
/usr/local/az/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
/usr/local/az/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Downloading azure-cli-0.1.0b7.tar.gz
Collecting azure-cli-core (from azure-cli)
  Downloading azure-cli-core-0.1.0b7.tar.gz (42kB)
    100% |████████████████████████████████| 51kB 2.1MB/s
Collecting azure-cli-component (from azure-cli)
  Downloading azure-cli-component-0.1.0b7.tar.gz
Collecting azure-cli-configure (from azure-cli)
  Downloading azure-cli-configure-0.1.0b7.tar.gz
Collecting azure-cli-feedback (from azure-cli)
  Downloading azure-cli-feedback-0.1.0b7.tar.gz
Collecting azure-cli-network (from azure-cli)
  Downloading azure-cli-network-0.1.0b7.tar.gz (120kB)
    100% |████████████████████████████████| 122kB 3.1MB/s
Collecting azure-cli-profile (from azure-cli)
  Downloading azure-cli-profile-0.1.0b7.tar.gz
Collecting azure-cli-resource (from azure-cli)
  Downloading azure-cli-resource-0.1.0b7.tar.gz
Collecting azure-cli-role (from azure-cli)
  Downloading azure-cli-role-0.1.0b7.tar.gz
Collecting azure-cli-storage (from azure-cli)
  Downloading azure-cli-storage-0.1.0b7.tar.gz
Collecting azure-cli-vm (from azure-cli)
  Downloading azure-cli-vm-0.1.0b7.tar.gz (58kB)
    100% |████████████████████████████████| 61kB 3.1MB/s
Collecting adal>=0.4.1 (from azure-cli-core->azure-cli)
  Downloading adal-0.4.1-py2.py3-none-any.whl (48kB)
    100% |████████████████████████████████| 51kB 2.6MB/s
Collecting applicationinsights (from azure-cli-core->azure-cli)
  Downloading applicationinsights-0.10.0.tar.gz
Collecting argcomplete>=1.3.0 (from azure-cli-core->azure-cli)
  Downloading argcomplete-1.5.1-py2.py3-none-any.whl
Collecting azure==2.0.0rc6 (from azure-cli-core->azure-cli)
  Downloading azure-2.0.0rc6-py2.py3-none-any.whl
Collecting azure-mgmt-trafficmanager==0.30.0rc6 (from azure-cli-core->azure-cli)
  Downloading azure_mgmt_trafficmanager-0.30.0rc6-py2.py3-none-any.whl
Collecting azure-mgmt-dns==0.30.0rc6 (from azure-cli-core->azure-cli)
  Downloading azure_mgmt_dns-0.30.0rc6-py2.py3-none-any.whl
Collecting colorama (from azure-cli-core->azure-cli)
  Downloading colorama-0.3.7-py2.py3-none-any.whl
Collecting jmespath (from azure-cli-core->azure-cli)
  Downloading jmespath-0.9.0-py2.py3-none-any.whl
Collecting msrest>=0.4.0 (from azure-cli-core->azure-cli)
  Downloading msrest-0.4.4-py2-none-any.whl (109kB)
    100% |████████████████████████████████| 112kB 3.4MB/s
Collecting msrestazure>=0.4.0 (from azure-cli-core->azure-cli)
  Downloading msrestazure-0.4.3-py2-none-any.whl (61kB)
    100% |████████████████████████████████| 71kB 3.5MB/s
Requirement already up-to-date: pip in /usr/local/az/lib/python2.7/site-packages (from azure-cli-core->azure-cli)
Collecting pygments (from azure-cli-core->azure-cli)
  Downloading Pygments-2.1.3-py2.py3-none-any.whl (755kB)
    100% |████████████████████████████████| 757kB 1.6MB/s
Collecting pyyaml (from azure-cli-core->azure-cli)
  Downloading PyYAML-3.12.tar.gz (253kB)
    100% |████████████████████████████████| 256kB 2.9MB/s
Collecting requests (from azure-cli-core->azure-cli)
  Downloading requests-2.11.1-py2.py3-none-any.whl (514kB)
    100% |████████████████████████████████| 522kB 2.2MB/s
Collecting six (from azure-cli-core->azure-cli)
  Downloading six-1.10.0-py2.py3-none-any.whl
Collecting tabulate (from azure-cli-core->azure-cli)
  Downloading tabulate-0.7.5.tar.gz
Collecting enum34 (from azure-cli-core->azure-cli)
  Downloading enum34-1.1.6-py2-none-any.whl
Collecting pyopenssl (from azure-cli-core->azure-cli)
  Downloading pyOpenSSL-16.1.0-py2.py3-none-any.whl (43kB)
    100% |████████████████████████████████| 51kB 4.3MB/s
Collecting ndg-httpsclient (from azure-cli-core->azure-cli)
  Downloading ndg_httpsclient-0.4.2.tar.gz
Collecting pyasn1 (from azure-cli-core->azure-cli)
  Downloading pyasn1-0.1.9-py2.py3-none-any.whl
Collecting azure-mgmt-authorization==0.30.0rc6 (from azure-cli-role->azure-cli)
  Downloading azure_mgmt_authorization-0.30.0rc6-py2.py3-none-any.whl
Collecting azure-graphrbac==0.30.0rc6 (from azure-cli-role->azure-cli)
  Downloading azure_graphrbac-0.30.0rc6-py2.py3-none-any.whl (43kB)
    100% |████████████████████████████████| 51kB 4.7MB/s
Collecting cryptography>=1.1.0 (from adal>=0.4.1->azure-cli-core->azure-cli)
  Downloading cryptography-1.5.2.tar.gz (400kB)
    100% |████████████████████████████████| 409kB 2.5MB/s
Collecting python-dateutil>=2.1.0 (from adal>=0.4.1->azure-cli-core->azure-cli)
  Downloading python_dateutil-2.5.3-py2.py3-none-any.whl (201kB)
    100% |████████████████████████████████| 204kB 4.7MB/s
Collecting PyJWT>=1.0.0 (from adal>=0.4.1->azure-cli-core->azure-cli)
  Downloading PyJWT-1.4.2-py2.py3-none-any.whl
Collecting azure-mgmt==0.30.0rc6 (from azure==2.0.0rc6->azure-cli-core->azure-cli)
  Downloading azure_mgmt-0.30.0rc6-py2.py3-none-any.whl
Collecting azure-storage==0.33.0 (from azure==2.0.0rc6->azure-cli-core->azure-cli)
  Downloading azure_storage-0.33.0-py2-none-any.whl (182kB)
    100% |████████████████████████████████| 184kB 1.2MB/s
Collecting azure-servicebus==0.20.3 (from azure==2.0.0rc6->azure-cli-core->azure-cli)
  Downloading azure_servicebus-0.20.3-py2.py3-none-any.whl
Collecting azure-batch==1.0.0 (from azure==2.0.0rc6->azure-cli-core->azure-cli)
  Downloading azure_batch-1.0.0-py2.py3-none-any.whl (233kB)
    100% |████████████████████████████████| 235kB 4.3MB/s
Collecting azure-servicemanagement-legacy==0.20.4 (from azure==2.0.0rc6->azure-cli-core->azure-cli)
  Downloading azure_servicemanagement_legacy-0.20.4-py2.py3-none-any.whl (79kB)
    100% |████████████████████████████████| 81kB 5.6MB/s
Collecting azure-common[autorest]==1.1.4 (from azure-mgmt-trafficmanager==0.30.0rc6->azure-cli-core->azure-cli)
  Downloading azure_common-1.1.4-py2.py3-none-any.whl
Collecting azure-mgmt-nspkg (from azure-mgmt-trafficmanager==0.30.0rc6->azure-cli-core->azure-cli)
  Downloading azure_mgmt_nspkg-1.0.0-py2.py3-none-any.whl
Collecting isodate>=0.5.4 (from msrest>=0.4.0->azure-cli-core->azure-cli)
  Downloading isodate-0.5.4.tar.gz
Collecting keyring>=5.6 (from msrest>=0.4.0->azure-cli-core->azure-cli)
  Downloading keyring-9.3.1-py2.py3-none-any.whl
Collecting chardet>=2.3.0 (from msrest>=0.4.0->azure-cli-core->azure-cli)
  Downloading chardet-2.3.0.tar.gz (164kB)
    100% |████████████████████████████████| 174kB 4.7MB/s
Collecting certifi>=2015.9.6.2 (from msrest>=0.4.0->azure-cli-core->azure-cli)
  Downloading certifi-2016.9.26-py2.py3-none-any.whl (377kB)
    100% |████████████████████████████████| 378kB 2.6MB/s
Collecting requests-oauthlib>=0.5.0 (from msrest>=0.4.0->azure-cli-core->azure-cli)
  Downloading requests_oauthlib-0.7.0-py2.py3-none-any.whl
Collecting idna>=2.0 (from cryptography>=1.1.0->adal>=0.4.1->azure-cli-core->azure-cli)
  Downloading idna-2.1-py2.py3-none-any.whl (54kB)
    100% |████████████████████████████████| 61kB 1.6MB/s
Requirement already up-to-date: setuptools>=11.3 in /usr/local/az/lib/python2.7/site-packages (from cryptography>=1.1.0->adal>=0.4.1->azure-cli-core->azure-cli)
Collecting ipaddress (from cryptography>=1.1.0->adal>=0.4.1->azure-cli-core->azure-cli)
  Downloading ipaddress-1.0.17-py2-none-any.whl
Collecting cffi>=1.4.1 (from cryptography>=1.1.0->adal>=0.4.1->azure-cli-core->azure-cli)
  Downloading cffi-1.8.3-cp27-cp27mu-manylinux1_x86_64.whl (386kB)
    100% |████████████████████████████████| 389kB 2.5MB/s
Collecting azure-mgmt-network==0.30.0rc6 (from azure-mgmt==0.30.0rc6->azure==2.0.0rc6->azure-cli-core->azure-cli)
  Downloading azure_mgmt_network-0.30.0rc6-py2.py3-none-any.whl (162kB)
    100% |████████████████████████████████| 163kB 4.3MB/s
Collecting azure-mgmt-compute==0.30.0rc6 (from azure-mgmt==0.30.0rc6->azure==2.0.0rc6->azure-cli-core->azure-cli)
  Downloading azure_mgmt_compute-0.30.0rc6-py2.py3-none-any.whl (111kB)
    100% |████████████████████████████████| 112kB 6.4MB/s
Collecting azure-mgmt-keyvault==0.30.0rc6 (from azure-mgmt==0.30.0rc6->azure==2.0.0rc6->azure-cli-core->azure-cli)
  Downloading azure_mgmt_keyvault-0.30.0rc6-py2.py3-none-any.whl
Collecting azure-mgmt-redis==1.0.0 (from azure-mgmt==0.30.0rc6->azure==2.0.0rc6->azure-cli-core->azure-cli)
  Downloading azure_mgmt_redis-1.0.0-py2.py3-none-any.whl
Collecting azure-mgmt-batch==1.0.0 (from azure-mgmt==0.30.0rc6->azure==2.0.0rc6->azure-cli-core->azure-cli)
  Downloading azure_mgmt_batch-1.0.0-py2.py3-none-any.whl
Collecting azure-mgmt-storage==0.30.0rc6 (from azure-mgmt==0.30.0rc6->azure==2.0.0rc6->azure-cli-core->azure-cli)
  Downloading azure_mgmt_storage-0.30.0rc6-py2.py3-none-any.whl
Collecting azure-mgmt-resource==0.30.0rc6 (from azure-mgmt==0.30.0rc6->azure==2.0.0rc6->azure-cli-core->azure-cli)
  Downloading azure_mgmt_resource-0.30.0rc6-py2.py3-none-any.whl (105kB)
    100% |████████████████████████████████| 112kB 4.5MB/s
Collecting azure-mgmt-scheduler==1.0.0 (from azure-mgmt==0.30.0rc6->azure==2.0.0rc6->azure-cli-core->azure-cli)
  Downloading azure_mgmt_scheduler-1.0.0-py2.py3-none-any.whl (40kB)
    100% |████████████████████████████████| 40kB 2.7MB/s
Collecting azure-mgmt-logic==1.0.0 (from azure-mgmt==0.30.0rc6->azure==2.0.0rc6->azure-cli-core->azure-cli)
  Downloading azure_mgmt_logic-1.0.0-py2.py3-none-any.whl (132kB)
    100% |████████████████████████████████| 133kB 6.0MB/s
Collecting azure-nspkg (from azure-storage==0.33.0->azure==2.0.0rc6->azure-cli-core->azure-cli)
  Downloading azure_nspkg-1.0.0-py2.py3-none-any.whl
Collecting futures (from azure-storage==0.33.0->azure==2.0.0rc6->azure-cli-core->azure-cli)
  Downloading futures-3.0.5-py2-none-any.whl
Collecting secretstorage; sys_platform == "linux2" or sys_platform == "linux" (from keyring>=5.6->msrest>=0.4.0->azure-cli-core->azure-cli)
  Downloading SecretStorage-2.3.1.tar.gz
Collecting oauthlib>=0.6.2 (from requests-oauthlib>=0.5.0->msrest>=0.4.0->azure-cli-core->azure-cli)
  Downloading oauthlib-2.0.0.tar.gz (122kB)
    100% |████████████████████████████████| 122kB 5.4MB/s
Collecting pycparser (from cffi>=1.4.1->cryptography>=1.1.0->adal>=0.4.1->azure-cli-core->azure-cli)
  Downloading pycparser-2.14.tar.gz (223kB)
    100% |████████████████████████████████| 225kB 4.2MB/s
Building wheels for collected packages: azure-cli, azure-cli-core, azure-cli-component, azure-cli-configure, azure-cli-feedback, azure-cli-network, azure-cli-profile, azure-cli-resource, azure-cli-role, azure-cli-storage, azure-cli-vm, applicationinsights, pyyaml, tabulate, ndg-httpsclient, cryptography, isodate, chardet, secretstorage, oauthlib, pycparser
  Running setup.py bdist_wheel for azure-cli ... done
  Stored in directory: /tmp/tmp6HNHbZ/wheels/7b/ac/ca/ec7929b326ce40cc4498afbe86fcb4453e19ab625aead9d600
  Running setup.py bdist_wheel for azure-cli-core ... done
  Stored in directory: /tmp/tmp6HNHbZ/wheels/c5/b9/c0/e4b1f0368424bc7e66354bca321b0e29a77c55201668c74dd8
  Running setup.py bdist_wheel for azure-cli-component ... done
  Stored in directory: /tmp/tmp6HNHbZ/wheels/18/61/d0/2186c0660206bc4ff1f0e5a502f6180ad75d63507fe17a5515
  Running setup.py bdist_wheel for azure-cli-configure ... done
  Stored in directory: /tmp/tmp6HNHbZ/wheels/bc/68/1e/aa58fabb8910c8df23c356d8f129f0ee5c63684112de9033c6
  Running setup.py bdist_wheel for azure-cli-feedback ... done
  Stored in directory: /tmp/tmp6HNHbZ/wheels/a8/04/46/e2862d601691514f93b6c49e4cc90fd517e84ab8dc0572725e
  Running setup.py bdist_wheel for azure-cli-network ... done
  Stored in directory: /tmp/tmp6HNHbZ/wheels/3e/ff/0e/e35bda7e59c34b3426af8689646b52e3eb408b53923f06a76d
  Running setup.py bdist_wheel for azure-cli-profile ... done
  Stored in directory: /tmp/tmp6HNHbZ/wheels/cb/a7/ba/f6642495a01247b8e94bd3ca1e66c2f59b87b974fa3a511dd8
  Running setup.py bdist_wheel for azure-cli-resource ... done
  Stored in directory: /tmp/tmp6HNHbZ/wheels/c9/a0/12/5a868c82063a40fb5e8f8611a046213901a2e2bbbcba34e2f9
  Running setup.py bdist_wheel for azure-cli-role ... done
  Stored in directory: /tmp/tmp6HNHbZ/wheels/fe/f2/eb/0301b504e07f4dbd4e6af7fd7aa038040d591f8c5f36977934
  Running setup.py bdist_wheel for azure-cli-storage ... done
  Stored in directory: /tmp/tmp6HNHbZ/wheels/a4/db/9c/a4c3462403c3ad7eff09dc5f62627840b2270ed60fef24cdd9
  Running setup.py bdist_wheel for azure-cli-vm ... done
  Stored in directory: /tmp/tmp6HNHbZ/wheels/d0/9a/c6/1d850e1def1021ab4128c868938da45c5e5c16dfb4559f2608
  Running setup.py bdist_wheel for applicationinsights ... done
  Stored in directory: /tmp/tmp6HNHbZ/wheels/5d/00/c9/6cae03c0f0dd766574b08bee1a05f91f88d68e6990a1e4282b
  Running setup.py bdist_wheel for pyyaml ... done
  Stored in directory: /tmp/tmp6HNHbZ/wheels/2c/f7/79/13f3a12cd723892437c0cfbde1230ab4d82947ff7b3839a4fc
  Running setup.py bdist_wheel for tabulate ... done
  Stored in directory: /tmp/tmp6HNHbZ/wheels/2e/3b/9d/fd2040f3513decad8244f721c027b70d7868fe2fc0a7c06e5e
  Running setup.py bdist_wheel for ndg-httpsclient ... done
  Stored in directory: /tmp/tmp6HNHbZ/wheels/44/6b/b1/eef816d523c0aa93f350fd2a78d74769e010e2f26623921b76
  Running setup.py bdist_wheel for cryptography ... error
  Complete output from command /usr/local/az/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-gSUHTu/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmpn9Iw9Cpip-wheel- --python-tag cp27:
  unable to execute 'x86_64-linux-gnu-gcc': No such file or directory
  unable to execute 'x86_64-linux-gnu-gcc': No such file or directory

      No working compiler found, or bogus compiler options
      passed to the compiler from Python's distutils module.
      See the error messages above.
      (If they are about -mno-fused-madd and you are on OS/X 10.8,
      see http://stackoverflow.com/questions/22313407/ .)
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-build-gSUHTu/cryptography/setup.py", line 334, in <module>
      **keywords_with_side_effects(sys.argv)
    File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
      _setup_distribution = dist = klass(attrs)
    File "/usr/local/az/local/lib/python2.7/site-packages/setuptools/dist.py", line 315, in __init__
      self.fetch_build_eggs(attrs['setup_requires'])
    File "/usr/local/az/local/lib/python2.7/site-packages/setuptools/dist.py", line 361, in fetch_build_eggs
      replace_conflicting=True,
    File "/usr/local/az/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 853, in resolve
      dist = best[req.key] = env.best_match(req, ws, installer)
    File "/usr/local/az/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1125, in best_match
      return self.obtain(req, installer)
    File "/usr/local/az/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1137, in obtain
      return installer(requirement)
    File "/usr/local/az/local/lib/python2.7/site-packages/setuptools/dist.py", line 429, in fetch_build_egg
      return cmd.easy_install(req)
    File "/usr/local/az/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 665, in easy_install
      return self.install_item(spec, dist.location, tmpdir, deps)
    File "/usr/local/az/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 695, in install_item
      dists = self.install_eggs(spec, download, tmpdir)
    File "/usr/local/az/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 876, in install_eggs
      return self.build_and_install(setup_script, setup_base)
    File "/usr/local/az/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1115, in build_and_install
      self.run_setup(setup_script, setup_base, args)
    File "/usr/local/az/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1103, in run_setup
      raise DistutilsError("Setup script exited with %s" % (v.args[0],))
  distutils.errors.DistutilsError: Setup script exited with 1

  ----------------------------------------
  Failed building wheel for cryptography
  Running setup.py clean for cryptography
  Complete output from command /usr/local/az/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-gSUHTu/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" clean --all:
  unable to execute 'x86_64-linux-gnu-gcc': No such file or directory
  unable to execute 'x86_64-linux-gnu-gcc': No such file or directory

      No working compiler found, or bogus compiler options
      passed to the compiler from Python's distutils module.
      See the error messages above.
      (If they are about -mno-fused-madd and you are on OS/X 10.8,
      see http://stackoverflow.com/questions/22313407/ .)
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-build-gSUHTu/cryptography/setup.py", line 334, in <module>
      **keywords_with_side_effects(sys.argv)
    File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
      _setup_distribution = dist = klass(attrs)
    File "/usr/local/az/local/lib/python2.7/site-packages/setuptools/dist.py", line 315, in __init__
      self.fetch_build_eggs(attrs['setup_requires'])
    File "/usr/local/az/local/lib/python2.7/site-packages/setuptools/dist.py", line 361, in fetch_build_eggs
      replace_conflicting=True,
    File "/usr/local/az/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 853, in resolve
      dist = best[req.key] = env.best_match(req, ws, installer)
    File "/usr/local/az/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1125, in best_match
      return self.obtain(req, installer)
    File "/usr/local/az/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1137, in obtain
      return installer(requirement)
    File "/usr/local/az/local/lib/python2.7/site-packages/setuptools/dist.py", line 429, in fetch_build_egg
      return cmd.easy_install(req)
    File "/usr/local/az/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 665, in easy_install
      return self.install_item(spec, dist.location, tmpdir, deps)
    File "/usr/local/az/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 695, in install_item
      dists = self.install_eggs(spec, download, tmpdir)
    File "/usr/local/az/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 876, in install_eggs
      return self.build_and_install(setup_script, setup_base)
    File "/usr/local/az/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1115, in build_and_install
      self.run_setup(setup_script, setup_base, args)
    File "/usr/local/az/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1103, in run_setup
      raise DistutilsError("Setup script exited with %s" % (v.args[0],))
  distutils.errors.DistutilsError: Setup script exited with 1

  ----------------------------------------
  Failed cleaning build dir for cryptography
  Running setup.py bdist_wheel for isodate ... done
  Stored in directory: /tmp/tmp6HNHbZ/wheels/61/c0/d2/6b4a10c222ba9261ab9872a8f05d471652962284e8c677e5e7
  Running setup.py bdist_wheel for chardet ... done
  Stored in directory: /tmp/tmp6HNHbZ/wheels/28/8c/bf/a69199bd4901d84e13362f95a9ea7bc9a691fed2d655a90bc4
  Running setup.py bdist_wheel for secretstorage ... done
  Stored in directory: /tmp/tmp6HNHbZ/wheels/c7/58/c5/d09bed2136a4e88ed403f68c91f86293b46eecb719c00ef0d6
  Running setup.py bdist_wheel for oauthlib ... done
  Stored in directory: /tmp/tmp6HNHbZ/wheels/e4/e1/92/68af4b20ac26182fbd623647af92118fc4cdbdb2c613030a67
  Running setup.py bdist_wheel for pycparser ... done
  Stored in directory: /tmp/tmp6HNHbZ/wheels/9b/f4/2e/d03e949a551719a1ffcb659f2c63d8444f4df12e994ce52112
Successfully built azure-cli azure-cli-core azure-cli-component azure-cli-configure azure-cli-feedback azure-cli-network azure-cli-profile azure-cli-resource azure-cli-role azure-cli-storage azure-cli-vm applicationinsights pyyaml tabulate ndg-httpsclient isodate chardet secretstorage oauthlib pycparser
Failed to build cryptography
Installing collected packages: idna, pyasn1, six, enum34, ipaddress, pycparser, cffi, cryptography, python-dateutil, requests, PyJWT, adal, applicationinsights, argcomplete, azure-nspkg, isodate, secretstorage, keyring, chardet, certifi, oauthlib, requests-oauthlib, msrest, msrestazure, azure-common, azure-mgmt-nspkg, azure-mgmt-network, azure-mgmt-compute, azure-mgmt-keyvault, azure-mgmt-redis, azure-mgmt-batch, azure-mgmt-storage, azure-mgmt-resource, azure-mgmt-scheduler, azure-mgmt-logic, azure-mgmt, futures, azure-storage, azure-servicebus, azure-batch, azure-servicemanagement-legacy, azure, azure-mgmt-trafficmanager, azure-mgmt-dns, colorama, jmespath, pygments, pyyaml, tabulate, pyopenssl, ndg-httpsclient, azure-cli-core, azure-cli-component, azure-cli-configure, azure-cli-feedback, azure-cli-network, azure-cli-profile, azure-cli-resource, azure-mgmt-authorization, azure-graphrbac, azure-cli-role, azure-cli-storage, azure-cli-vm, azure-cli
  Running setup.py install for cryptography ... error
    Complete output from command /usr/local/az/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-gSUHTu/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-NORmKj-record/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/az/include/site/python2.7/cryptography:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-2.7
    creating build/lib.linux-x86_64-2.7/cryptography
    copying src/cryptography/__about__.py -> build/lib.linux-x86_64-2.7/cryptography
    copying src/cryptography/__init__.py -> build/lib.linux-x86_64-2.7/cryptography
    copying src/cryptography/exceptions.py -> build/lib.linux-x86_64-2.7/cryptography
    copying src/cryptography/fernet.py -> build/lib.linux-x86_64-2.7/cryptography
    copying src/cryptography/utils.py -> build/lib.linux-x86_64-2.7/cryptography
    creating build/lib.linux-x86_64-2.7/cryptography/hazmat
    copying src/cryptography/hazmat/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat
    creating build/lib.linux-x86_64-2.7/cryptography/x509
    copying src/cryptography/x509/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/x509
    copying src/cryptography/x509/base.py -> build/lib.linux-x86_64-2.7/cryptography/x509
    copying src/cryptography/x509/extensions.py -> build/lib.linux-x86_64-2.7/cryptography/x509
    copying src/cryptography/x509/general_name.py -> build/lib.linux-x86_64-2.7/cryptography/x509
    copying src/cryptography/x509/name.py -> build/lib.linux-x86_64-2.7/cryptography/x509
    copying src/cryptography/x509/oid.py -> build/lib.linux-x86_64-2.7/cryptography/x509
    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/backends
    copying src/cryptography/hazmat/backends/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends
    copying src/cryptography/hazmat/backends/interfaces.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends
    copying src/cryptography/hazmat/backends/multibackend.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends
    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings
    copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings
    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/padding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/serialization.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
    copying src/cryptography/hazmat/backends/commoncrypto/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
    copying src/cryptography/hazmat/backends/commoncrypto/backend.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
    copying src/cryptography/hazmat/backends/commoncrypto/ciphers.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
    copying src/cryptography/hazmat/backends/commoncrypto/hashes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
    copying src/cryptography/hazmat/backends/commoncrypto/hmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/encode_asn1.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
    copying src/cryptography/hazmat/bindings/commoncrypto/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
    copying src/cryptography/hazmat/bindings/commoncrypto/binding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
    copying src/cryptography/hazmat/bindings/openssl/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
    copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
    copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
    copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
    copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
    copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
    copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/interfaces
    copying src/cryptography/hazmat/primitives/interfaces/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/interfaces
    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
    copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
    copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
    copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
    copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
    copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
    copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
    copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
    copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
    copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
    copying src/cryptography/hazmat/primitives/twofactor/utils.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
    running egg_info
    writing requirements to src/cryptography.egg-info/requires.txt
    writing src/cryptography.egg-info/PKG-INFO
    writing top-level names to src/cryptography.egg-info/top_level.txt
    writing dependency_links to src/cryptography.egg-info/dependency_links.txt
    writing entry points to src/cryptography.egg-info/entry_points.txt
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'src/cryptography.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    no previously-included directories found matching 'docs/_build'
    warning: no previously-included files matching '*' found under directory 'vectors'
    writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
    running build_ext
    generating cffi module 'build/temp.linux-x86_64-2.7/_padding.c'
    creating build/temp.linux-x86_64-2.7
    generating cffi module 'build/temp.linux-x86_64-2.7/_constant_time.c'
    generating cffi module 'build/temp.linux-x86_64-2.7/_openssl.c'
    building '_openssl' extension
    creating build/temp.linux-x86_64-2.7/build
    creating build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7
    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c build/temp.linux-x86_64-2.7/_openssl.c -o build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7/_openssl.o
    unable to execute 'x86_64-linux-gnu-gcc': No such file or directory
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/local/az/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-gSUHTu/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-NORmKj-record/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/az/include/site/python2.7/cryptography" failed with error code 1 in /tmp/pip-build-gSUHTu/cryptography/
Traceback (most recent call last):
  File "/tmp/azure_cli_install_tmp_YQ8o", line 148, in <module>
    main()
  File "/tmp/azure_cli_install_tmp_YQ8o", line 137, in main
    install_cli(install_dir, tmp_dir)
  File "/tmp/azure_cli_install_tmp_YQ8o", line 85, in install_cli
    exec_command(install_cmd)
  File "/tmp/azure_cli_install_tmp_YQ8o", line 58, in exec_command
    check_call(command_list, cwd=cwd, env=env)
  File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/local/az/bin/pip', 'install', '--cache-dir', '/tmp/tmp6HNHbZ', 'azure-cli', '--upgrade']' returned non-zero exit status 1
@derekbekoe

This comment has been minimized.

Show comment
Hide comment
@derekbekoe

derekbekoe Oct 12, 2016

Member

@troydai Please run the following commands before installing the CLI on Bash for Windows.

sudo apt-get update
sudo apt-get install -y libssl-dev libffi-dev
sudo apt-get install -y python-dev

Duplicate of #1053

Member

derekbekoe commented Oct 12, 2016

@troydai Please run the following commands before installing the CLI on Bash for Windows.

sudo apt-get update
sudo apt-get install -y libssl-dev libffi-dev
sudo apt-get install -y python-dev

Duplicate of #1053

@troydai

This comment has been minimized.

Show comment
Hide comment
@troydai

troydai Oct 12, 2016

Contributor

Thanks @derekbekoe . Just about to report that apt-get works for me.

Contributor

troydai commented Oct 12, 2016

Thanks @derekbekoe . Just about to report that apt-get works for me.

@derekbekoe

This comment has been minimized.

Show comment
Hide comment
@derekbekoe

derekbekoe Oct 12, 2016

Member

Created a PR to update the README since two separate GitHub issues means the docs for BASH on Windows were not easy to find.

Member

derekbekoe commented Oct 12, 2016

Created a PR to update the README since two separate GitHub issues means the docs for BASH on Windows were not easy to find.

@derekbekoe derekbekoe closed this in #1076 Oct 12, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment