Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 676994 - dev-python/setuptools-40.6.3: pkg_resources.DistributionNotFound: The 'pluggy<0.7,>=0.5' distribution was not found and is required by pytest
Summary: dev-python/setuptools-40.6.3: pkg_resources.DistributionNotFound: The 'pluggy...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 676562
  Show dependency tree
 
Reported: 2019-01-31 18:01 UTC by Thomas Deutschmann (RETIRED)
Modified: 2020-03-29 08:32 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,33.91 KB, text/plain)
2019-01-31 18:01 UTC, Thomas Deutschmann (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Deutschmann (RETIRED) gentoo-dev 2019-01-31 18:01:00 UTC
Created attachment 563356 [details]
build.log

copying setuptools/command/launcher manifest.xml -> /var/tmp/portage/dev-python/setuptools-40.6.3/work/setuptools-40.6.3-python3_6/build/lib/setuptools/command
warning: build_py: byte-compiling is disabled, skipping.

>>> Source compiled.
>>> Test phase: dev-python/setuptools-40.6.3
 * python2_7: running distutils-r1_run_phase python_test
Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/py.test", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/var/tmp/portage/dev-python/setuptools-40.6.3/work/setuptools-40.6.3-python2_7/build/lib/pkg_resources/__init__.py", line 3126, in <module>
    @_call_aside
  File "/var/tmp/portage/dev-python/setuptools-40.6.3/work/setuptools-40.6.3-python2_7/build/lib/pkg_resources/__init__.py", line 3110, in _call_aside
    f(*args, **kwargs)
  File "/var/tmp/portage/dev-python/setuptools-40.6.3/work/setuptools-40.6.3-python2_7/build/lib/pkg_resources/__init__.py", line 3139, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/var/tmp/portage/dev-python/setuptools-40.6.3/work/setuptools-40.6.3-python2_7/build/lib/pkg_resources/__init__.py", line 583, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/var/tmp/portage/dev-python/setuptools-40.6.3/work/setuptools-40.6.3-python2_7/build/lib/pkg_resources/__init__.py", line 596, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/var/tmp/portage/dev-python/setuptools-40.6.3/work/setuptools-40.6.3-python2_7/build/lib/pkg_resources/__init__.py", line 784, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pluggy<0.7,>=0.5' distribution was not found and is required by pytest
 * ERROR: dev-python/setuptools-40.6.3::gentoo failed (test phase):
 *   Tests failed under python2.7
 *



Portage 2.3.51 (python 3.6.5-final-0, default/linux/x86/17.0, gcc-7.3.0, glibc-2.27-r6, 4.14.83-gentoo i686)
=================================================================
System uname: Linux-4.14.83-gentoo-i686-Intel-R-_Core-TM-_i7-3770K_CPU_@_3.50GHz-with-gentoo-2.6
KiB Mem:     3107048 total,   2533032 free
KiB Swap:     488276 total,    471380 free
Timestamp of repository gentoo: Thu, 31 Jan 2019 13:04:07 +0000
Head commit of repository gentoo: 33ff61ba05fd6a6d779afe3e35cc0f65dd69447a

sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.30 p5) 2.30.0
app-shells/bash:          4.4_p23-r1::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.38.3-r1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.30-r4::gentoo
sys-devel/gcc:            7.3.0-r3::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.14-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.27-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000

ABI="x86"
ABI_X86="32"
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
ACCEPT_PROPERTIES="*"
ACCEPT_RESTRICT="*"
ARCH="x86"
BROOT=""
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=pentium4m -mtune=pentium4m -Wno-error=jump-misses-init -Wno-error=sign-compare"
CHOST="i686-pc-linux-gnu"
CHOST_x86="i686-pc-linux-gnu"
COLLISION_IGNORE="/lib/modules/*"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
CPU_FLAGS_X86="mmx mmxext sse sse2"
CXXFLAGS="-O2 -pipe -march=pentium4m -mtune=pentium4m -Wno-error=jump-misses-init -Wno-error=sign-compare"
DEFAULT_ABI="x86"
EDITOR="/usr/bin/mcedit"
ELIBC="glibc"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
EPREFIX=""
EROOT="/"
ESYSROOT="/"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs cgroup config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=i686 -pipe"
GCC_SPECS=""
GRUB_PLATFORMS="efi-32 pc"
GSETTINGS_BACKEND="dconf"
HOME="/root"
INFOPATH="/usr/share/gcc-data/i686-pc-linux-gnu/7.3.0/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.30/info:/usr/share/info"
INPUT_DEVICES="libinput keyboard mouse"
IUSE_IMPLICIT="abi_x86_32 prefix prefix-chain prefix-guest"
JAVAC="/etc/java-config-2/current-system-vm/bin/javac"
JAVA_HOME="/etc/java-config-2/current-system-vm"
JDK_HOME="/etc/java-config-2/current-system-vm"
KERNEL="linux"
L10N="en en-US de de-DE"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LC_MESSAGES="C"
LC_PAPER="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LIBDIR_x86="lib"
LINGUAS="en de"
LOGNAME="root"
MAIL="/var/mail/root"
MAKEOPTS="--jobs 5 --load-average 7.95"
MULTILIB_ABIS="x86"
NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml"
NOCOLOR="true"
OFFICE_IMPLEMENTATION="libreoffice"
OLDPWD="/root"
OPENCL_PROFILE="ocl-icd"
OPENGL_PROFILE="xorg-x11"
PAGER="/usr/bin/less"
PATH="/usr/lib/llvm/6/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin"
PHP_TARGETS="php5-6 php7-1 php7-2 php7-3"
POSTGRES_TARGETS="postgres9_5 postgres10"
PWD="/tmp/stable"
PYTHONDONTWRITEBYTECODE="1"
PYTHON_SINGLE_TARGET="python3_6"
PYTHON_TARGETS="python2_7 python3_6"
QT_GRAPHICSSYSTEM="raster"
ROOT="/"
ROOTPATH="/usr/lib/llvm/6/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin"
RUBY_TARGETS="ruby24"
SHELL="/bin/bash"
SHLVL="2"
SSH_TTY="/dev/pts/0"
SYSROOT="/"
TERM="tmux-256color"
TMUX="/tmp//tmux-0/default,4173,0"
TMUX_PANE="%1"
TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE="1"
USER="root"
USERLAND="GNU"
VIDEO_CARDS="vmware"
XDG_CONFIG_DIRS="/etc/xdg"
XDG_DATA_DIRS="/usr/local/share:/usr/share"
Comment 1 Virgil Dupras (RETIRED) gentoo-dev 2019-02-01 01:08:09 UTC
This looks strangely like bug 676854, which is fixed already. Is it possible that your tree isn't updated?
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2019-02-01 13:01:49 UTC
No?

> Timestamp of repository gentoo: Thu, 31 Jan 2019 13:04:07 +0000

...and you pushed the bugfix ~29th Jan so it doesn‘t look fixed or is a new one.
Comment 3 Matt Turner gentoo-dev 2019-02-11 07:43:11 UTC
(In reply to Virgil Dupras from comment #1)
> This looks strangely like bug 676854, which is fixed already. Is it possible
> that your tree isn't updated?

Not to state the obvious... but that bug's about pytest and this one is about setuptools. I think the same fix just needs to be applied to setuptools?
Comment 4 Virgil Dupras (RETIRED) gentoo-dev 2019-02-11 12:51:25 UTC
Thomas, didn't we agree on IRC that because this bug was only reproducable by going back in the tree before the fix, update pluggy outside the range, then come back in a post-fix tree, that it wasn't worth adding noise to the ebuilds for this?
Comment 5 Thomas Deutschmann (RETIRED) gentoo-dev 2019-02-11 15:35:28 UTC
No: By default no package should ever fail to emerge when emerge was started.
It is OK to cause blocker, i.e. circular dependency, so that you cannot run tests when X is missing but X also requires this one. In this case you would have to manually install both packages and then you could run tests... but please don't let emerge start to run if you know this will fail.
Comment 6 Virgil Dupras (RETIRED) gentoo-dev 2019-02-15 22:50:25 UTC
We have this bug because of the way portage handle's circular dependency: it should update pluggy before running setuptools test, but unfortunately, in schedules pluggy's update after setuptools'.

Adding a pluggy constraint would indeed fix this very specific situation, but as I said in our private IRC conversation, I think it's wrong to do so: pluggy isn't a setuptools' dependency, it's a pytest dependency. The "<0.7" constraint isn't related to setuptools, it's related to pytest-3.4.2.

Adding to this that this problem is a test-specific problem (so it doesn't prevent anyone from installing setuptools), I don't think it's a good idea to add this noise to the ebuild.

I think that this bug is not a real problem and shouldn't block stabilization. The only way someone could be affected by this bug after the stabilization of setuptools' is if they haven't done a world update since Jan 29, have pluggy >= 0.7 installed, and insinst on running setuptools' tests.

If someone wants to add the pluggy dep constraint to setuptools' ebuild to feel good about this bug's resolution, I won't oppose, but it's not going to be me.
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-03-29 08:32:40 UTC
Old version removed.  Please reopen if it still happens.