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

Fix pipx build errors #44

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yougotwill
Copy link

I got this error when trying to install with pipx and so I upgraded pyobjc and it resolved the issue.

PIP STDOUT
----------
Collecting cmus-osx
  Using cached cmus_osx-3.0.6-py3-none-any.whl.metadata (2.1 kB)
Collecting Pillow<9.0,>=8.0 (from cmus-osx)
  Using cached Pillow-8.4.0.tar.gz (49.4 MB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting click<8.0,>=7.0 (from cmus-osx)
  Using cached click-7.1.2-py2.py3-none-any.whl.metadata (2.9 kB)
Collecting mutagen<2.0,>=1.42 (from cmus-osx)
  Using cached mutagen-1.47.0-py3-none-any.whl.metadata (1.7 kB)
Collecting pyobjc<7.0,>=6.2 (from cmus-osx)
  Using cached pyobjc-6.2.2-py3-none-any.whl.metadata (11 kB)
Collecting pyobjc-core==6.2.2 (from pyobjc<7.0,>=6.2->cmus-osx)
  Using cached pyobjc-core-6.2.2.tar.gz (780 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting pyobjc-framework-AddressBook==6.2.2 (from pyobjc<7.0,>=6.2->cmus-osx)
  Using cached pyobjc_framework_AddressBook-6.2.2-cp36-abi3-macosx_10_9_x86_64.whl.metadata (2.3 kB)
Collecting pyobjc-framework-AppleScriptKit==6.2.2 (from pyobjc<7.0,>=6.2->cmus-osx)
  Using cached pyobjc_framework_AppleScriptKit-6.2.2-py2.py3-none-any.whl.metadata (2.1 kB)
Collecting pyobjc-framework-ApplicationServices==6.2.2 (from pyobjc<7.0,>=6.2->cmus-osx)
  Using cached pyobjc_framework_ApplicationServices-6.2.2-py2.py3-none-any.whl.metadata (2.3 kB)
Collecting pyobjc-framework-Automator==6.2.2 (from pyobjc<7.0,>=6.2->cmus-osx)
  Using cached pyobjc_framework_Automator-6.2.2-py2.py3-none-any.whl.metadata (2.3 kB)
Collecting pyobjc-framework-CFNetwork==6.2.2 (from pyobjc<7.0,>=6.2->cmus-osx)
  Using cached pyobjc_framework_CFNetwork-6.2.2-cp36-abi3-macosx_10_9_x86_64.whl.metadata (2.3 kB)
Collecting pyobjc-framework-Cocoa==6.2.2 (from pyobjc<7.0,>=6.2->cmus-osx)
  Using cached pyobjc-framework-Cocoa-6.2.2.tar.gz (3.9 MB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'error'

PIP STDERR
----------
  error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [23 lines of output]
      Traceback (most recent call last):
        File "/Users/REDACTED/.local/pipx/shared/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/Users/REDACTED/.local/pipx/shared/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/Users/REDACTED/.local/pipx/shared/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/4p/vxd3tw617h3bg4hmg4khk5300000gn/T/pip-build-env-54sugy3m/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 327, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/4p/vxd3tw617h3bg4hmg4khk5300000gn/T/pip-build-env-54sugy3m/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 297, in _get_build_requires
          self.run_setup()
        File "/private/var/folders/4p/vxd3tw617h3bg4hmg4khk5300000gn/T/pip-build-env-54sugy3m/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 497, in run_setup
          super().run_setup(setup_script=setup_script)
        File "/private/var/folders/4p/vxd3tw617h3bg4hmg4khk5300000gn/T/pip-build-env-54sugy3m/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 313, in run_setup
          exec(code, locals())
        File "<string>", line 23, in <module>
        File "/private/var/folders/4p/vxd3tw617h3bg4hmg4khk5300000gn/T/pip-install-p2a3rb0h/pyobjc-framework-cocoa_73f337aa0cb240a095fb59d824ae085f/pyobjc_setup.py", line 441, in Extension
          "-DPyObjC_BUILD_RELEASE=%02d%02d" % (tuple(map(int, os_level.split("."))))
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      TypeError: not enough arguments for format string
      [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.

  • Upgraded pyobjc to latest
  • Upgraded poetry to latest
  • Minimum python version is now 3.9

upgraded pyobjc and poetry to latest. minimum python version is now 3.9
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

Successfully merging this pull request may close these issues.

1 participant