Page MenuHomeSoftware Heritage
Paste P487

[fixed] fresh new install, fresh new failure
ActivePublic

Authored by ardumont on Aug 2 2019, 12:03 PM.
pip install $( ./bin/pip-swh-packages --with-testing )
Obtaining file:///home/tony/work/inria/repo/swh/swh-environment/swh-core
Obtaining file:///home/tony/work/inria/repo/swh/swh-environment/swh-model
Obtaining file:///home/tony/work/inria/repo/swh/swh-environment/swh-core
Obtaining file:///home/tony/work/inria/repo/swh/swh-environment/swh-objstorage
Obtaining file:///home/tony/work/inria/repo/swh/swh-environment/swh-storage
Obtaining file:///home/tony/work/inria/repo/swh/swh-environment/swh-loader-core
Obtaining file:///home/tony/work/inria/repo/swh/swh-environment/swh-scheduler
Obtaining file:///home/tony/work/inria/repo/swh/swh-environment/swh-journal
Obtaining file:///home/tony/work/inria/repo/swh/swh-environment/swh-loader-dir
Obtaining file:///home/tony/work/inria/repo/swh/swh-environment/swh-indexer
Obtaining file:///home/tony/work/inria/repo/swh/swh-environment/swh-vault
Obtaining file:///home/tony/work/inria/repo/swh/swh-environment/swh-core
Obtaining file:///home/tony/work/inria/repo/swh/swh-environment/swh-deposit
Obtaining file:///home/tony/work/inria/repo/swh/swh-environment/swh-graph
Obtaining file:///home/tony/work/inria/repo/swh/swh-environment/swh-lister
Obtaining file:///home/tony/work/inria/repo/swh/swh-environment/swh-loader-debian
Obtaining file:///home/tony/work/inria/repo/swh/swh-environment/swh-loader-git
Obtaining file:///home/tony/work/inria/repo/swh/swh-environment/swh-loader-mercurial
Obtaining file:///home/tony/work/inria/repo/swh/swh-environment/swh-loader-pypi
Obtaining file:///home/tony/work/inria/repo/swh/swh-environment/swh-loader-svn
Obtaining file:///home/tony/work/inria/repo/swh/swh-environment/swh-loader-tar
Obtaining file:///home/tony/work/inria/repo/swh/swh-environment/swh-mirror-forge
WARNING: swh.mirror.forge debian-upstream-0.0.5.post9 does not provide the extra 'testing'
Obtaining file:///home/tony/work/inria/repo/swh/swh-environment/swh-storage
WARNING: swh.storage 0.0.147.post3 does not provide the extra 'listener'
Obtaining file:///home/tony/work/inria/repo/swh/swh-environment/swh-web
Obtaining file:///home/tony/work/inria/repo/swh/swh-environment/swh-loader-npm
Obtaining file:///home/tony/work/inria/repo/swh/swh-environment/swh-docs
Collecting Deprecated (from swh.core==0.0.66)
Using cached https://files.pythonhosted.org/packages/88/0e/9d5a1a8cd7130c49334cce7b8167ceda63d6a329c8ea65b626116bc9e9e6/Deprecated-1.2.6-py2.py3-none-any.whl
Requirement already satisfied: PyYAML in /home/tony/.virtualenvs/swh/lib/python3.7/site-packages (from swh.core==0.0.66) (3.13)
Collecting systemd-python (from swh.core==0.0.66)
Using cached https://files.pythonhosted.org/packages/e8/a8/00ba0f605837a8f69523e6c3a4fb14675a6430c163f836540129c50b3aef/systemd-python-234.tar.gz
ERROR: Command errored out with exit status 1:
command: /home/tony/.virtualenvs/swh/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-r3gexmat/systemd-python/setup.py'"'"'; __file__='"'"'/tmp/pip-install-r3gexmat/systemd-python/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
cwd: /tmp/pip-install-r3gexmat/systemd-python/
Complete output (12 lines):
Cannot find libsystemd or libsystemd-journal:
Package libsystemd was not found in the pkg-config search path.
Perhaps you should add the directory containing `libsystemd.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libsystemd' found
Package libsystemd-journal was not found in the pkg-config search path.
Perhaps you should add the directory containing `libsystemd-journal.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libsystemd-journal' found
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Event Timeline

ardumont created this paste.Aug 2 2019, 12:03 PM

As user:

pkg-config --debug libsystemd
no output option set, defaulting to --exists
Error printing disabled by default due to use of output options --exists, --atleast/exact/max-version, --list-all or no output option at all. Value of --print-errors: 0
Error printing disabled
Adding virtual 'pkg-config' package to list of known packages
Looking for package 'libsystemd'
Looking for package 'libsystemd-uninstalled'

With more permissions (sudo), i've way more information, it seems to find it:

  line>Cflags: -I${includedir}
Path position of 'libsystemd' is 4
Adding 'libsystemd' to list of known packages
Package libsystemd has -I/usr/include in Cflags
Removing -I/usr/include from cflags for libsystemd
Package libsystemd has -L /lib/x86_64-linux-gnu in Libs
Removing -L /lib/x86_64-linux-gnu from libs for libsystemd

ok, my nix setup conflicts!

With this:

PATH=/usr/bin pkg-config --debug libsystemd

sudo and the user command gives the same stuff!

ardumont added a subscriber: vlorentz.EditedAug 27 2019, 3:07 PM

so ardumont, just use:

PATH=/usr/bin:$PATH pip install $( ./bin/pip-swh-packages --with-testing )

or as @vlorentz does, use one user per venv

or keep your PATH in check ;)

ardumont changed the title of this paste from fresh new install, fresh new failure to [fixed] fresh new install, fresh new failure.Aug 28 2019, 10:11 AM