Skip to content
Advertisement

Python3 dbus import error: undefined symbol: _Py_ZeroStruct

I am trying to use python-mbus for python 3, i have installed it with

JavaScript

However the import fails with:

JavaScript

I have also installed it with:

JavaScript

But i still get the same error:

JavaScript

This is in sys.path:

JavaScript

Im runnin on Debian GNU/Linux buster/sid

Any idea of what am I doing wrong?

Advertisement

Answer

I’m not exactly sure how I fixed this (can’t comment), but I had the exact same problem and I did:

JavaScript

After which aptitude alerted me of some dependency issues with Python, and I “downgraded” a version of Python I had installed on Ubuntu Xenial to the default package provided by Artful. Now, import dbus on Python 3.6.3 doesn’t pass any errors. Don’t know if it actually works well, though.

Maybe you’ll be able to fix it in a similar fashion, since Debian and Ubuntu packages are usually the same.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement