8

In the first step: configure, I got the following error:

... ... 
checking for DBUS... no
configure: error: Package requirements (dbus-1 >= 1.6) were not met:

No package 'dbus-1' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables DBUS_CFLAGS
and DBUS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

2 Answers 2

5

OSX is complaining that it can't find dbus in the system. Try installing it first by doing something like:

brew install dbus

Then, try installing dbus-python by running

pip install dbus-python

In order to run the dbus daemon do brew services start dbus as said in the documentation.

Sign up to request clarification or add additional context in comments.

2 Comments

Didn't work for me. The error is here
did not work for me either I am on a mac M1 chip mac book pro 13"
0

Based on the pastebin Captain Jack Sparrow provided it appears dbus-python's configure script doesn't like Homebrew's install of Python (which it needs to compile the dbus C extension module against), so I don't think it's even getting this far, but to successfully build dbus-python I'm pretty sure you'd need both dbus-glib and the main dbus package.

brew install dbus dbus-glib

There's also this note from Homebrew's Python docs, which may help solve the configure-script problems:

Since the system Python may not know which compiler flags to set when building bindings for software installed by Homebrew, you may need to run:

CFLAGS="-I$(brew --prefix)/include" LDFLAGS="-L$(brew --prefix)/lib" pip install <package>

Oh, yes, and since the configure script is clearly using pkg-config to detect the dbus install, setting PKG_CONFIG_PATH to the location where Homebrew will install dbus-1.pc is a good idea, too.

So, a full working install might require:

brew install dbus dbus-glib

PKG_CONFIG_PATH="$(brew --prefix)/lib/pkgconfig" \
CFLAGS="-I$(brew --prefix)/include" LDFLAGS="-L$(brew --prefix)/lib" \
pip install dbus-python

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.