Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] FileNotFoundError: [Errno 2] No such file or directory: '/private/var/folders/m_/f91_g65n0p3dpzc3nnltrwkc0000gn/T/pip-install-n8yvvi_r/salt_4ea9b5927a9946f58817134b7fe54d06/requirements/static/pkg/py3.8/darwin.txt' #63267

Open
1 of 9 tasks
qiaouchicago opened this issue Dec 8, 2022 · 6 comments
Labels
Bug broken, incorrect, or confusing behavior MacOS pertains to the OS of fruit needs-triage

Comments

@qiaouchicago
Copy link

qiaouchicago commented Dec 8, 2022

Description
Can not install on M2 mac. Error message:
FileNotFoundError: [Errno 2] No such file or directory: '/private/var/folders/m_/f91_g65n0p3dpzc3nnltrwkc0000gn/T/pip-install-n8yvvi_r/salt_4ea9b5927a9946f58817134b7fe54d06/requirements/static/pkg/py3.8/darwin.txt'

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.

  • on-prem machine
  • VM (Virtualbox, KVM, etc. please specify)
  • VM running on a cloud service, please be explicit and add details
  • container (Kubernetes, Docker, containerd, etc. please specify)
  • or a combination, please be explicit
  • jails if it is FreeBSD
  • classic packaging
  • onedir packaging
  • used bootstrap to install

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

 venv/bin/pip install salt
Collecting salt
  Using cached salt-3005.1.tar.gz (17.9 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [53 lines of output]
      3005.1
      Traceback (most recent call last):
        File "/Users/qiaoqiao/gdc/tungsten/venv38/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in <module>
          main()
        File "/Users/qiaoqiao/gdc/tungsten/venv38/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/Users/qiaoqiao/gdc/tungsten/venv38/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
        File "/private/var/folders/m_/f91_g65n0p3dpzc3nnltrwkc0000gn/T/pip-build-env-iuii0xh8/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 338, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
        File "/private/var/folders/m_/f91_g65n0p3dpzc3nnltrwkc0000gn/T/pip-build-env-iuii0xh8/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 320, in _get_build_requires
          self.run_setup()
        File "/private/var/folders/m_/f91_g65n0p3dpzc3nnltrwkc0000gn/T/pip-build-env-iuii0xh8/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 484, in run_setup
          super(_BuildMetaLegacyBackend,
        File "/private/var/folders/m_/f91_g65n0p3dpzc3nnltrwkc0000gn/T/pip-build-env-iuii0xh8/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 335, in run_setup
          exec(code, locals())
        File "<string>", line 1370, in <module>
        File "/private/var/folders/m_/f91_g65n0p3dpzc3nnltrwkc0000gn/T/pip-build-env-iuii0xh8/overlay/lib/python3.8/site-packages/setuptools/__init__.py", line 87, in setup
          return distutils.core.setup(**attrs)
        File "/private/var/folders/m_/f91_g65n0p3dpzc3nnltrwkc0000gn/T/pip-build-env-iuii0xh8/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 147, in setup
          _setup_distribution = dist = klass(attrs)
        File "<string>", line 987, in __init__
        File "<string>", line 993, in update_metadata
        File "<string>", line 1124, in _property_install_requires
        File "<string>", line 179, in _parse_requirements_file
      FileNotFoundError: [Errno 2] No such file or directory: '/private/var/folders/m_/f91_g65n0p3dpzc3nnltrwkc0000gn/T/pip-install-kdgsb2oe/salt_f137afe3dd2e4dafb1e1ba6e1983c5e8/requirements/static/pkg/py3.8/darwin.txt'
      [ERROR   ] An un-handled exception was caught by Salt's global exception handler:
      FileNotFoundError: [Errno 2] No such file or directory: '/private/var/folders/m_/f91_g65n0p3dpzc3nnltrwkc0000gn/T/pip-install-kdgsb2oe/salt_f137afe3dd2e4dafb1e1ba6e1983c5e8/requirements/static/pkg/py3.8/darwin.txt'
      Traceback (most recent call last):
        File "/Users/qiaoqiao/gdc/tungsten/venv38/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in <module>
          main()
        File "/Users/qiaoqiao/gdc/tungsten/venv38/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/Users/qiaoqiao/gdc/tungsten/venv38/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
        File "/private/var/folders/m_/f91_g65n0p3dpzc3nnltrwkc0000gn/T/pip-build-env-iuii0xh8/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 338, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
        File "/private/var/folders/m_/f91_g65n0p3dpzc3nnltrwkc0000gn/T/pip-build-env-iuii0xh8/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 320, in _get_build_requires
          self.run_setup()
        File "/private/var/folders/m_/f91_g65n0p3dpzc3nnltrwkc0000gn/T/pip-build-env-iuii0xh8/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 484, in run_setup
          super(_BuildMetaLegacyBackend,
        File "/private/var/folders/m_/f91_g65n0p3dpzc3nnltrwkc0000gn/T/pip-build-env-iuii0xh8/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 335, in run_setup
          exec(code, locals())
        File "<string>", line 1370, in <module>
        File "/private/var/folders/m_/f91_g65n0p3dpzc3nnltrwkc0000gn/T/pip-build-env-iuii0xh8/overlay/lib/python3.8/site-packages/setuptools/__init__.py", line 87, in setup
          return distutils.core.setup(**attrs)
        File "/private/var/folders/m_/f91_g65n0p3dpzc3nnltrwkc0000gn/T/pip-build-env-iuii0xh8/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 147, in setup
          _setup_distribution = dist = klass(attrs)
        File "<string>", line 987, in __init__
        File "<string>", line 993, in update_metadata
        File "<string>", line 1124, in _property_install_requires
        File "<string>", line 179, in _parse_requirements_file
      FileNotFoundError: [Errno 2] No such file or directory: '/private/var/folders/m_/f91_g65n0p3dpzc3nnltrwkc0000gn/T/pip-install-kdgsb2oe/salt_f137afe3dd2e4dafb1e1ba6e1983c5e8/requirements/static/pkg/py3.8/darwin.txt'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Expected behavior
A clear and concise description of what you expected to happen.
Salt should be installed 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.)
PASTE HERE
3005.1

Additional context
Add any other context about the problem here.

@qiaouchicago qiaouchicago added Bug broken, incorrect, or confusing behavior needs-triage labels Dec 8, 2022
@welcome
Copy link

welcome bot commented Dec 8, 2022

Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
Please be sure to review our Code of Conduct. Also, check out some of our community resources including:

There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar.
If you have additional questions, email us at saltproject@vmware.com. We’re glad you’ve joined our community and look forward to doing awesome things with you!

@OrangeDog OrangeDog added the MacOS pertains to the OS of fruit label Dec 9, 2022
@alphabet5
Copy link

I see the same issue.

~ % python3.11 -m pip install --upgrade salt
Collecting salt
  Downloading salt-3005.1.tar.gz (17.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 17.9/17.9 MB 7.2 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [65 lines of output]
      3005.1
      Traceback (most recent call last):
        File "/opt/homebrew/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/opt/homebrew/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/opt/homebrew/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^
        File "/opt/homebrew/Cellar/python@3.11/3.11.1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/setuptools/build_meta.py", line 338, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/opt/homebrew/Cellar/python@3.11/3.11.1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/setuptools/build_meta.py", line 320, in _get_build_requires
          self.run_setup()
        File "/opt/homebrew/Cellar/python@3.11/3.11.1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/setuptools/build_meta.py", line 485, in run_setup
          self).run_setup(setup_script=setup_script)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/opt/homebrew/Cellar/python@3.11/3.11.1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/setuptools/build_meta.py", line 335, in run_setup
          exec(code, locals())
        File "<string>", line 1370, in <module>
        File "/opt/homebrew/Cellar/python@3.11/3.11.1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/setuptools/__init__.py", line 87, in setup
          return distutils.core.setup(**attrs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/opt/homebrew/Cellar/python@3.11/3.11.1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 147, in setup
          _setup_distribution = dist = klass(attrs)
                                       ^^^^^^^^^^^^
        File "<string>", line 987, in __init__
        File "<string>", line 993, in update_metadata
        File "<string>", line 1124, in _property_install_requires
        File "<string>", line 179, in _parse_requirements_file
      FileNotFoundError: [Errno 2] No such file or directory: '/private/var/folders/kj/_rslddz103g5d3m98kr0qhy40000gn/T/pip-install-ueqroipo/salt_ef8afc9e9e6d4a9298ca08448933ba66/requirements/static/pkg/py3.11/darwin.txt'
      [ERROR   ] An un-handled exception was caught by Salt's global exception handler:
      FileNotFoundError: [Errno 2] No such file or directory: '/private/var/folders/kj/_rslddz103g5d3m98kr0qhy40000gn/T/pip-install-ueqroipo/salt_ef8afc9e9e6d4a9298ca08448933ba66/requirements/static/pkg/py3.11/darwin.txt'
      Traceback (most recent call last):
        File "/opt/homebrew/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/opt/homebrew/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/opt/homebrew/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^
        File "/opt/homebrew/Cellar/python@3.11/3.11.1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/setuptools/build_meta.py", line 338, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/opt/homebrew/Cellar/python@3.11/3.11.1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/setuptools/build_meta.py", line 320, in _get_build_requires
          self.run_setup()
        File "/opt/homebrew/Cellar/python@3.11/3.11.1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/setuptools/build_meta.py", line 485, in run_setup
          self).run_setup(setup_script=setup_script)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/opt/homebrew/Cellar/python@3.11/3.11.1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/setuptools/build_meta.py", line 335, in run_setup
          exec(code, locals())
        File "<string>", line 1370, in <module>
        File "/opt/homebrew/Cellar/python@3.11/3.11.1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/setuptools/__init__.py", line 87, in setup
          return distutils.core.setup(**attrs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/opt/homebrew/Cellar/python@3.11/3.11.1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 147, in setup
          _setup_distribution = dist = klass(attrs)
                                       ^^^^^^^^^^^^
        File "<string>", line 987, in __init__
        File "<string>", line 993, in update_metadata
        File "<string>", line 1124, in _property_install_requires
        File "<string>", line 179, in _parse_requirements_file
      FileNotFoundError: [Errno 2] No such file or directory: '/private/var/folders/kj/_rslddz103g5d3m98kr0qhy40000gn/T/pip-install-ueqroipo/salt_ef8afc9e9e6d4a9298ca08448933ba66/requirements/static/pkg/py3.11/darwin.txt'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

@ellisonmarks
Copy link

This indicates an unsupported version of python. See https://github.com/saltstack/salt/tree/master/requirements/static/pkg and the files under each version dir for the actual platform support at a given tag.

@qiaouchicago
Copy link
Author

I was using python3.8

@alphabet5
Copy link

I get a different error when using python3.10. Specifically, cryptography 3.3.2 won't compile, but newer versions have wheels, so it doesn't have to be. It would be nice if that could be updated.

~ % python3.10 -m pip install salt
Collecting salt
  Using cached salt-3005.1-py3-none-any.whl
Collecting gitpython==3.1.12
  Using cached GitPython-3.1.12-py3-none-any.whl (159 kB)
Collecting jaraco.classes==3.2.1
  Using cached jaraco.classes-3.2.1-py3-none-any.whl (5.6 kB)
Collecting timelib==0.2.5
  Using cached timelib-0.2.5-cp310-cp310-macosx_13_0_arm64.whl
Collecting immutables==0.15
  Using cached immutables-0.15-cp310-cp310-macosx_13_0_arm64.whl
Collecting portend==2.6
  Using cached portend-2.6-py2.py3-none-any.whl (5.1 kB)
Collecting cheroot==8.5.2
  Using cached cheroot-8.5.2-py2.py3-none-any.whl (97 kB)
Collecting pycryptodomex==3.9.8
  Using cached pycryptodomex-3.9.8-cp310-cp310-macosx_13_0_arm64.whl
Collecting pyopenssl==19.0.0
  Using cached pyOpenSSL-19.0.0-py2.py3-none-any.whl (53 kB)
Collecting more-itertools==8.2.0
  Using cached more_itertools-8.2.0-py3-none-any.whl (43 kB)
Collecting pytz==2022.1
  Using cached pytz-2022.1-py2.py3-none-any.whl (503 kB)
Collecting jaraco.collections==3.4.0
  Using cached jaraco.collections-3.4.0-py3-none-any.whl (10 kB)
Collecting apache-libcloud==2.5.0
  Using cached apache_libcloud-2.5.0-py2.py3-none-any.whl (3.1 MB)
Collecting jaraco.functools==2.0
  Using cached jaraco.functools-2.0-py2.py3-none-any.whl (6.7 kB)
Collecting six==1.16.0
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting psutil==5.8.0
  Using cached psutil-5.8.0-cp310-cp310-macosx_13_0_arm64.whl
Collecting setproctitle==1.1.10
  Using cached setproctitle-1.1.10-cp310-cp310-macosx_13_0_arm64.whl
Collecting cryptography==3.3.2
  Using cached cryptography-3.3.2.tar.gz (539 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting markupsafe==2.0.1
  Using cached MarkupSafe-2.0.1-cp310-cp310-macosx_10_9_universal2.whl (18 kB)
Collecting zc.lockfile==2.0
  Using cached zc.lockfile-2.0-py2.py3-none-any.whl (9.7 kB)
Requirement already satisfied: pycparser==2.21 in /opt/homebrew/lib/python3.10/site-packages (from salt) (2.21)
Collecting smmap==3.0.2
  Using cached smmap-3.0.2-py2.py3-none-any.whl (25 kB)
Collecting tempora==4.1.1
  Using cached tempora-4.1.1-py3-none-any.whl (15 kB)
Collecting jaraco.text==3.5.1
  Using cached jaraco.text-3.5.1-py3-none-any.whl (8.1 kB)
Collecting distro==1.5.0
  Using cached distro-1.5.0-py2.py3-none-any.whl (18 kB)
Collecting contextvars==2.4
  Using cached contextvars-2.4-py3-none-any.whl
Collecting python-dateutil==2.8.0
  Using cached python_dateutil-2.8.0-py2.py3-none-any.whl (226 kB)
Collecting gitdb==4.0.5
  Using cached gitdb-4.0.5-py3-none-any.whl (63 kB)
Collecting chardet==3.0.4
  Using cached chardet-3.0.4-py2.py3-none-any.whl (133 kB)
Collecting requests==2.25.1
  Using cached requests-2.25.1-py2.py3-none-any.whl (61 kB)
Collecting jinja2==3.1.0
  Using cached Jinja2-3.1.0-py3-none-any.whl (132 kB)
Collecting linode-python==1.1.1
  Using cached linode_python-1.1.1-py3-none-any.whl
Collecting idna==2.8
  Using cached idna-2.8-py2.py3-none-any.whl (58 kB)
Collecting pyzmq==23.2.0
  Using cached pyzmq-23.2.0-cp310-cp310-macosx_10_15_universal2.whl (1.9 MB)
Collecting certifi==2022.5.18.1
  Using cached certifi-2022.5.18.1-py3-none-any.whl (155 kB)
Collecting cffi==1.14.6
  Using cached cffi-1.14.6-cp310-cp310-macosx_13_0_arm64.whl
Collecting pyasn1==0.4.8
  Using cached pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
Collecting pyyaml==5.4.1
  Using cached PyYAML-5.4.1-cp310-cp310-macosx_13_0_arm64.whl
Collecting python-gnupg==0.4.8
  Using cached python_gnupg-0.4.8-py2.py3-none-any.whl (18 kB)
Collecting cherrypy==18.6.1
  Using cached CherryPy-18.6.1-py2.py3-none-any.whl (419 kB)
Collecting vultr==1.0.1
  Using cached vultr-1.0.1-py2.py3-none-any.whl (17 kB)
Collecting jmespath==1.0.1
  Using cached jmespath-1.0.1-py3-none-any.whl (20 kB)
Collecting urllib3==1.26.6
  Using cached urllib3-1.26.6-py2.py3-none-any.whl (138 kB)
Collecting mako==1.1.4
  Using cached Mako-1.1.4-py2.py3-none-any.whl (75 kB)
Collecting msgpack==1.0.2
  Using cached msgpack-1.0.2-cp310-cp310-macosx_13_0_arm64.whl
Requirement already satisfied: setuptools in /opt/homebrew/lib/python3.10/site-packages (from zc.lockfile==2.0->salt) (67.2.0)
Building wheels for collected packages: cryptography
  Building wheel for cryptography (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for cryptography (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [152 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.macosx-13-arm64-cpython-310
      creating build/lib.macosx-13-arm64-cpython-310/cryptography
      copying src/cryptography/__init__.py -> build/lib.macosx-13-arm64-cpython-310/cryptography
      copying src/cryptography/utils.py -> build/lib.macosx-13-arm64-cpython-310/cryptography
      copying src/cryptography/__about__.py -> build/lib.macosx-13-arm64-cpython-310/cryptography
      copying src/cryptography/exceptions.py -> build/lib.macosx-13-arm64-cpython-310/cryptography
      copying src/cryptography/fernet.py -> build/lib.macosx-13-arm64-cpython-310/cryptography
      creating build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat
      copying src/cryptography/hazmat/_der.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat
      copying src/cryptography/hazmat/__init__.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat
      copying src/cryptography/hazmat/_oid.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat
      creating build/lib.macosx-13-arm64-cpython-310/cryptography/x509
      copying src/cryptography/x509/oid.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/x509
      copying src/cryptography/x509/ocsp.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/x509
      copying src/cryptography/x509/general_name.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/x509
      copying src/cryptography/x509/__init__.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/x509
      copying src/cryptography/x509/extensions.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/x509
      copying src/cryptography/x509/name.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/x509
      copying src/cryptography/x509/base.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/x509
      copying src/cryptography/x509/certificate_transparency.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/x509
      creating build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/backends
      copying src/cryptography/hazmat/backends/interfaces.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/backends
      copying src/cryptography/hazmat/backends/__init__.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/backends
      creating build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/poly1305.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/padding.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives
      creating build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/bindings
      copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/bindings
      creating build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/x448.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/ocsp.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/aead.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/encode_asn1.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/poly1305.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/ed25519.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/ed448.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/x25519.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/backends/openssl
      creating build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives/kdf
      creating build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives/twofactor
      copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives/twofactor
      copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives/twofactor
      copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives/twofactor
      copying src/cryptography/hazmat/primitives/twofactor/utils.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives/twofactor
      creating build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives/serialization
      copying src/cryptography/hazmat/primitives/serialization/__init__.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives/serialization
      copying src/cryptography/hazmat/primitives/serialization/pkcs12.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives/serialization
      copying src/cryptography/hazmat/primitives/serialization/pkcs7.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives/serialization
      copying src/cryptography/hazmat/primitives/serialization/ssh.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives/serialization
      copying src/cryptography/hazmat/primitives/serialization/base.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives/serialization
      creating build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives/ciphers
      copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives/ciphers
      copying src/cryptography/hazmat/primitives/ciphers/aead.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives/ciphers
      copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives/ciphers
      copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives/ciphers
      copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives/ciphers
      creating build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/x448.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/ed25519.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/ed448.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/x25519.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/primitives/asymmetric
      creating build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/bindings/openssl
      copying src/cryptography/hazmat/bindings/openssl/__init__.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/bindings/openssl
      copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/bindings/openssl
      copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.macosx-13-arm64-cpython-310/cryptography/hazmat/bindings/openssl
      running egg_info
      writing src/cryptography.egg-info/PKG-INFO
      writing dependency_links to src/cryptography.egg-info/dependency_links.txt
      writing requirements to src/cryptography.egg-info/requires.txt
      writing top-level names to src/cryptography.egg-info/top_level.txt
      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 found matching 'vectors'
      warning: no previously-included files matching '*' found under directory 'vectors'
      warning: no previously-included files matching '*' found under directory '.github'
      warning: no previously-included files found matching 'release.py'
      warning: no previously-included files found matching '.coveragerc'
      warning: no previously-included files found matching 'codecov.yml'
      warning: no previously-included files found matching '.readthedocs.yml'
      warning: no previously-included files found matching 'dev-requirements.txt'
      warning: no previously-included files found matching 'rtd-requirements.txt'
      warning: no previously-included files found matching 'tox.ini'
      warning: no previously-included files matching '*' found under directory '.zuul.d'
      warning: no previously-included files matching '*' found under directory '.zuul.playbooks'
      adding license file 'LICENSE'
      adding license file 'LICENSE.APACHE'
      adding license file 'LICENSE.BSD'
      adding license file 'LICENSE.PSF'
      adding license file 'AUTHORS.rst'
      writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
      running build_ext
      generating cffi module 'build/temp.macosx-13-arm64-cpython-310/_padding.c'
      creating build/temp.macosx-13-arm64-cpython-310
      generating cffi module 'build/temp.macosx-13-arm64-cpython-310/_openssl.c'
      building '_openssl' extension
      creating build/temp.macosx-13-arm64-cpython-310/build
      creating build/temp.macosx-13-arm64-cpython-310/build/temp.macosx-13-arm64-cpython-310
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -I/usr/local/opt/openssl/include -I/opt/homebrew/opt/python@3.10/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c build/temp.macosx-13-arm64-cpython-310/_openssl.c -o build/temp.macosx-13-arm64-cpython-310/build/temp.macosx-13-arm64-cpython-310/_openssl.o -Wconversion -Wno-error=sign-conversion
      build/temp.macosx-13-arm64-cpython-310/_openssl.c:575:10: fatal error: 'openssl/opensslv.h' file not found
      #include <openssl/opensslv.h>
               ^~~~~~~~~~~~~~~~~~~~
      1 error generated.

          =============================DEBUG ASSISTANCE=============================
          If you are seeing a compilation error please try the following steps to
          successfully install cryptography:
          1) Upgrade to the latest pip and try again. This will fix errors for most
             users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
          2) Read https://cryptography.io/en/latest/installation.html for specific
             instructions for your platform.
          3) Check our frequently asked questions for more information:
             https://cryptography.io/en/latest/faq.html
          =============================DEBUG ASSISTANCE=============================

      error: command '/usr/bin/clang' 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 cryptography
Failed to build cryptography
ERROR: Could not build wheels for cryptography, which is required to install pyproject.toml-based projects

@MikeO-8thLight
Copy link

You need to set the includes for OpenSSL. I used the following on Mac:

env LDFLAGS="-L$(brew --prefix openssl@1.1)/lib" \
CFLAGS="-I$(brew --prefix openssl@1.1)/include" \
pip3.10 install salt

You may need swig in there too SWIG_FEATURES="-cpperraswarn -includeall -I$(brew --prefix openssl@1.1)/include" \

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior MacOS pertains to the OS of fruit needs-triage
Projects
None yet
Development

No branches or pull requests

5 participants