Created attachment 522260 [details] build.log > running install_scripts > creating /var/tmp/portage/dev-python/jupyter_core-4.4.0/work/jupyter_core-4.4.0-python2_7/test/scripts > copying /var/tmp/portage/dev-python/jupyter_core-4.4.0/work/jupyter_core-4.4.0-python2_7/scripts/jupyter-migrate -> /var/tmp/portage/dev-python/jupyter_core-4.4.0/work/jupyter_core-4.4.0-python2_7/test/scripts > copying /var/tmp/portage/dev-python/jupyter_core-4.4.0/work/jupyter_core-4.4.0-python2_7/scripts/jupyter -> /var/tmp/portage/dev-python/jupyter_core-4.4.0/work/jupyter_core-4.4.0-python2_7/test/scripts > changing mode of /var/tmp/portage/dev-python/jupyter_core-4.4.0/work/jupyter_core-4.4.0-python2_7/test/scripts/jupyter-migrate to 755 > changing mode of /var/tmp/portage/dev-python/jupyter_core-4.4.0/work/jupyter_core-4.4.0-python2_7/test/scripts/jupyter to 755 > running install_egg_info > Writing /var/tmp/portage/dev-python/jupyter_core-4.4.0/work/jupyter_core-4.4.0-python2_7/test/lib/jupyter_core-4.4.0-py2.7.egg-info > ============================================================================= test session starts ============================================================================= > platform linux2 -- Python 2.7.14, pytest-3.0.3, py-1.4.30, pluggy-0.4.0 > rootdir: /var/tmp/portage/dev-python/jupyter_core-4.4.0/work/jupyter_core-4.4.0-python2_7/test/lib, inifile: > plugins: cov-2.3.1 > collected 40 items > > jupyter_core/tests/test_application.py ...... > jupyter_core/tests/test_command.py .........FF > jupyter_core/tests/test_migrate.py ........ > jupyter_core/tests/test_paths.py ............... > > ================================================================================== FAILURES =================================================================================== > ______________________________________________________________________________ test_not_on_path _______________________________________________________________________________ > > tmpdir = local('/var/tmp/portage/dev-python/jupyter_core-4.4.0/temp/pytest-of-portage/pytest-0/test_not_on_path0') > > def test_not_on_path(tmpdir): > a = tmpdir.mkdir("a") > jupyter = a.join('jupyter') > jupyter.write( > 'from jupyter_core import command; command.main()' > ) > jupyter.chmod(0o700) > witness = a.join('jupyter-witness') > witness_src = '#!%s\n%s\n' % (sys.executable, 'print("WITNESS ME")') > write_executable(witness, witness_src) > > env = {'PATH': ''} > if 'SYSTEMROOT' in os.environ: # Windows http://bugs.python.org/issue20614 > env[str('SYSTEMROOT')] = os.environ['SYSTEMROOT'] > if sys.platform == 'win32': > env[str('PATHEXT')] = '.EXE' > # This won't work on windows unless > > out = check_output([sys.executable, str(jupyter), 'witness'], env=env) > > jupyter_core/tests/test_command.py:140: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > > popenargs = (['/usr/bin/python2.7', '/var/tmp/portage/dev-python/jupyter_core-4.4.0/temp/pytest-of-portage/pytest-0/test_not_on_path0/a/jupyter', 'witness'],) > kwargs = {'env': {'PATH': ''}}, process = <subprocess.Popen object at 0xb645fbac>, output = '', unused_err = None, retcode = 1 > cmd = ['/usr/bin/python2.7', '/var/tmp/portage/dev-python/jupyter_core-4.4.0/temp/pytest-of-portage/pytest-0/test_not_on_path0/a/jupyter', 'witness'] > > def check_output(*popenargs, **kwargs): > r"""Run command with arguments and return its output as a byte string. > > If the exit code was non-zero it raises a CalledProcessError. The > CalledProcessError object will have the return code in the returncode > attribute and output in the output attribute. > > The arguments are the same as for the Popen constructor. Example: > > >>> check_output(["ls", "-l", "/dev/null"]) > 'crw-rw-rw- 1 root root 1, 3 Oct 18 2007 /dev/null\n' > > The stdout argument is not allowed as it is used internally. > To capture standard error in the result, use stderr=STDOUT. > > >>> check_output(["/bin/sh", "-c", > ... "ls -l non_existent_file ; exit 0"], > ... stderr=STDOUT) > 'ls: non_existent_file: No such file or directory\n' > """ > if 'stdout' in kwargs: > raise ValueError('stdout argument not allowed, it will be overridden.') > process = Popen(stdout=PIPE, *popenargs, **kwargs) > output, unused_err = process.communicate() > retcode = process.poll() > if retcode: > cmd = kwargs.get("args") > if cmd is None: > cmd = popenargs[0] > > raise CalledProcessError(retcode, cmd, output=output) > E CalledProcessError: Command '['/usr/bin/python2.7', '/var/tmp/portage/dev-python/jupyter_core-4.4.0/temp/pytest-of-portage/pytest-0/test_not_on_path0/a/jupyter', 'witness']' returned non-zero exit status 1 > > /usr/lib/python2.7/subprocess.py:219: CalledProcessError > ---------------------------------------------------------------------------- Captured stderr call ----------------------------------------------------------------------------- > Traceback (most recent call last): > File "/var/tmp/portage/dev-python/jupyter_core-4.4.0/temp/pytest-of-portage/pytest-0/test_not_on_path0/a/jupyter", line 1, in <module> > from jupyter_core import command; command.main() > ImportError: No module named jupyter_core > _____________________________________________________________________________ test_path_priority ______________________________________________________________________________ > > tmpdir = local('/var/tmp/portage/dev-python/jupyter_core-4.4.0/temp/pytest-of-portage/pytest-0/test_path_priority0') > > def test_path_priority(tmpdir): > a = tmpdir.mkdir("a") > jupyter = a.join('jupyter') > jupyter.write( > 'from jupyter_core import command; command.main()' > ) > jupyter.chmod(0o700) > witness_a = a.join('jupyter-witness') > witness_a_src = '#!%s\n%s\n' % (sys.executable, 'print("WITNESS A")') > write_executable(witness_a, witness_a_src) > > b = tmpdir.mkdir("b") > witness_b = b.join('jupyter-witness') > witness_b_src = '#!%s\n%s\n' % (sys.executable, 'print("WITNESS B")') > write_executable(witness_b, witness_b_src) > > env = {'PATH': str(b)} > if 'SYSTEMROOT' in os.environ: # Windows http://bugs.python.org/issue20614 > env[str('SYSTEMROOT')] = os.environ['SYSTEMROOT'] > if sys.platform == 'win32': > env[str('PATHEXT')] = '.EXE' > > out = check_output([sys.executable, str(jupyter), 'witness'], env=env) > > jupyter_core/tests/test_command.py:165: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > > popenargs = (['/usr/bin/python2.7', '/var/tmp/portage/dev-python/jupyter_core-4.4.0/temp/pytest-of-portage/pytest-0/test_path_priority0/a/jupyter', 'witness'],) > kwargs = {'env': {'PATH': '/var/tmp/portage/dev-python/jupyter_core-4.4.0/temp/pytest-of-portage/pytest-0/test_path_priority0/b'}} > process = <subprocess.Popen object at 0xb64c050c>, output = '', unused_err = None, retcode = 1 > cmd = ['/usr/bin/python2.7', '/var/tmp/portage/dev-python/jupyter_core-4.4.0/temp/pytest-of-portage/pytest-0/test_path_priority0/a/jupyter', 'witness'] > > def check_output(*popenargs, **kwargs): > r"""Run command with arguments and return its output as a byte string. > > If the exit code was non-zero it raises a CalledProcessError. The > CalledProcessError object will have the return code in the returncode > attribute and output in the output attribute. > > The arguments are the same as for the Popen constructor. Example: > > >>> check_output(["ls", "-l", "/dev/null"]) > 'crw-rw-rw- 1 root root 1, 3 Oct 18 2007 /dev/null\n' > > The stdout argument is not allowed as it is used internally. > To capture standard error in the result, use stderr=STDOUT. > > >>> check_output(["/bin/sh", "-c", > ... "ls -l non_existent_file ; exit 0"], > ... stderr=STDOUT) > 'ls: non_existent_file: No such file or directory\n' > """ > if 'stdout' in kwargs: > raise ValueError('stdout argument not allowed, it will be overridden.') > process = Popen(stdout=PIPE, *popenargs, **kwargs) > output, unused_err = process.communicate() > retcode = process.poll() > if retcode: > cmd = kwargs.get("args") > if cmd is None: > cmd = popenargs[0] > > raise CalledProcessError(retcode, cmd, output=output) > E CalledProcessError: Command '['/usr/bin/python2.7', '/var/tmp/portage/dev-python/jupyter_core-4.4.0/temp/pytest-of-portage/pytest-0/test_path_priority0/a/jupyter', 'witness']' returned non-zero exit status 1 > > /usr/lib/python2.7/subprocess.py:219: CalledProcessError > ---------------------------------------------------------------------------- Captured stderr call ----------------------------------------------------------------------------- > Traceback (most recent call last): > File "/var/tmp/portage/dev-python/jupyter_core-4.4.0/temp/pytest-of-portage/pytest-0/test_path_priority0/a/jupyter", line 1, in <module> > from jupyter_core import command; command.main() > ImportError: No module named jupyter_core > ===================================================================== 2 failed, 38 passed in 0.94 seconds ===================================================================== > * ERROR: dev-python/jupyter_core-4.4.0::gentoo failed (test phase): > * (no error message) Portage 2.3.19 (python 3.5.4-final-0, default/linux/x86/17.0, gcc-6.4.0, glibc-2.25-r10, 4.9.76-gentoo-r1 i686) ================================================================= System uname: Linux-4.9.76-gentoo-r1-i686-Intel-R-_Core-TM-_i7-3770K_CPU_@_3.50GHz-with-gentoo-2.4.1 KiB Mem: 3108324 total, 1505088 free KiB Swap: 488276 total, 488276 free Timestamp of repository gentoo: Sat, 03 Mar 2018 23:14:41 +0000 Head commit of repository gentoo: aca5ee18c254f7fc5d17e2dbf7d70d27a54dcacb sh bash 4.4_p12 ld GNU ld (Gentoo 2.29.1 p3) 2.29.1 app-shells/bash: 4.4_p12::gentoo dev-lang/perl: 5.24.3::gentoo dev-lang/python: 2.7.14-r1::gentoo, 3.5.4-r1::gentoo dev-util/cmake: 3.9.6::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.4.1-r2::gentoo sys-apps/openrc: 0.34.11::gentoo sys-apps/sandbox: 2.12::gentoo sys-devel/autoconf: 2.69-r4::gentoo sys-devel/automake: 1.9.6-r5::gentoo, 1.10.3-r3::gentoo, 1.12.6-r2::gentoo, 1.15.1-r1::gentoo sys-devel/binutils: 2.29.1-r1::gentoo sys-devel/gcc: 6.4.0-r1::gentoo sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r3::gentoo sys-devel/make: 4.2.1::gentoo sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers) sys-libs/glibc: 2.25-r10::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" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -pipe -march=pentium4m -mtune=pentium4m" CHOST="i686-pc-linux-gnu" CHOST_x86="i686-pc-linux-gnu" COLLISION_IGNORE="/lib/modules/* *.py[co] *$py.class */dropin.cache" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CPU_FLAGS_X86="mmx mmxext sse sse2" CXXFLAGS="-O2 -pipe -march=pentium4m -mtune=pentium4m" DEFAULT_ABI="x86" EDITOR="/usr/bin/mcedit" ELIBC="glibc" EPREFIX="" EROOT="/" 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/6.4.0/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.29.1/info:/usr/share/info" INPUT_DEVICES="libinput keyboard mouse" IUSE_IMPLICIT="abi_x86_32 prefix prefix-chain prefix-guest" 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" MANPAGER="manpager" MULTILIB_ABIS="x86" NOCOLOR="true" OFFICE_IMPLEMENTATION="libreoffice" OLDPWD="/root" OPENGL_PROFILE="xorg-x11" PAGER="/usr/bin/less" PATH="/usr/i686-pc-linux-gnu/gcc-bin/6.4.0:/usr/lib/llvm/5/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PWD="/tmp/stable" PYTHONDONTWRITEBYTECODE="1" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" QT_GRAPHICSSYSTEM="raster" ROOT="/" ROOTPATH="/usr/i686-pc-linux-gnu/gcc-bin/6.4.0:/usr/lib/llvm/5/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin" RUBY_TARGETS="ruby22 ruby23" SHELL="/bin/bash" SHLVL="2" SSH_TTY="/dev/pts/0" TERM="screen" TMUX="/tmp/tmux-0/default,4816,0" TMUX_PANE="%0" TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE="1" USER="root" USERLAND="GNU" VIDEO_CARDS="vmware"
Is the same test failure also in 4.3.0?
Created attachment 528184 [details] build.log v4.3.0 Looks like v4.3.0 is failing with the same error.
Probably a missing dep, as I cannot reproduce this on my machine with jupyter_core already installed.
Tests require installed jupyter_core.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22257699f838ccc66ae62750f347cb4501250998 commit 22257699f838ccc66ae62750f347cb4501250998 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2018-05-10 17:04:11 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2018-05-10 17:04:43 +0000 dev-python/jupyter_core: Restrict tests, need existing installation Tests succeed when package is installed in advance. Bug: https://bugs.gentoo.org/649538 Package-Manager: Portage-2.3.36, Repoman-2.3.9 dev-python/jupyter_core/jupyter_core-4.4.0.ebuild | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
No longer blocking stabilisation.
Old version removed. Please reopen if you can reproduce with current.