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

Cannot install on 2021 M1 Macbook Pro on MacOS 13.0 #80

Open
Kevin-Lean opened this issue Jan 20, 2023 · 2 comments
Open

Cannot install on 2021 M1 Macbook Pro on MacOS 13.0 #80

Kevin-Lean opened this issue Jan 20, 2023 · 2 comments

Comments

@Kevin-Lean
Copy link

Kevin-Lean commented Jan 20, 2023

When I try to install names-matcher via pip, setuptools throws an error that "Darwin" isn't a valid OS.

~/Projects/scripts/name-verification via  v3.10.7 (scripts)                                                                                                                                                                                                                                                                         15:48:13
✖ pip install names-matcher --no-cache
Collecting names-matcher
  Downloading names_matcher-2.0.13-py3-none-any.whl (12 kB)
Requirement already satisfied: rapidfuzz<3.0,>=2.0.0 in /Users/kevin.obrien/.virtualenvs/scripts/lib/python3.10/site-packages (from names-matcher) (2.11.1)
Collecting lapjv<2.0,>=1.3.14
  Downloading lapjv-1.3.24.tar.gz (10 kB)
  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
  ╰─> [15 lines of output]
      Traceback (most recent call last):
        File "/Users/kevin.obrien/.virtualenvs/scripts/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in <module>
          main()
        File "/Users/kevin.obrien/.virtualenvs/scripts/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/Users/kevin.obrien/.virtualenvs/scripts/lib/python3.10/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/7g/40b5r8ps5yq_8f3h0b5dmr800000gt/T/pip-build-env-lnqihez8/overlay/lib/python3.10/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/7g/40b5r8ps5yq_8f3h0b5dmr800000gt/T/pip-build-env-lnqihez8/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 320, in _get_build_requires
          self.run_setup()
        File "/private/var/folders/7g/40b5r8ps5yq_8f3h0b5dmr800000gt/T/pip-build-env-lnqihez8/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 335, in run_setup
          exec(code, locals())
        File "<string>", line 53, in <module>
      KeyError: 'Darwin'
      [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.
@afs25
Copy link

afs25 commented Jan 20, 2023

Probably not relevant, but the same issue occurs on a 2021 M1 MacBook Pro running Ventura (13.1)

Update: Reported this here src-d/lapjv#78 (comment) because it is actually an issue with installing that package.

@obruker
Copy link

obruker commented Dec 26, 2023

As a workaround you can explicitly pip install lapjv==1.3.22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants