Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#45901 - python2-systemd bindings not available

Attached to Project: Arch Linux
Opened by Chris Bell (addchild314) - Wednesday, 05 August 2015, 13:21 GMT
Last edited by Doug Newgard (Scimmia) - Wednesday, 05 August 2015, 13:46 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
After updating systemd to v223+, python2-systemd bindings are no longer available. Originally, the community/python2-systemd package was out of date, but has just been updated as of 2015.08.04 (& relocated to extra/python2-systemd); the updated version still does not seem to provide the bindings for the latest version of systemd (v224); attempting to import the systemd module in python fails.

Additional info:
* package version(s)
* config and/or log files etc.
systemd-224-1 (also 223-1)
python2-systemd-230-1 (Previous version was python2-systemd-221-1)

No messages are written to the journal when attempting to import the python module.


Steps to reproduce:
# pacman -Syu systemd python2-systemd
# systemctl daemon-reexec
# python -c 'from systemd import journal; print("OK")'

Expected Output:
OK

Actual Output:
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named 'systemd'

Workaround:
# pacman -U /var/cache/pacman/pkg/systemd-222-1-x86_64.pkg.tar.xz
# systemctl daemon-reexec
# python -c 'from systemd import journal; print("OK")'
OK

Last working version(s):
systemd-222-1
python2-systemd-221-1
This task depends upon

Closed by  Doug Newgard (Scimmia)
Wednesday, 05 August 2015, 13:46 GMT
Reason for closing:  Not a bug
Comment by Chris Bell (addchild314) - Wednesday, 05 August 2015, 13:22 GMT
I should also mention that the python2-systemd package does NOT need to be downgraded for the module to start working; only the systemd base package does, to (at most) v222.
Comment by Doug Newgard (Scimmia) - Wednesday, 05 August 2015, 13:32 GMT
You installed the python2 bindings then test with python3?
Comment by Chris Bell (addchild314) - Wednesday, 05 August 2015, 13:42 GMT
*Slams head into desk* wow. Just... wow. I didn't even notice that. Thanks! using python-systemd works.

My apologies! And thank you!

Loading...