Repository navigation
Cannot install on Ubuntu 18.04 from docs #97
Copy link
Copy link
Closed
Description
(virtualenv) root@oc1736-ourcompose-com--2021-07-11-01-56:~# /usr/local/lib/docker/virtualenv/bin/pip3 install -U --force-reinstall -v git+https://github.com/systemd/python-systemd.git#egg=systemd
Using pip 21.1.3 from /usr/local/lib/docker/virtualenv/lib/python3.6/site-packages/pip (python 3.6)
Non-user install because user site-packages disabled
Created temporary directory: /tmp/pip-ephem-wheel-cache-yu65o3nt
Created temporary directory: /tmp/pip-req-tracker-9jlex1xo
Initialized build tracking at /tmp/pip-req-tracker-9jlex1xo
Created build tracker: /tmp/pip-req-tracker-9jlex1xo
Entered build tracker: /tmp/pip-req-tracker-9jlex1xo
Created temporary directory: /tmp/pip-install-7pthecm8
Collecting systemd
Cloning https://github.com/systemd/python-systemd.git to /tmp/pip-install-7pthecm8/systemd_b0aedc0644d74827b2cf4de913ce99e3
Running command git clone -q https://github.com/systemd/python-systemd.git /tmp/pip-install-7pthecm8/systemd_b0aedc0644d74827b2cf4de913ce99e3
Added systemd from git+https://github.com/systemd/python-systemd.git#egg=systemd to build tracker '/tmp/pip-req-tracker-9jlex1xo'
Running setup.py (path:/tmp/pip-install-7pthecm8/systemd_b0aedc0644d74827b2cf4de913ce99e3/setup.py) egg_info for package systemd
Created temporary directory: /tmp/pip-pip-egg-info-3m8k8600
Running command python setup.py egg_info
running egg_info
creating /tmp/pip-pip-egg-info-3m8k8600/systemd_python.egg-info
writing /tmp/pip-pip-egg-info-3m8k8600/systemd_python.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-pip-egg-info-3m8k8600/systemd_python.egg-info/dependency_links.txt
writing top-level names to /tmp/pip-pip-egg-info-3m8k8600/systemd_python.egg-info/top_level.txt
writing manifest file '/tmp/pip-pip-egg-info-3m8k8600/systemd_python.egg-info/SOURCES.txt'
package init file 'systemd/test/__init__.py' not found (or not a regular file)
reading manifest file '/tmp/pip-pip-egg-info-3m8k8600/systemd_python.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files found matching 'docs/__pycache__/*'
adding license file 'LICENSE.txt'
writing manifest file '/tmp/pip-pip-egg-info-3m8k8600/systemd_python.egg-info/SOURCES.txt'
WARNING: Generating metadata for package systemd produced metadata for project name systemd-python. Fix your #egg=systemd fragments.
Source in /tmp/pip-install-7pthecm8/systemd_b0aedc0644d74827b2cf4de913ce99e3 has version 235, which satisfies requirement systemd-python from git+https://github.com/systemd/python-systemd.git#egg=systemd
Removed systemd-python from git+https://github.com/systemd/python-systemd.git#egg=systemd from build tracker '/tmp/pip-req-tracker-9jlex1xo'
WARNING: Discarding git+https://github.com/systemd/python-systemd.git#egg=systemd. Requested systemd-python from git+https://github.com/systemd/python-systemd.git#egg=systemd has inconsistent name: filename has 'systemd', but metadata has
'systemd-python'
With the important line being:
WARNING: Discarding git+https://github.com/systemd/python-systemd.git#egg=systemd. Requested systemd-python from git+https://github.com/systemd/python-systemd.git#egg=systemd has inconsistent name: filename has 'systemd', but metadata has
'systemd-python'
So I changed the command to:
/usr/local/lib/docker/virtualenv/bin/pip3 install -U --force-reinstall -v git+https://github.com/systemd/python-systemd.git#egg=systemd-python
which worked. I'm assuming that it's just a documentation issue?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Activity
smacz42 commentedon Jul 11, 2021
This is also stemming from the fact that the version in pypi is
0.0.9, which does not have thesystemd.daemon.listen_fds()function available.kurt-rhee commentedon Jan 27, 2022
I have the same issue in ubuntu 20.04 installing in a virtual environment
README: fix installation urls