Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install on CentOS 7 #78

Closed
drgrumpy opened this issue Nov 16, 2019 · 1 comment
Closed

Cannot install on CentOS 7 #78

drgrumpy opened this issue Nov 16, 2019 · 1 comment

Comments

@drgrumpy
Copy link

Tried:
dnf install python-systemd python3-systemd

result:
Error: Unable to find a match: python-systemd python3-systemd

and:

sudo pip3 install git+https://github.com/systemd/python-systemd.git#egg=systemd
Traceback (most recent call last):
  File "/bin/pip3", line 16, in <module>
    sys.exit(main())
TypeError: 'module' object is not callable
@jvoosten
Copy link

Same here; CentOS 7, just says "unable to find a match". Apparently this modules is not packaged for one of the most popular operating systems, or there are some additions steps required.

keszybz added a commit to keszybz/python-systemd that referenced this issue Aug 15, 2022
Fedora has no python2 package, so drop that.
Similarly, with latest Debian and Opensuse, 'apt-get install
python3-systemd' works, but 'apt-get install python-systemd' doesn't.

(Tested with
podman run -it --rm debian apt-get install python3-systemd
mock -r opensuse-tumbleweed-x86_64 --enable-network -i python3-systemd)

It also seems we never built the package in EPEL, so let's drop
RHEL/CentOS from the list.

If people need to, they can install from sources where the distro
packages are unavailable (and they shouldn't be using python2 anyway
at this point.)

Also add 'apt-get update' into the instructions because w/o that
install does not work in a pristine container.

Fixes systemd#78.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants