salt-extensions / saltext-azurerm

Salt Extension Modules for Azure Resource Manager
Apache License 2.0
7 stars 9 forks source link

[BUG] saltext-azurerm Installation Error on 4.1.0 #55

Closed corey-hammerton closed 6 months ago

corey-hammerton commented 6 months ago

Description A clear and concise description of what the bug is. saltext-azurerm >= 4.1.0 installation via salt-pip errors at install time

Setup (Please provide relevant configs and/or SLS files (be sure to remove sensitive info. There is no general set-up of Salt.)

Please be as specific as possible and give set-up details.

Steps to Reproduce the behavior (Include debug logs if possible and relevant)

salt-pip install saltext-azurerm

Collecting saltext-azurerm>=4.1.0
  Downloading saltext.azurerm-4.1.0-py2.py3-none-any.whl (126 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 126.9/126.9 kB 4.6 MB/s eta 0:00:00
Collecting azure-mgmt-privatedns==1.0.0
  Downloading azure_mgmt_privatedns-1.0.0-py2.py3-none-any.whl (43 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 44.0/44.0 kB 3.3 MB/s eta 0:00:00
Collecting azure-storage-file==2.1.0
  Downloading azure_storage_file-2.1.0-py2.py3-none-any.whl (36 kB)
Collecting azure-common==1.1.28
  Downloading azure_common-1.1.28-py2.py3-none-any.whl (14 kB)
Collecting azure-mgmt-storage==21.0.0
  Downloading azure_mgmt_storage-21.0.0-py3-none-any.whl (2.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.8/2.8 MB 15.0 MB/s eta 0:00:00
Collecting azure-mgmt-network==20.0.0
  Downloading azure_mgmt_network-20.0.0-py3-none-any.whl (8.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 8.5/8.5 MB 45.9 MB/s eta 0:00:00
Collecting azure-storage-nspkg==3.1.0
  Downloading azure_storage_nspkg-3.1.0-py2.py3-none-any.whl (1.7 kB)
Collecting azure-mgmt-monitor==6.0.1
  Downloading azure_mgmt_monitor-6.0.1-py3-none-any.whl (1.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB 12.3 MB/s eta 0:00:00
Collecting azure-mgmt-web==6.1.0
  Downloading azure_mgmt_web-6.1.0-py3-none-any.whl (3.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.9/3.9 MB 22.4 MB/s eta 0:00:00
Requirement already satisfied: salt>=3005 in /opt/saltstack/salt/lib/python3.10/site-packages (from saltext-azurerm>=4.1.0) (3006.5)
Collecting msrestazure==0.6.4
  Downloading msrestazure-0.6.4-py2.py3-none-any.whl (40 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 40.5/40.5 kB 3.0 MB/s eta 0:00:00
Collecting azure-storage-queue==12.3.0
  Downloading azure_storage_queue-12.3.0-py3-none-any.whl (147 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 147.7/147.7 kB 8.8 MB/s eta 0:00:00
Collecting azure-mgmt-resource==21.1.0
  Downloading azure_mgmt_resource-21.1.0-py3-none-any.whl (1.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 12.8 MB/s eta 0:00:00
Collecting azure-mgmt-dns==8.0.0
  Downloading azure_mgmt_dns-8.0.0-py2.py3-none-any.whl (118 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 118.9/118.9 kB 8.6 MB/s eta 0:00:00
Collecting msrest==0.7.1
  Downloading msrest-0.7.1-py3-none-any.whl (85 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 85.4/85.4 kB 6.4 MB/s eta 0:00:00
Collecting azure-storage-blob==12.12.0
  Downloading azure_storage_blob-12.12.0-py3-none-any.whl (366 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 366.4/366.4 kB 678.7 kB/s eta 0:00:00
Collecting azure-mgmt-batch==16.2.0
  Downloading azure_mgmt_batch-16.2.0-py3-none-any.whl (126 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 126.9/126.9 kB 8.9 MB/s eta 0:00:00
Collecting azure-core==1.24.2
  Downloading azure_core-1.24.2-py3-none-any.whl (178 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 178.7/178.7 kB 12.2 MB/s eta 0:00:00
Collecting azure-mgmt-subscription==3.0.0
  Downloading azure_mgmt_subscription-3.0.0-py3-none-any.whl (57 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 57.1/57.1 kB 3.8 MB/s eta 0:00:00
Collecting azure-keyvault==4.2.0
  Downloading azure_keyvault-4.2.0-py2.py3-none-any.whl (4.3 kB)
Collecting azure-batch==12.0.0
  Downloading azure_batch-12.0.0-py2.py3-none-any.whl (231 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 231.3/231.3 kB 14.9 MB/s eta 0:00:00
Collecting azure-mgmt-authorization==2.0.0
  Downloading azure_mgmt_authorization-2.0.0-py2.py3-none-any.whl (465 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 465.2/465.2 kB 4.6 MB/s eta 0:00:00
Collecting azure-graphrbac==0.61.1
  Downloading azure_graphrbac-0.61.1-py2.py3-none-any.whl (141 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 141.4/141.4 kB 10.2 MB/s eta 0:00:00
Collecting azure-mgmt-msi==6.0.1
  Downloading azure_mgmt_msi-6.0.1-py3-none-any.whl (73 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 73.1/73.1 kB 4.6 MB/s eta 0:00:00
Collecting azure-mgmt-compute==27.1.0
  Downloading azure_mgmt_compute-27.1.0-py3-none-any.whl (5.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.5/5.5 MB 41.7 MB/s eta 0:00:00
Collecting azure-identity==1.10.0
  Downloading azure_identity-1.10.0-py3-none-any.whl (134 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 134.1/134.1 kB 8.7 MB/s eta 0:00:00
Collecting azure-storage-common==2.1.0
  Downloading azure_storage_common-2.1.0-py2.py3-none-any.whl (47 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 47.8/47.8 kB 3.5 MB/s eta 0:00:00
Collecting azure-mgmt-keyvault==10.1.0
  Downloading azure_mgmt_keyvault-10.1.0-py3-none-any.whl (605 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 605.9/605.9 kB 12.4 MB/s eta 0:00:00
Requirement already satisfied: requests>=2.18.4 in /opt/saltstack/salt/lib/python3.10/site-packages (from azure-core==1.24.2->saltext-azurerm>=4.1.0) (2.31.0)
Collecting typing-extensions>=4.0.1
  Using cached typing_extensions-4.11.0-py3-none-any.whl (34 kB)
Requirement already satisfied: six>=1.11.0 in /opt/saltstack/salt/lib/python3.10/site-packages (from azure-core==1.24.2->saltext-azurerm>=4.1.0) (1.16.0)
Collecting msal-extensions<2.0.0,>=0.3.0
  Downloading msal_extensions-1.1.0-py3-none-any.whl (19 kB)
Collecting msal<2.0.0,>=1.12.0
  Downloading msal-1.28.0-py3-none-any.whl (102 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 102.2/102.2 kB 8.0 MB/s eta 0:00:00
Requirement already satisfied: cryptography>=2.5 in /opt/saltstack/salt/lib/python3.10/site-packages (from azure-identity==1.10.0->saltext-azurerm>=4.1.0) (41.0.7)
Collecting azure-keyvault-certificates~=4.4
  Downloading azure_keyvault_certificates-4.8.0-py3-none-any.whl (114 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 114.3/114.3 kB 4.9 MB/s eta 0:00:00
Collecting azure-keyvault-secrets~=4.4
  Downloading azure_keyvault_secrets-4.8.0-py3-none-any.whl (82 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 82.8/82.8 kB 5.5 MB/s eta 0:00:00
Collecting azure-keyvault-keys~=4.5
  Downloading azure_keyvault_keys-4.9.0-py3-none-any.whl (149 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 149.5/149.5 kB 9.7 MB/s eta 0:00:00
Collecting azure-mgmt-core<2.0.0,>=1.2.0
  Downloading azure_mgmt_core-1.4.0-py3-none-any.whl (27 kB)
Collecting isodate<1.0.0,>=0.6.1
  Downloading isodate-0.6.1-py2.py3-none-any.whl (41 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 41.7/41.7 kB 2.9 MB/s eta 0:00:00
Requirement already satisfied: python-dateutil in /opt/saltstack/salt/lib/python3.10/site-packages (from azure-storage-common==2.1.0->saltext-azurerm>=4.1.0) (2.8.1)
Collecting azure-nspkg>=2.0.0
  Downloading azure_nspkg-3.0.2-py3-none-any.whl (1.5 kB)
Collecting requests-oauthlib>=0.5.0
  Downloading requests_oauthlib-2.0.0-py2.py3-none-any.whl (24 kB)
Requirement already satisfied: certifi>=2017.4.17 in /opt/saltstack/salt/lib/python3.10/site-packages (from msrest==0.7.1->saltext-azurerm>=4.1.0) (2023.7.22)
Collecting adal<2.0.0,>=0.6.0
  Downloading adal-1.2.7-py2.py3-none-any.whl (55 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 55.5/55.5 kB 3.8 MB/s eta 0:00:00
Requirement already satisfied: jaraco.classes==3.2.1 in /opt/saltstack/salt/lib/python3.10/site-packages (from salt>=3005->saltext-azurerm>=4.1.0) (3.2.1)
Requirement already satisfied: charset-normalizer==3.2.0 in /opt/saltstack/salt/lib/python3.10/site-packages (from salt>=3005->saltext-azurerm>=4.1.0) (3.2.0)
Requirement already satisfied: idna==3.2 in /opt/saltstack/salt/lib/python3.10/site-packages (from salt>=3005->saltext-azurerm>=4.1.0) (3.2)
Requirement already satisfied: python-gnupg==0.4.8 in /opt/saltstack/salt/lib/python3.10/site-packages (from salt>=3005->saltext-azurerm>=4.1.0) (0.4.8)
Requirement already satisfied: looseversion==1.0.2 in /opt/saltstack/salt/lib/python3.10/site-packages (from salt>=3005->saltext-azurerm>=4.1.0) (1.0.2)
Requirement already satisfied: pytz==2022.1 in /opt/saltstack/salt/lib/python3.10/site-packages (from salt>=3005->saltext-azurerm>=4.1.0) (2022.1)
Requirement already satisfied: timelib==0.2.5 in /opt/saltstack/salt/lib/python3.10/site-packages (from salt>=3005->saltext-azurerm>=4.1.0) (0.2.5)
Requirement already satisfied: pyzmq==23.2.0 in /opt/saltstack/salt/lib/python3.10/site-packages (from salt>=3005->saltext-azurerm>=4.1.0) (23.2.0)
Requirement already satisfied: zipp==3.6.0 in /opt/saltstack/salt/lib/python3.10/site-packages (from salt>=3005->saltext-azurerm>=4.1.0) (3.6.0)
Requirement already satisfied: pyyaml==6.0.1 in /opt/saltstack/salt/lib/python3.10/site-packages (from salt>=3005->saltext-azurerm>=4.1.0) (6.0.1)
Requirement already satisfied: setproctitle==1.3.2 in /opt/saltstack/salt/lib/python3.10/site-packages (from salt>=3005->saltext-azurerm>=4.1.0) (1.3.2)
Requirement already satisfied: pycparser==2.21 in /opt/saltstack/salt/lib/python3.10/site-packages (from salt>=3005->saltext-azurerm>=4.1.0) (2.21)
Requirement already satisfied: msgpack==1.0.2 in /opt/saltstack/salt/lib/python3.10/site-packages (from salt>=3005->saltext-azurerm>=4.1.0) (1.0.2)
Requirement already satisfied: cherrypy==18.6.1 in /opt/saltstack/salt/lib/python3.10/site-packages (from salt>=3005->saltext-azurerm>=4.1.0) (18.6.1)
Requirement already satisfied: pyopenssl==23.2.0 in /opt/saltstack/salt/lib/python3.10/site-packages (from salt>=3005->saltext-azurerm>=4.1.0) (23.2.0)
Requirement already satisfied: importlib-metadata==6.0.0 in /opt/saltstack/salt/lib/python3.10/site-packages (from salt>=3005->saltext-azurerm>=4.1.0) (6.0.0)
Requirement already satisfied: immutables==0.15 in /opt/saltstack/salt/lib/python3.10/site-packages (from salt>=3005->saltext-azurerm>=4.1.0) (0.15)
Requirement already satisfied: jaraco.text==3.5.1 in /opt/saltstack/salt/lib/python3.10/site-packages (from salt>=3005->saltext-azurerm>=4.1.0) (3.5.1)
Requirement already satisfied: jaraco.collections==3.4.0 in /opt/saltstack/salt/lib/python3.10/site-packages (from salt>=3005->saltext-azurerm>=4.1.0) (3.4.0)
Requirement already satisfied: portend==2.4 in /opt/saltstack/salt/lib/python3.10/site-packages (from salt>=3005->saltext-azurerm>=4.1.0) (2.4)
Requirement already satisfied: pycryptodomex==3.9.8 in /opt/saltstack/salt/lib/python3.10/site-packages (from salt>=3005->saltext-azurerm>=4.1.0) (3.9.8)
Requirement already satisfied: urllib3==1.26.18 in /opt/saltstack/salt/lib/python3.10/site-packages (from salt>=3005->saltext-azurerm>=4.1.0) (1.26.18)
Requirement already satisfied: more-itertools==5.0.0 in /opt/saltstack/salt/lib/python3.10/site-packages (from salt>=3005->saltext-azurerm>=4.1.0) (5.0.0)
Requirement already satisfied: jmespath==1.0.1 in /opt/saltstack/salt/lib/python3.10/site-packages (from salt>=3005->saltext-azurerm>=4.1.0) (1.0.1)
Requirement already satisfied: distro==1.5.0 in /opt/saltstack/salt/lib/python3.10/site-packages (from salt>=3005->saltext-azurerm>=4.1.0) (1.5.0)
Collecting cffi==1.14.6
  Downloading cffi-1.14.6.tar.gz (475 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 475.7/475.7 kB 8.7 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Requirement already satisfied: jaraco.functools==2.0 in /opt/saltstack/salt/lib/python3.10/site-packages (from salt>=3005->saltext-azurerm>=4.1.0) (2.0)
Requirement already satisfied: packaging==22.0 in /opt/saltstack/salt/lib/python3.10/site-packages (from salt>=3005->saltext-azurerm>=4.1.0) (22.0)
Requirement already satisfied: zc.lockfile==1.4 in /opt/saltstack/salt/lib/python3.10/site-packages (from salt>=3005->saltext-azurerm>=4.1.0) (1.4)
Requirement already satisfied: tempora==4.1.1 in /opt/saltstack/salt/lib/python3.10/site-packages (from salt>=3005->saltext-azurerm>=4.1.0) (4.1.1)
Requirement already satisfied: cheroot==8.5.2 in /opt/saltstack/salt/lib/python3.10/site-packages (from salt>=3005->saltext-azurerm>=4.1.0) (8.5.2)
Requirement already satisfied: jinja2==3.1.2 in /opt/saltstack/salt/lib/python3.10/site-packages (from salt>=3005->saltext-azurerm>=4.1.0) (3.1.2)
Requirement already satisfied: psutil==5.8.0 in /opt/saltstack/salt/lib/python3.10/site-packages (from salt>=3005->saltext-azurerm>=4.1.0) (5.8.0)
Requirement already satisfied: markupsafe==2.1.2 in /opt/saltstack/salt/lib/python3.10/site-packages (from salt>=3005->saltext-azurerm>=4.1.0) (2.1.2)
Requirement already satisfied: rpm-vercmp==0.1.2 in /opt/saltstack/salt/lib/python3.10/site-packages (from salt>=3005->saltext-azurerm>=4.1.0) (0.1.2)
Requirement already satisfied: contextvars==2.4 in /opt/saltstack/salt/lib/python3.10/site-packages (from salt>=3005->saltext-azurerm>=4.1.0) (2.4)
Requirement already satisfied: setuptools in /opt/saltstack/salt/lib/python3.10/site-packages (from zc.lockfile==1.4->salt>=3005->saltext-azurerm>=4.1.0) (68.2.2)
Collecting PyJWT<3,>=1.0.0
  Downloading PyJWT-2.8.0-py3-none-any.whl (22 kB)
Collecting azure-keyvault-certificates~=4.4
  Downloading azure_keyvault_certificates-4.7.0-py3-none-any.whl (428 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 428.1/428.1 kB 5.3 MB/s eta 0:00:00
Collecting azure-keyvault-keys~=4.5
  Downloading azure_keyvault_keys-4.8.0-py3-none-any.whl (452 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 452.7/452.7 kB 7.4 MB/s eta 0:00:00
Collecting azure-keyvault-secrets~=4.4
  Downloading azure_keyvault_secrets-4.7.0-py3-none-any.whl (348 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 348.6/348.6 kB 4.7 MB/s eta 0:00:00
Collecting azure-mgmt-core<2.0.0,>=1.2.0
  Downloading azure_mgmt_core-1.3.2-py3-none-any.whl (26 kB)
Collecting portalocker<3,>=1.0
  Downloading portalocker-2.8.2-py3-none-any.whl (17 kB)
Collecting oauthlib>=3.0.0
  Downloading oauthlib-3.2.2-py3-none-any.whl (151 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 151.7/151.7 kB 10.4 MB/s eta 0:00:00
Building wheels for collected packages: cffi
  Building wheel for cffi (setup.py): started
  Building wheel for cffi (setup.py): finished with status 'error'
  Running setup.py clean for cffi
Failed to build cffi
Installing collected packages: azure-nspkg, azure-common, typing-extensions, PyJWT, portalocker, oauthlib, isodate, cffi, azure-storage-nspkg, requests-oauthlib, azure-core, msrest, azure-st
orage-common, azure-mgmt-core, azure-keyvault-secrets, azure-keyvault-keys, azure-keyvault-certificates, adal, msrestazure, msal, azure-storage-queue, azure-storage-file, azure-storage-blob,
 azure-mgmt-web, azure-mgmt-subscription, azure-mgmt-storage, azure-mgmt-resource, azure-mgmt-privatedns, azure-mgmt-network, azure-mgmt-msi, azure-mgmt-monitor, azure-mgmt-keyvault, azure-m
gmt-dns, azure-mgmt-compute, azure-mgmt-batch, azure-mgmt-authorization, azure-keyvault, msal-extensions, azure-graphrbac, azure-batch, azure-identity, saltext-azurerm
  Attempting uninstall: cffi
    Found existing installation: cffi 1.16.0
    Uninstalling cffi-1.16.0:
      Successfully uninstalled cffi-1.16.0
  Running setup.py install for cffi: started
  Running setup.py install for cffi: finished with status 'error'
  Rolling back uninstall of cffi
  Moving to /opt/saltstack/salt/extras-3.10/_cffi_backend.cpython-310-x86_64-linux-gnu.so
   from /tmp/pip-uninstall-kmudmoa3/_cffi_backend.cpython-310-x86_64-linux-gnu.so
  Moving to /opt/saltstack/salt/extras-3.10/cffi-1.16.0.dist-info/
   from /opt/saltstack/salt/extras-3.10/~ffi-1.16.0.dist-info
  Moving to /opt/saltstack/salt/extras-3.10/cffi/
   from /opt/saltstack/salt/extras-3.10/~ffi

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [50 lines of output]
      /opt/saltstack/salt/lib/python3.10/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg`
      !!

              ********************************************************************************
              The license_file parameter is deprecated, use license_files instead.

              This deprecation is overdue, please update your project and remove deprecated
              calls to avoid build errors in the future.

              See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
              ********************************************************************************

      !!
        parsed = self.parsers.get(option_name, lambda x: x)(value)
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-310
      creating build/lib.linux-x86_64-cpython-310/cffi
      copying cffi/vengine_gen.py -> build/lib.linux-x86_64-cpython-310/cffi
      copying cffi/pkgconfig.py -> build/lib.linux-x86_64-cpython-310/cffi
      copying cffi/cparser.py -> build/lib.linux-x86_64-cpython-310/cffi
      copying cffi/model.py -> build/lib.linux-x86_64-cpython-310/cffi
      copying cffi/api.py -> build/lib.linux-x86_64-cpython-310/cffi
      copying cffi/error.py -> build/lib.linux-x86_64-cpython-310/cffi
      copying cffi/vengine_cpy.py -> build/lib.linux-x86_64-cpython-310/cffi
      copying cffi/ffiplatform.py -> build/lib.linux-x86_64-cpython-310/cffi
      copying cffi/cffi_opcode.py -> build/lib.linux-x86_64-cpython-310/cffi
      copying cffi/commontypes.py -> build/lib.linux-x86_64-cpython-310/cffi
      copying cffi/__init__.py -> build/lib.linux-x86_64-cpython-310/cffi
      copying cffi/backend_ctypes.py -> build/lib.linux-x86_64-cpython-310/cffi
      copying cffi/setuptools_ext.py -> build/lib.linux-x86_64-cpython-310/cffi
      copying cffi/recompiler.py -> build/lib.linux-x86_64-cpython-310/cffi
      copying cffi/lock.py -> build/lib.linux-x86_64-cpython-310/cffi
      copying cffi/verifier.py -> build/lib.linux-x86_64-cpython-310/cffi
      copying cffi/_cffi_include.h -> build/lib.linux-x86_64-cpython-310/cffi
      copying cffi/parse_c_type.h -> build/lib.linux-x86_64-cpython-310/cffi
      copying cffi/_embedding.h -> build/lib.linux-x86_64-cpython-310/cffi
      copying cffi/_cffi_errors.h -> build/lib.linux-x86_64-cpython-310/cffi
      running build_ext
      building '_cffi_backend' extension
      creating build/temp.linux-x86_64-cpython-310
      creating build/temp.linux-x86_64-cpython-310/c
      x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DUSE__T
HREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/opt/saltstack/salt/include/python3.10 -c c/_cffi_backend.c -o build/temp.linux-x86_64-cpython-310/c/_cffi_backend.o
      c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory
         15 | #include <ffi.h>
            |          ^~~~~~~
      compilation terminated.
      error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for cffi
  Running setup.py clean for cffi
Failed to build cffi
Installing collected packages: cffi, saltext-azurerm
  Attempting uninstall: cffi
    Found existing installation: cffi 1.16.0
    Uninstalling cffi-1.16.0:
      Successfully uninstalled cffi-1.16.0
  Running setup.py install for cffi: started
  Running setup.py install for cffi: finished with status 'error'
  error: subprocess-exited-with-error

  × Running setup.py install for cffi did not run successfully.
  │ exit code: 1
  ╰─> [63 lines of output]
      /opt/saltstack/salt/lib/python3.10/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg`
      !!

              ********************************************************************************
              The license_file parameter is deprecated, use license_files instead.

              This deprecation is overdue, please update your project and remove deprecated
              calls to avoid build errors in the future.

              See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
              ********************************************************************************

      !!
        parsed = self.parsers.get(option_name, lambda x: x)(value)
      running install
      /opt/saltstack/salt/lib/python3.10/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
      !!

              ********************************************************************************
              Please avoid running ``setup.py`` directly.
              Instead, use pypa/build, pypa/installer or other
              standards-based tools.

              See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
              ********************************************************************************

      !!
        self.initialize_options()
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-310
      creating build/lib.linux-x86_64-cpython-310/cffi
      copying cffi/vengine_gen.py -> build/lib.linux-x86_64-cpython-310/cffi
      copying cffi/pkgconfig.py -> build/lib.linux-x86_64-cpython-310/cffi
      copying cffi/cparser.py -> build/lib.linux-x86_64-cpython-310/cffi
      copying cffi/model.py -> build/lib.linux-x86_64-cpython-310/cffi
      copying cffi/api.py -> build/lib.linux-x86_64-cpython-310/cffi
      copying cffi/error.py -> build/lib.linux-x86_64-cpython-310/cffi
      copying cffi/vengine_cpy.py -> build/lib.linux-x86_64-cpython-310/cffi
      copying cffi/ffiplatform.py -> build/lib.linux-x86_64-cpython-310/cffi
      copying cffi/cffi_opcode.py -> build/lib.linux-x86_64-cpython-310/cffi
      copying cffi/commontypes.py -> build/lib.linux-x86_64-cpython-310/cffi
      copying cffi/__init__.py -> build/lib.linux-x86_64-cpython-310/cffi
      copying cffi/backend_ctypes.py -> build/lib.linux-x86_64-cpython-310/cffi
      copying cffi/setuptools_ext.py -> build/lib.linux-x86_64-cpython-310/cffi
      copying cffi/recompiler.py -> build/lib.linux-x86_64-cpython-310/cffi
      copying cffi/lock.py -> build/lib.linux-x86_64-cpython-310/cffi
      copying cffi/verifier.py -> build/lib.linux-x86_64-cpython-310/cffi
      copying cffi/_cffi_include.h -> build/lib.linux-x86_64-cpython-310/cffi
      copying cffi/parse_c_type.h -> build/lib.linux-x86_64-cpython-310/cffi
      copying cffi/_embedding.h -> build/lib.linux-x86_64-cpython-310/cffi
      copying cffi/_cffi_errors.h -> build/lib.linux-x86_64-cpython-310/cffi
      running build_ext
      building '_cffi_backend' extension
      creating build/temp.linux-x86_64-cpython-310
      creating build/temp.linux-x86_64-cpython-310/c
      x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DUSE__T
HREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/opt/saltstack/salt/include/python3.10 -c c/_cffi_backend.c -o build/temp.linux-x86_64-cpython-310/c/_cffi_backend.o
      c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory
         15 | #include <ffi.h>
            |          ^~~~~~~
      compilation terminated.
      error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  Rolling back uninstall of cffi
  Moving to /opt/saltstack/salt/extras-3.10/_cffi_backend.cpython-310-x86_64-linux-gnu.so
   from /tmp/pip-uninstall-uedscs8_/_cffi_backend.cpython-310-x86_64-linux-gnu.so
  Moving to /opt/saltstack/salt/extras-3.10/cffi-1.16.0.dist-info/
   from /opt/saltstack/salt/extras-3.10/~ffi-1.16.0.dist-info
  Moving to /opt/saltstack/salt/extras-3.10/cffi/
   from /opt/saltstack/salt/extras-3.10/~ffi
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> cffi

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

[notice] A new release of pip available: 22.3.1 -> 24.0
[notice] To update, run: /opt/saltstack/salt/bin/python3.10 -m pip install --upgrade pip

Expected behavior Installation should complete successfully

Screenshots If applicable, add screenshots to help explain your problem.

Versions Report

salt --versions-report (Provided by running salt --versions-report. Please also mention any differences in master/minion versions.) ```yaml Salt Version: Salt: 3006.5 Python Version: Python: 3.10.13 (main, Nov 15 2023, 04:34:27) [GCC 11.2.0] Dependency Versions: cffi: 1.16.0 cherrypy: unknown dateutil: 2.8.1 docker-py: Not Installed gitdb: Not Installed gitpython: Not Installed Jinja2: 3.1.2 libgit2: 1.7.2 looseversion: 1.0.2 M2Crypto: Not Installed Mako: Not Installed msgpack: 1.0.2 msgpack-pure: Not Installed mysql-python: Not Installed packaging: 22.0 pycparser: 2.21 pycrypto: Not Installed pycryptodome: 3.9.8 pygit2: 1.14.1 python-gnupg: 0.4.8 PyYAML: 6.0.1 PyZMQ: 23.2.0 relenv: 0.14.2 smmap: Not Installed timelib: 0.2.4 Tornado: 4.5.3 ZMQ: 4.3.4 System Versions: dist: ubuntu 20.04.6 focal locale: utf-8 machine: x86_64 release: 5.15.0-1057-azure system: Linux version: Ubuntu 20.04.6 focal ```

Additional context Add any other context about the problem here.

nicholasmhughes commented 6 months ago

seems like you might need to install the libffi-dev system package since pip is compiling cffi

corey-hammerton commented 6 months ago

Installed successfully, both libffi-dev and saltext-azurerm. Thanks for the input