Skip to content

Cannot install on Ubuntu 18.04 from docs #97

@smacz42

Description

@smacz42
(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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions