Azure / azure-cli

Azure Command-Line Interface
MIT License
4.03k stars 3k forks source link

macOS install fails: 'Failed building wheel for scandir' #3473

Closed geekzter closed 7 years ago

geekzter commented 7 years ago

Description

Outline the issue here: Install fails: 'Failed building wheel for scandir'

Environment summary

Install Method: How did you install the CLI? (e.g. pip, interactive script, apt-get, Docker, MSI, nightly)
Answer here: curl -L https://aka.ms/InstallAzureCli | bash

CLI Version: What version of the CLI and modules are installed? (Use az --version)
Answer here: N/A, unable to install

OS Version: What OS and version are you using?
Answer here: macOS Sierra 10.12.5

Shell Type: What shell are you using? (e.g. bash, cmd.exe, Bash on Windows)
Answer here: terminal (bash)

EVW-MBA-2013:~ eric$ curl -L https://aka.ms/InstallAzureCli | bash % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 167 100 167 0 0 594 0 --:--:-- --:--:-- --:--:-- 600 100 1252 100 1252 0 0 1157 0 0:00:01 0:00:01 --:--:-- 3243 Downloading Azure CLI install script from https://azurecliprod.blob.core.windows.net/install.py to /var/folders/7m/gx5xyr990jjc26l2_mzcft840000gn/T/azure_cli_install_tmp_XXXX.umWbggEO. ######################################################################## 100.0% 5.84 /var/folders/7m/gx5xyr990jjc26l2_mzcft840000gn/T/azure_cli_install_tmp_XXXX.umWbggEO: OK Running install script. -- Verifying Python version. -- Python version 2.7.10 okay.

===> In what directory would you like to place the install? (leave blank to use '/Users/eric/lib/azure-cli'): -- '/Users/eric/lib/azure-cli' is not empty and may contain a previous installation.

===> Remove this directory? (y/N):

===> In what directory would you like to place the install? (leave blank to use '/Users/eric/lib/azure-cli'): -- '/Users/eric/lib/azure-cli' is not empty and may contain a previous installation.

===> Remove this directory? (y/N):

===> In what directory would you like to place the install? (leave blank to use '/Users/eric/lib/azure-cli'): -- '/Users/eric/lib/azure-cli' is not empty and may contain a previous installation.

===> Remove this directory? (y/N):

===> In what directory would you like to place the install? (leave blank to use '/Users/eric/lib/azure-cli'): -- '/Users/eric/lib/azure-cli' is not empty and may contain a previous installation.

===> Remove this directory? (y/N): y -- Deleted '/Users/eric/lib/azure-cli'. -- Creating directory '/Users/eric/lib/azure-cli'. -- We will install at '/Users/eric/lib/azure-cli'.

===> In what directory would you like to place the 'az' executable? (leave blank to use '/Users/eric/bin'): -- The executable will be in '/Users/eric/bin'. -- Downloading virtualenv package from https://pypi.python.org/packages/source/v/virtualenv/virtualenv-15.0.0.tar.gz. -- Downloaded virtualenv package to /var/folders/7m/gx5xyr990jjc26l2_mzcft840000gn/T/tmpuNq74i/virtualenv-15.0.0.tar.gz. -- Checksum of /var/folders/7m/gx5xyr990jjc26l2_mzcft840000gn/T/tmpuNq74i/virtualenv-15.0.0.tar.gz OK. -- Extracting '/var/folders/7m/gx5xyr990jjc26l2_mzcft840000gn/T/tmpuNq74i/virtualenv-15.0.0.tar.gz' to '/var/folders/7m/gx5xyr990jjc26l2_mzcft840000gn/T/tmpuNq74i'. -- Executing: ['/usr/bin/python', 'virtualenv.py', '--python', '/usr/bin/python', '/Users/eric/lib/azure-cli'] Running virtualenv with interpreter /usr/bin/python2.7 New python executable in /Users/eric/lib/azure-cli/bin/python Installing setuptools, pip, wheel...done. -- Executing: ['/Users/eric/lib/azure-cli/bin/pip', 'install', '--cache-dir', '/var/folders/7m/gx5xyr990jjc26l2_mzcft840000gn/T/tmpuNq74i', 'azure-cli', '--upgrade'] Collecting azure-cli Downloading azure_cli-2.0.6-py2.py3-none-any.whl Collecting azure-cli-nspkg>=2.0.0 (from azure-cli) Downloading azure_cli_nspkg-3.0.0-py2.py3-none-any.whl Collecting azure-cli-iot (from azure-cli) Downloading azure_cli_iot-0.1.5-py2.py3-none-any.whl Collecting azure-cli-role (from azure-cli) Downloading azure_cli_role-2.0.4-py2.py3-none-any.whl Collecting azure-cli-interactive (from azure-cli) Downloading azure_cli_interactive-0.3.2-py2.py3-none-any.whl Collecting azure-cli-cdn (from azure-cli) Downloading azure_cli_cdn-0.0.2-py2.py3-none-any.whl Collecting azure-cli-feedback (from azure-cli) Downloading azure_cli_feedback-2.0.2-py2.py3-none-any.whl Collecting azure-cli-cognitiveservices (from azure-cli) Downloading azure_cli_cognitiveservices-0.1.2-py2.py3-none-any.whl Collecting azure-cli-resource (from azure-cli) Downloading azure_cli_resource-2.0.6-py2.py3-none-any.whl Collecting azure-cli-lab (from azure-cli) Downloading azure_cli_lab-0.0.4-py2.py3-none-any.whl Collecting azure-cli-core (from azure-cli) Downloading azure_cli_core-2.0.6-py2.py3-none-any.whl (83kB) 100% |████████████████████████████████| 92kB 766kB/s Collecting azure-cli-profile (from azure-cli) Downloading azure_cli_profile-2.0.4-py2.py3-none-any.whl Collecting azure-cli-sql (from azure-cli) Downloading azure_cli_sql-2.0.3-py2.py3-none-any.whl Collecting azure-cli-cosmosdb (from azure-cli) Downloading azure_cli_cosmosdb-0.1.6-py2.py3-none-any.whl Collecting azure-cli-dla (from azure-cli) Downloading azure_cli_dla-0.0.6-py2.py3-none-any.whl Collecting azure-cli-acs (from azure-cli) Downloading azure_cli_acs-2.0.6-py2.py3-none-any.whl Collecting azure-cli-redis (from azure-cli) Downloading azure_cli_redis-0.2.3-py2.py3-none-any.whl Collecting azure-cli-keyvault (from azure-cli) Downloading azure_cli_keyvault-2.0.4-py2.py3-none-any.whl Collecting azure-cli-dls (from azure-cli) Downloading azure_cli_dls-0.0.6-py2.py3-none-any.whl Collecting azure-cli-rdbms (from azure-cli) Downloading azure_cli_rdbms-0.0.1-py2.py3-none-any.whl Collecting azure-cli-batch (from azure-cli) Downloading azure_cli_batch-2.0.4-py2.py3-none-any.whl Collecting azure-cli-component (from azure-cli) Downloading azure_cli_component-2.0.4-py2.py3-none-any.whl Collecting azure-cli-network (from azure-cli) Downloading azure_cli_network-2.0.6-py2.py3-none-any.whl (76kB) 100% |████████████████████████████████| 81kB 1.6MB/s Collecting azure-cli-vm (from azure-cli) Downloading azure_cli_vm-2.0.6-py2.py3-none-any.whl (65kB) 100% |████████████████████████████████| 71kB 539kB/s Collecting azure-cli-monitor (from azure-cli) Downloading azure_cli_monitor-0.0.4-py2.py3-none-any.whl Collecting azure-cli-find (from azure-cli) Downloading azure_cli_find-0.2.2-py2.py3-none-any.whl Collecting azure-cli-appservice (from azure-cli) Downloading azure_cli_appservice-0.1.6-py2.py3-none-any.whl Collecting azure-cli-storage (from azure-cli) Downloading azure_cli_storage-2.0.6-py2.py3-none-any.whl (45kB) 100% |████████████████████████████████| 51kB 1.3MB/s Collecting azure-cli-acr (from azure-cli) Downloading azure_cli_acr-2.0.4-py2.py3-none-any.whl Collecting azure-cli-sf (from azure-cli) Downloading azure_cli_sf-1.0.1-py2.py3-none-any.whl Collecting azure-cli-cloud (from azure-cli) Downloading azure_cli_cloud-2.0.2-py2.py3-none-any.whl Collecting azure-cli-configure (from azure-cli) Downloading azure_cli_configure-2.0.6-py2.py3-none-any.whl Collecting azure-nspkg>=2.0.0 (from azure-cli-nspkg>=2.0.0->azure-cli) Downloading azure_nspkg-2.0.0-py2.py3-none-any.whl Collecting pyOpenSSL (from azure-cli-iot->azure-cli) Downloading pyOpenSSL-17.0.0-py2.py3-none-any.whl (51kB) 100% |████████████████████████████████| 61kB 3.4MB/s Collecting azure-cli-command-modules-nspkg>=2.0.0 (from azure-cli-iot->azure-cli) Downloading azure_cli_command_modules_nspkg-2.0.0-py2.py3-none-any.whl Collecting azure-mgmt-iothub==0.2.2 (from azure-cli-iot->azure-cli) Downloading azure_mgmt_iothub-0.2.2-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 1.6MB/s Collecting applicationinsights (from azure-cli-interactive->azure-cli) Downloading applicationinsights-0.10.0.tar.gz Collecting jmespath (from azure-cli-interactive->azure-cli) Downloading jmespath-0.9.2-py2.py3-none-any.whl Collecting prompt-toolkit (from azure-cli-interactive->azure-cli) Downloading prompt_toolkit-1.0.14-py2-none-any.whl (248kB) 100% |████████████████████████████████| 256kB 191kB/s Collecting pyyaml (from azure-cli-interactive->azure-cli) Downloading PyYAML-3.12.tar.gz (253kB) 100% |████████████████████████████████| 256kB 257kB/s Requirement already up-to-date: six in ./lib/azure-cli/lib/python2.7/site-packages (from azure-cli-interactive->azure-cli) Collecting azure-mgmt-cdn==0.30.2 (from azure-cli-cdn->azure-cli) Downloading azure_mgmt_cdn-0.30.2-py2.py3-none-any.whl (50kB) 100% |████████████████████████████████| 51kB 1.1MB/s Collecting azure-mgmt-cognitiveservices==1.0.0 (from azure-cli-cognitiveservices->azure-cli) Downloading azure_mgmt_cognitiveservices-1.0.0-py2.py3-none-any.whl Collecting azure-mgmt-resource==1.1.0rc1 (from azure-cli-resource->azure-cli) Downloading azure_mgmt_resource-1.1.0rc1-py2.py3-none-any.whl (285kB) 100% |████████████████████████████████| 286kB 1.0MB/s Collecting azure-mgmt-devtestlabs==2.0.0 (from azure-cli-lab->azure-cli) Downloading azure_mgmt_devtestlabs-2.0.0-py2.py3-none-any.whl (182kB) 100% |████████████████████████████████| 184kB 699kB/s Collecting tabulate (from azure-cli-core->azure-cli) Downloading tabulate-0.7.7-py2.py3-none-any.whl Collecting msrestazure>=0.4.7 (from azure-cli-core->azure-cli) Downloading msrestazure-0.4.7-py2.py3-none-any.whl Collecting argcomplete>=1.8.0 (from azure-cli-core->azure-cli) Downloading argcomplete-1.8.2-py2.py3-none-any.whl Collecting adal>=0.4.3 (from azure-cli-core->azure-cli) Downloading adal-0.4.5-py2.py3-none-any.whl (49kB) 100% |████████████████████████████████| 51kB 879kB/s Collecting msrest>=0.4.4 (from azure-cli-core->azure-cli) Downloading msrest-0.4.8-py2.py3-none-any.whl Collecting colorama (from azure-cli-core->azure-cli) Downloading colorama-0.3.9-py2.py3-none-any.whl Collecting pygments (from azure-cli-core->azure-cli) Downloading Pygments-2.2.0-py2.py3-none-any.whl (841kB) 100% |████████████████████████████████| 849kB 131kB/s Requirement already up-to-date: pip in ./lib/azure-cli/lib/python2.7/site-packages (from azure-cli-core->azure-cli) Collecting requests (from azure-cli-core->azure-cli) Downloading requests-2.14.2-py2.py3-none-any.whl (560kB) 100% |████████████████████████████████| 563kB 238kB/s Collecting azure-mgmt-storage==1.0.0rc1 (from azure-cli-sql->azure-cli) Downloading azure_mgmt_storage-1.0.0rc1-py2.py3-none-any.whl (61kB) 100% |████████████████████████████████| 61kB 698kB/s Collecting azure-mgmt-sql==0.4.0 (from azure-cli-sql->azure-cli) Downloading azure_mgmt_sql-0.4.0-py2.py3-none-any.whl (80kB) 100% |████████████████████████████████| 81kB 655kB/s Collecting pydocumentdb>=2.0.1 (from azure-cli-cosmosdb->azure-cli) Downloading pydocumentdb-2.2.0-py2-none-any.whl (87kB) 100% |████████████████████████████████| 92kB 1.4MB/s Collecting azure-mgmt-documentdb==0.1.3 (from azure-cli-cosmosdb->azure-cli) Downloading azure_mgmt_documentdb-0.1.3-py2.py3-none-any.whl Collecting azure-mgmt-datalake-analytics==0.1.4 (from azure-cli-dla->azure-cli) Downloading azure_mgmt_datalake_analytics-0.1.4-py2.py3-none-any.whl (113kB) 100% |████████████████████████████████| 122kB 725kB/s Collecting azure-mgmt-datalake-store==0.1.4 (from azure-cli-dla->azure-cli) Downloading azure_mgmt_datalake_store-0.1.4-py2.py3-none-any.whl Collecting paramiko (from azure-cli-acs->azure-cli) Downloading paramiko-2.1.2-py2.py3-none-any.whl (172kB) 100% |████████████████████████████████| 174kB 758kB/s Collecting scp (from azure-cli-acs->azure-cli) Downloading scp-0.10.2-py2.py3-none-any.whl Collecting sshtunnel (from azure-cli-acs->azure-cli) Downloading sshtunnel-0.1.2.tar.gz Collecting azure-mgmt-compute==1.0.0rc1 (from azure-cli-acs->azure-cli) Downloading azure_mgmt_compute-1.0.0rc1-py2.py3-none-any.whl (269kB) 100% |████████████████████████████████| 276kB 1.1MB/s Collecting azure-mgmt-redis==1.0.0 (from azure-cli-redis->azure-cli) Downloading azure_mgmt_redis-1.0.0-py2.py3-none-any.whl Collecting azure-mgmt-keyvault==0.31.0 (from azure-cli-keyvault->azure-cli) Downloading azure_mgmt_keyvault-0.31.0-py2.py3-none-any.whl Collecting azure-keyvault==0.2.0 (from azure-cli-keyvault->azure-cli) Downloading azure_keyvault-0.2.0-py2.py3-none-any.whl (67kB) 100% |████████████████████████████████| 71kB 1.5MB/s Collecting azure-datalake-store==0.0.8 (from azure-cli-dls->azure-cli) Downloading azure-datalake-store-0.0.8.tar.gz (47kB) 100% |████████████████████████████████| 51kB 1.8MB/s Collecting azure-mgmt-rdbms==0.1.0 (from azure-cli-rdbms->azure-cli) Downloading azure_mgmt_rdbms-0.1.0-py2.py3-none-any.whl (79kB) 100% |████████████████████████████████| 81kB 977kB/s Collecting azure-batch==2.0.1 (from azure-cli-batch->azure-cli) Downloading azure_batch-2.0.1-py2.py3-none-any.whl (272kB) 100% |████████████████████████████████| 276kB 714kB/s Collecting azure-mgmt-batch==3.0.1 (from azure-cli-batch->azure-cli) Downloading azure_mgmt_batch-3.0.1-py2.py3-none-any.whl Collecting azure-mgmt-trafficmanager==0.30.0 (from azure-cli-network->azure-cli) Downloading azure_mgmt_trafficmanager-0.30.0-py2.py3-none-any.whl Collecting azure-mgmt-network==1.0.0rc3 (from azure-cli-network->azure-cli) Downloading azure_mgmt_network-1.0.0rc3-py2.py3-none-any.whl (810kB) 100% |████████████████████████████████| 819kB 366kB/s Collecting azure-mgmt-dns==1.0.1 (from azure-cli-network->azure-cli) Downloading azure_mgmt_dns-1.0.1-py2.py3-none-any.whl Collecting azure-multiapi-storage==0.1.0 (from azure-cli-vm->azure-cli) Downloading azure_multiapi_storage-0.1.0-py2.py3-none-any.whl (333kB) 100% |████████████████████████████████| 337kB 352kB/s Collecting azure-mgmt-monitor==0.2.1 (from azure-cli-monitor->azure-cli) Downloading azure_mgmt_monitor-0.2.1-py2.py3-none-any.whl (62kB) 100% |████████████████████████████████| 71kB 1.1MB/s Collecting azure-monitor==0.3.0 (from azure-cli-monitor->azure-cli) Downloading azure_monitor-0.3.0-py2.py3-none-any.whl Collecting whoosh (from azure-cli-find->azure-cli) Downloading Whoosh-2.7.4-py2.py3-none-any.whl (468kB) 100% |████████████████████████████████| 471kB 272kB/s Collecting urllib3[secure]==1.16 (from azure-cli-appservice->azure-cli) Downloading urllib3-1.16-py2.py3-none-any.whl (98kB) 100% |████████████████████████████████| 102kB 1.0MB/s Collecting vsts-cd-manager (from azure-cli-appservice->azure-cli) Downloading vsts-cd-manager-0.118.0.tar.gz Collecting xmltodict (from azure-cli-appservice->azure-cli) Downloading xmltodict-0.11.0-py2.py3-none-any.whl Collecting azure-mgmt-web==0.32.0 (from azure-cli-appservice->azure-cli) Downloading azure_mgmt_web-0.32.0-py2.py3-none-any.whl (257kB) 100% |████████████████████████████████| 266kB 386kB/s Collecting azure-mgmt-containerregistry==0.2.1 (from azure-cli-acr->azure-cli) Downloading azure_mgmt_containerregistry-0.2.1-py2.py3-none-any.whl Collecting azure-servicefabric==5.6.130 (from azure-cli-sf->azure-cli) Downloading azure_servicefabric-5.6.130-py2.py3-none-any.whl (283kB) 100% |████████████████████████████████| 286kB 1.0MB/s Collecting cryptography>=1.7 (from pyOpenSSL->azure-cli-iot->azure-cli) Downloading cryptography-1.8.2-cp27-cp27m-macosx_10_10_intel.whl (1.8MB) 100% |████████████████████████████████| 1.8MB 83kB/s Collecting azure-common~=1.1.5 (from azure-mgmt-iothub==0.2.2->azure-cli-iot->azure-cli) Downloading azure_common-1.1.6-py2.py3-none-any.whl Collecting azure-mgmt-nspkg>=2.0.0 (from azure-mgmt-iothub==0.2.2->azure-cli-iot->azure-cli) Downloading azure_mgmt_nspkg-2.0.0-py2.py3-none-any.whl Collecting wcwidth (from prompt-toolkit->azure-cli-interactive->azure-cli) Downloading wcwidth-0.1.7-py2.py3-none-any.whl Collecting keyring>=5.6 (from msrestazure>=0.4.7->azure-cli-core->azure-cli) Downloading keyring-10.3.2-py2.py3-none-any.whl Collecting python-dateutil>=2.1.0 (from adal>=0.4.3->azure-cli-core->azure-cli) Downloading python_dateutil-2.6.0-py2.py3-none-any.whl (194kB) 100% |████████████████████████████████| 194kB 1.4MB/s Collecting PyJWT>=1.0.0 (from adal>=0.4.3->azure-cli-core->azure-cli) Downloading PyJWT-1.5.0-py2.py3-none-any.whl Collecting requests-oauthlib>=0.5.0 (from msrest>=0.4.4->azure-cli-core->azure-cli) Downloading requests_oauthlib-0.8.0-py2.py3-none-any.whl Collecting isodate>=0.5.4 (from msrest>=0.4.4->azure-cli-core->azure-cli) Downloading isodate-0.5.4.tar.gz Collecting certifi>=2017.4.17 (from msrest>=0.4.4->azure-cli-core->azure-cli) Downloading certifi-2017.4.17-py2.py3-none-any.whl (375kB) 100% |████████████████████████████████| 378kB 1.1MB/s Collecting enum34>=1.0.4; python_version < "3.4" (from msrest>=0.4.4->azure-cli-core->azure-cli) Downloading enum34-1.1.6-py2-none-any.whl Collecting azure-mgmt-datalake-nspkg>=2.0.0 (from azure-mgmt-datalake-analytics==0.1.4->azure-cli-dla->azure-cli) Downloading azure_mgmt_datalake_nspkg-2.0.0-py2.py3-none-any.whl Collecting pyasn1>=0.1.7 (from paramiko->azure-cli-acs->azure-cli) Downloading pyasn1-0.2.3-py2.py3-none-any.whl (53kB) 100% |████████████████████████████████| 61kB 679kB/s Collecting cffi (from azure-datalake-store==0.0.8->azure-cli-dls->azure-cli) Downloading cffi-1.10.0-cp27-cp27m-macosx_10_6_intel.whl (226kB) 100% |████████████████████████████████| 235kB 902kB/s Collecting pathlib2 (from azure-datalake-store==0.0.8->azure-cli-dls->azure-cli) Downloading pathlib2-2.2.1-py2.py3-none-any.whl Collecting futures (from azure-datalake-store==0.0.8->azure-cli-dls->azure-cli) Downloading futures-3.1.1-py2-none-any.whl Collecting ndg-httpsclient; python_version <= "2.7" and extra == "secure" (from urllib3[secure]==1.16->azure-cli-appservice->azure-cli) Downloading ndg_httpsclient-0.4.2.tar.gz Requirement already up-to-date: packaging in ./lib/azure-cli/lib/python2.7/site-packages (from cryptography>=1.7->pyOpenSSL->azure-cli-iot->azure-cli) Collecting ipaddress (from cryptography>=1.7->pyOpenSSL->azure-cli-iot->azure-cli) Downloading ipaddress-1.0.18-py2-none-any.whl Collecting asn1crypto>=0.21.0 (from cryptography>=1.7->pyOpenSSL->azure-cli-iot->azure-cli) Downloading asn1crypto-0.22.0-py2.py3-none-any.whl (97kB) 100% |████████████████████████████████| 102kB 1.6MB/s Collecting idna>=2.1 (from cryptography>=1.7->pyOpenSSL->azure-cli-iot->azure-cli) Downloading idna-2.5-py2.py3-none-any.whl (55kB) 100% |████████████████████████████████| 61kB 2.5MB/s Requirement already up-to-date: setuptools>=11.3 in ./lib/azure-cli/lib/python2.7/site-packages (from cryptography>=1.7->pyOpenSSL->azure-cli-iot->azure-cli) Collecting oauthlib>=0.6.2 (from requests-oauthlib>=0.5.0->msrest>=0.4.4->azure-cli-core->azure-cli) Downloading oauthlib-2.0.2.tar.gz (125kB) 100% |████████████████████████████████| 133kB 2.5MB/s Collecting pycparser (from cffi->azure-datalake-store==0.0.8->azure-cli-dls->azure-cli) Downloading pycparser-2.17.tar.gz (231kB) 100% |████████████████████████████████| 235kB 1.5MB/s Collecting scandir; python_version < "3.5" (from pathlib2->azure-datalake-store==0.0.8->azure-cli-dls->azure-cli) Downloading scandir-1.5.tar.gz Requirement already up-to-date: pyparsing in ./lib/azure-cli/lib/python2.7/site-packages (from packaging->cryptography>=1.7->pyOpenSSL->azure-cli-iot->azure-cli) Requirement already up-to-date: appdirs>=1.4.0 in ./lib/azure-cli/lib/python2.7/site-packages (from setuptools>=11.3->cryptography>=1.7->pyOpenSSL->azure-cli-iot->azure-cli) Building wheels for collected packages: applicationinsights, pyyaml, sshtunnel, azure-datalake-store, vsts-cd-manager, isodate, ndg-httpsclient, oauthlib, pycparser, scandir Running setup.py bdist_wheel for applicationinsights ... done Stored in directory: /var/folders/7m/gx5xyr990jjc26l2_mzcft840000gn/T/tmpuNq74i/wheels/5d/00/c9/6cae03c0f0dd766574b08bee1a05f91f88d68e6990a1e4282b Running setup.py bdist_wheel for pyyaml ... done Stored in directory: /var/folders/7m/gx5xyr990jjc26l2_mzcft840000gn/T/tmpuNq74i/wheels/2c/f7/79/13f3a12cd723892437c0cfbde1230ab4d82947ff7b3839a4fc Running setup.py bdist_wheel for sshtunnel ... done Stored in directory: /var/folders/7m/gx5xyr990jjc26l2_mzcft840000gn/T/tmpuNq74i/wheels/2f/92/75/a2db92ad2905bfc8663e980b8963625b4dd728fd64523f1da9 Running setup.py bdist_wheel for azure-datalake-store ... done Stored in directory: /var/folders/7m/gx5xyr990jjc26l2_mzcft840000gn/T/tmpuNq74i/wheels/63/82/1a/465c07cc48a03266541a4a19cfd05490f638a5ff6fe835baa5 Running setup.py bdist_wheel for vsts-cd-manager ... done Stored in directory: /var/folders/7m/gx5xyr990jjc26l2_mzcft840000gn/T/tmpuNq74i/wheels/6f/69/58/23fc80b987a15698bee59dcd3595eabb7f838396c0cc4cc0a6 Running setup.py bdist_wheel for isodate ... done Stored in directory: /var/folders/7m/gx5xyr990jjc26l2_mzcft840000gn/T/tmpuNq74i/wheels/61/c0/d2/6b4a10c222ba9261ab9872a8f05d471652962284e8c677e5e7 Running setup.py bdist_wheel for ndg-httpsclient ... done Stored in directory: /var/folders/7m/gx5xyr990jjc26l2_mzcft840000gn/T/tmpuNq74i/wheels/44/6b/b1/eef816d523c0aa93f350fd2a78d74769e010e2f26623921b76 Running setup.py bdist_wheel for oauthlib ... done Stored in directory: /var/folders/7m/gx5xyr990jjc26l2_mzcft840000gn/T/tmpuNq74i/wheels/84/98/7a/fba7268f61097bea6081cbe5480bc439b38975748ea7684fd5 Running setup.py bdist_wheel for pycparser ... done Stored in directory: /var/folders/7m/gx5xyr990jjc26l2_mzcft840000gn/T/tmpuNq74i/wheels/a8/0b/41/dc95621f9d3a0da7bc191b8a71f0e8182ffd3cc5f33ac55005 Running setup.py bdist_wheel for scandir ... error Complete output from command /Users/eric/lib/azure-cli/bin/python -u -c "import setuptools, tokenize;file='/private/var/folders/7m/gx5xyr990jjc26l2_mzcft840000gn/T/pip-build-HxgAdj/scandir/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /var/folders/7m/gx5xyr990jjc26l2_mzcft840000gn/T/tmp0v53sCpip-wheel- --python-tag cp27: running bdist_wheel running build running build_py creating build creating build/lib.macosx-10.12-intel-2.7 copying scandir.py -> build/lib.macosx-10.12-intel-2.7 running build_ext building '_scandir' extension creating build/temp.macosx-10.12-intel-2.7 cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _scandir.c -o build/temp.macosx-10.12-intel-2.7/_scandir.o xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun error: command 'cc' failed with exit status 1


Failed building wheel for scandir Running setup.py clean for scandir Successfully built applicationinsights pyyaml sshtunnel azure-datalake-store vsts-cd-manager isodate ndg-httpsclient oauthlib pycparser Failed to build scandir Installing collected packages: azure-nspkg, azure-cli-nspkg, ipaddress, asn1crypto, enum34, idna, pycparser, cffi, cryptography, pyOpenSSL, azure-cli-command-modules-nspkg, keyring, python-dateutil, requests, PyJWT, adal, oauthlib, requests-oauthlib, isodate, certifi, msrest, msrestazure, azure-common, azure-mgmt-nspkg, azure-mgmt-iothub, applicationinsights, tabulate, pyyaml, jmespath, argcomplete, colorama, pygments, azure-cli-core, azure-cli-iot, azure-mgmt-authorization, azure-graphrbac, azure-cli-role, wcwidth, prompt-toolkit, azure-cli-interactive, azure-mgmt-cdn, azure-cli-cdn, azure-cli-feedback, azure-mgmt-cognitiveservices, azure-cli-cognitiveservices, azure-mgmt-resource, azure-cli-resource, azure-mgmt-devtestlabs, azure-cli-lab, azure-cli-profile, azure-mgmt-storage, azure-mgmt-sql, azure-cli-sql, pydocumentdb, azure-mgmt-documentdb, azure-cli-cosmosdb, azure-mgmt-datalake-nspkg, azure-mgmt-datalake-analytics, azure-mgmt-datalake-store, azure-cli-dla, pyasn1, paramiko, scp, sshtunnel, azure-mgmt-compute, azure-cli-acs, azure-mgmt-redis, azure-cli-redis, azure-mgmt-keyvault, azure-keyvault, azure-cli-keyvault, scandir, pathlib2, futures, azure-datalake-store, azure-cli-dls, azure-mgmt-rdbms, azure-cli-rdbms, azure-batch, azure-mgmt-batch, azure-cli-batch, azure-cli-component, azure-mgmt-trafficmanager, azure-mgmt-network, azure-mgmt-dns, azure-cli-network, azure-multiapi-storage, azure-cli-vm, azure-mgmt-monitor, azure-monitor, azure-cli-monitor, whoosh, azure-cli-find, ndg-httpsclient, urllib3, vsts-cd-manager, xmltodict, azure-mgmt-web, azure-cli-appservice, azure-cli-storage, azure-mgmt-containerregistry, azure-cli-acr, azure-servicefabric, azure-cli-sf, azure-cli-cloud, azure-cli-configure, azure-cli Running setup.py install for scandir ... error Complete output from command /Users/eric/lib/azure-cli/bin/python -u -c "import setuptools, tokenize;file='/private/var/folders/7m/gx5xyr990jjc26l2_mzcft840000gn/T/pip-build-HxgAdj/scandir/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /var/folders/7m/gx5xyr990jjc26l2_mzcft840000gn/T/pip-__9pjU-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/eric/lib/azure-cli/include/site/python2.7/scandir: running install running build running build_py creating build creating build/lib.macosx-10.12-intel-2.7 copying scandir.py -> build/lib.macosx-10.12-intel-2.7 running build_ext building '_scandir' extension creating build/temp.macosx-10.12-intel-2.7 cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _scandir.c -o build/temp.macosx-10.12-intel-2.7/_scandir.o xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun error: command 'cc' failed with exit status 1

----------------------------------------

Command "/Users/eric/lib/azure-cli/bin/python -u -c "import setuptools, tokenize;file='/private/var/folders/7m/gx5xyr990jjc26l2_mzcft840000gn/T/pip-build-HxgAdj/scandir/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /var/folders/7m/gx5xyr990jjc26l2_mzcft840000gn/T/pip-__9pjU-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/eric/lib/azure-cli/include/site/python2.7/scandir" failed with error code 1 in /private/var/folders/7m/gx5xyr990jjc26l2_mzcft840000gn/T/pip-build-HxgAdj/scandir/ Traceback (most recent call last): File "/var/folders/7m/gx5xyr990jjc26l2_mzcft840000gn/T/azure_cli_install_tmp_XXXX.umWbggEO", line 370, in main() File "/var/folders/7m/gx5xyr990jjc26l2_mzcft840000gn/T/azure_cli_install_tmp_XXXX.umWbggEO", line 356, in main install_cli(install_dir, tmp_dir) File "/var/folders/7m/gx5xyr990jjc26l2_mzcft840000gn/T/azure_cli_install_tmp_XXXX.umWbggEO", line 140, in install_cli exec_command(cmd) File "/var/folders/7m/gx5xyr990jjc26l2_mzcft840000gn/T/azure_cli_install_tmp_XXXX.umWbggEO", line 100, in exec_command subprocess.check_call(command_list, cwd=cwd, env=env) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 540, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['/Users/eric/lib/azure-cli/bin/pip', 'install', '--cache-dir', '/var/folders/7m/gx5xyr990jjc26l2_mzcft840000gn/T/tmpuNq74i', 'azure-cli', '--upgrade']' returned non-zero exit status 1

derekbekoe commented 7 years ago

Run xcode-select --install. There will be an xcode license agreement to be signed. Afterwards, run the CLI install again.

geekzter commented 7 years ago

Thx, that worked

TMWagner commented 7 years ago

Nope - Received "xcode-select: error: command line tools are already installed, use "Software Update" to install updates"

and "Software Update" isn't a valid command

derekbekoe commented 7 years ago

@TMWagner "Software Update" isn't a command. https://support.apple.com/en-us/HT201541

TMWagner commented 7 years ago

Still not working. Running version "El Capitan" 10.11.6. Also, I've installed already installed previous version of the CLI. version: 0.10.4

2017-06-19_12-56-00 2017-06-19_12-56-44

I've got a feeling that this is dependent on the xcode compatible with macos 10.12 or higher...

TMWagner commented 7 years ago

Spent the afternoon updating MacOs to latest Sierra (10.12.5). Went through install again... WAS able to run xcode-select --install Ran installer again per instructions above. Same error 2017-06-19_18-27-26

derekbekoe commented 7 years ago

Also there is a similar closed issue here - https://github.com/Azure/azure-cli/issues/1522. Do any of the points there help?

derekbekoe commented 7 years ago

Also are you using a different Python distribution?

TMWagner commented 7 years ago

Thank you for the reply. Python version is:

2.7.10 (default, Jul 6 2015, 13:26:37) [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)]

As for the points referenced in issue #1522 - no, not really. In that issue, the problem seemed to go away by installing xcode-select.

I'm still not convinced that that is not my problem. The "Software Update" procedure installs the full xcode suite. Doing that did not affect the version number I see from line mode.

$ xcode-select -v xcode-select version 2347.

derekbekoe commented 7 years ago

Okay I don't see this as a CLI issue but to confirm:


TMWagner commented 7 years ago

Actually - I think it still very much is a CLI issue. There are either dependancies that are unknown or undocumented.

The early "beta" version of CLI works... the 2.0 version will not install per instructions.

derekbekoe commented 7 years ago

@TMWagner since I can't repro here, can you run these commands that isolate the CLI from the issue? If this still doesn't work, then there's something else wrong. If it does work, it may be something to investigate further with the CLI install.

curl -O https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py
sudo pip install virtualenv
virtualenv myenv
source myenv/bin/activate
pip install scandir

I created a new macOS Sierra VM (version 10.12) and ran those above commands. I got the error command 'cc' failed with exit status 1 as reported initially in this issue, installed XCode and I was able to install scandir. This is why I suspect there's something else going on here. Full logs below.

sierra.txt

Thanks!

TMWagner commented 7 years ago

Here is log from the command set you specified (failed)


Thomass-MacBook-Pro:~ thomaswagner$ curl -O https://bootstrap.pypa.io/get-pip.py % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1558k 100 1558k 0 0 5104k 0 --:--:-- --:--:-- --:--:— 7018k

Thomass-MacBook-Pro:~ thomaswagner$ sudo python get-pip.py Password: The directory '/Users/thomaswagner/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. The directory '/Users/thomaswagner/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Collecting pip Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB) 100% |████████████████████████████████| 1.3MB 654kB/s Collecting setuptools Downloading setuptools-36.0.1-py2.py3-none-any.whl (476kB) 100% |████████████████████████████████| 481kB 1.6MB/s Collecting wheel Downloading wheel-0.29.0-py2.py3-none-any.whl (66kB) 100% |████████████████████████████████| 71kB 5.8MB/s Installing collected packages: pip, setuptools, wheel Successfully installed pip-9.0.1 setuptools-36.0.1 wheel-0.29.0 Thomass-MacBook-Pro:~ thomaswagner$ sudo pip install virtualenv The directory '/Users/thomaswagner/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. The directory '/Users/thomaswagner/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Collecting virtualenv Downloading virtualenv-15.1.0-py2.py3-none-any.whl (1.8MB) 100% |████████████████████████████████| 1.8MB 426kB/s Installing collected packages: virtualenv Successfully installed virtualenv-15.1.0 Thomass-MacBook-Pro:~ thomaswagner$ virtualenv myenv New python executable in /Users/thomaswagner/myenv/bin/python Installing setuptools, pip, wheel...done. Thomass-MacBook-Pro:~ thomaswagner$ source myenv/bin/activate (myenv) Thomass-MacBook-Pro:~ thomaswagner$ pip install scandir Collecting scandir Downloading scandir-1.5.tar.gz Building wheels for collected packages: scandir Running setup.py bdist_wheel for scandir ... error Complete output from command /Users/thomaswagner/myenv/bin/python -u -c "import setuptools, tokenize;file='/private/var/folders/f4/0zjyjj1d6db6zbfq55m6rm0000gn/T/pip-build-AuAhdj/scandir/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file__, 'exec'))" bdist_wheel -d /var/folders/f4/0zjyjj1d6db6z__bfq55m6rm0000gn/T/tmpvtFbzqpip-wheel- --python-tag cp27: running bdist_wheel running build running build_py creating build creating build/lib.macosx-10.6-x86_64-2.7 copying scandir.py -> build/lib.macosx-10.6-x86_64-2.7 running build_ext building '_scandir' extension creating build/temp.macosx-10.6-x86_64-2.7 gcc -fno-strict-aliasing -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Applications/MAMP/Library/include/python2.7 -c _scandir.c -o build/temp.macosx-10.6-x86_64-2.7/_scandir.o _scandir.c:14:10: fatal error: 'Python.h' file not found

include

       ^

1 error generated. error: command 'gcc' failed with exit status 1


Failed building wheel for scandir Running setup.py clean for scandir Failed to build scandir Installing collected packages: scandir Running setup.py install for scandir ... error Complete output from command /Users/thomaswagner/myenv/bin/python -u -c "import setuptools, tokenize;file='/private/var/folders/f4/0zjyjj1d6db6zbfq55m6rm0000gn/T/pip-build-AuAhdj/scandir/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /var/folders/f4/0zjyjj1d6db6zbfq55m6rm0000gn/T/pip-Oo02mY-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/thomaswagner/myenv/include/site/python2.7/scandir: running install running build running build_py creating build creating build/lib.macosx-10.6-x86_64-2.7 copying scandir.py -> build/lib.macosx-10.6-x86_64-2.7 running build_ext building '_scandir' extension creating build/temp.macosx-10.6-x86_64-2.7 gcc -fno-strict-aliasing -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Applications/MAMP/Library/include/python2.7 -c _scandir.c -o build/temp.macosx-10.6-x86_64-2.7/_scandir.o _scandir.c:14:10: fatal error: 'Python.h' file not found

include

         ^
1 error generated.
error: command 'gcc' failed with exit status 1

----------------------------------------

Command "/Users/thomaswagner/myenv/bin/python -u -c "import setuptools, tokenize;file='/private/var/folders/f4/0zjyjj1d6db6zbfq55m6rm0000gn/T/pip-build-AuAhdj/scandir/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /var/folders/f4/0zjyjj1d6db6zbfq55m6rm0000gn/T/pip-Oo02mY-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/thomaswagner/myenv/include/site/python2.7/scandir" failed with error code 1 in /private/var/folders/f4/0zjyjj1d6db6z__bfq55m6rm0000gn/T/pip-build-AuAhdj/scandir/ (myenv) Thomass-MacBook-Pro:~ thomaswagner$

On Jun 20, 2017, at 1:23 PM, Derek Bekoe notifications@github.com wrote:

pip install scandir

derekbekoe commented 7 years ago

@TMWagner please create an issue at https://github.com/benhoyt/scandir/issues as the commands I suggested take the CLI install out of the picture. I have seen the error: command 'cc' failed with exit status 1 several times and the solution was the xcode install command but haven't seen the error command 'gcc' failed with exit status 1 before.