question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can'add pybluez to any project: "PyObjC requires macOS to build"

See original GitHub issue

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:closed
  • Created 3 years ago
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
raxod502commented, Apr 2, 2021

Workaround:

% poetry add git+https://github.com/pybluez/pybluez#0.23

This generates the following statement in pyproject.toml:

pybluez = {git = "https://github.com/pybluez/pybluez", rev = "0.23"}
0reactions
mrkeuzcommented, Feb 26, 2022

@raxod502, thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issue with Installing PyObjC for Python
I am using Xcode Version 7.3 and have been searching online for some answers but have been unable to find anything that seems...
Read more >
Heroku Build Fail With Error "Pyobjc Requires Macos To Build"
Can'add pybluez to any project : PyObjC requires macOS to build #3415. Closed. 3 tasks done I can recreate the failure. Start by...
Read more >
Installing PyObjC — PyObjC - the Python to Objective-C bridge
PyObjC is regularly tested on macOS 10.14 and should work on macOS 10.9 or later for the ... Some use cases require installation...
Read more >
Simple index
... secondordercoefficient etherunit carate spacy-model-manager systemd-service multiprocess-decorator django-relativedeltastore symath project-help-create ...
Read more >
Show HN: Control your Bose headphones from your Mac's ...
In the US at least, clean room reverse engineering is not required (see the "case law" section of the article, which documents two...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found