Can'add pybluez to any project: "PyObjC requires macOS to build"
See original GitHub issue-
I am on the latest Poetry version.
-
I have searched the issues of this repo and believe that this is not a duplicate.
-
If an exception occurs when executing a command, I executed it again in debug mode (
-vvvoption). -
Ubuntu 20.04LTS:
-
Poetry version 1.1.4:
-
https://gist.github.com/sisco70/1bcccd9e08d2ff1d106b787112a3c40b:
The problem is dead simple:
I can’t add pybluez to any project, even an empty project:
- poetry init
- poetry shell
- poetry add pybluez -vvv
PyPI: 4 packages found for pybluez * Using version ^0.23 for PyBluez
Updating dependencies Resolving dependencies… 1: fact: test is 0.1.0 1: derived: test 1: fact: test depends on PyBluez (^0.23) 1: selecting test (0.1.0) 1: derived: PyBluez (^0.23) PyPI: 1 packages found for pybluez >=0.23,<0.24 1: fact: pybluez (0.23) depends on pyobjc-core (>=3.1,<6) 1: fact: pybluez (0.23) depends on pyobjc-framework-Cocoa (>=3.1,<6) 1: selecting pybluez (0.23) 1: derived: pyobjc-framework-Cocoa (>=3.1,<6) 1: derived: pyobjc-core (>=3.1,<6) 1: fact: pyobjc-framework-cocoa (5.3) depends on pyobjc-core (>=5.3) 1: selecting pyobjc-framework-cocoa (5.3) 1: derived: pyobjc-core (>=5.3) 1: selecting pyobjc-core (5.3) 1: Version solving took 0.005 seconds. 1: Tried 1 solutions.
Finding the necessary packages for the current system
Package operations: 3 installs, 0 updates, 0 removals
• Installing pyobjc-core (5.3): Pending… • Installing pyobjc-core (5.3): Installing… • Installing pyobjc-core (5.3): Failed
EnvCommandError
…
error: PyObjC requires macOS to build
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (1 by maintainers)

Top Related StackOverflow Question
Workaround:
This generates the following statement in
pyproject.toml:@raxod502, thanks!