Skip to content

native cysystemd package doesn't work

Description:

Running an application that uses pysystemd fails to use it properly. Switching to a venv works fine.

Additional info:

  • package version(s): 1.6.3-1.1

Steps to reproduce:

Test script

❯ python3 test_cysystemd.py
Couldn't find current_boot_id, cysystemd doesn't work

Then repeat in a venv:

❯ python -m venv venv
❯ source venv/bin/activate.fish
❯ pip install cysystemd
Collecting cysystemd
  Using cached cysystemd-2.0.1-cp313-cp313-manylinux_2_34_x86_64.whl.metadata (10 kB)
Using cached cysystemd-2.0.1-cp313-cp313-manylinux_2_34_x86_64.whl (2.4 MB)
Installing collected packages: cysystemd
Successfully installed cysystemd-2.0.1

[notice] A new release of pip is available: 25.1.1 -> 25.2
[notice] To update, run: pip install --upgrade pip
❯ python3 test_cysystemd.py
Found current_boot_id, cysystemd is probably working

Maybe the issue is just a versioning issue, I notice the venv is a lot newer.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information