Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 649804 Details for
Bug 733196
dev-python/helpdev fails tests
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
build.log
build.log (text/plain), 17.44 KB, created by
Agostino Sarubbo
on 2020-07-19 07:05:27 UTC
(
hide
)
Description:
build.log
Filename:
MIME Type:
Creator:
Agostino Sarubbo
Created:
2020-07-19 07:05:27 UTC
Size:
17.44 KB
patch
obsolete
> * Package: dev-python/helpdev-0.7.1 > * Repository: gentoo > * Maintainer: andrewammerlaan@riseup.net proxy-maint@gentoo.org > * USE: abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python3_7 test userland_GNU > * FEATURES: network-sandbox preserve-libs sandbox test userpriv usersandbox > > >@@@@@ PLEASE PAY ATTENTION HERE!!! @@@@@ >This information may help you to understand if this is a duplicate or if this bug exists after you pushed a fix; >This ebuild was merged at the following commit: >https://github.com/gentoo/gentoo/commit/52632cc8ba2004c94830358ef992c1a4a3572ad1 >@@@@@ END @@@@@ > >>>> Unpacking source... >>>> Unpacking helpdev-0.7.1.tar.gz to /var/tmp/portage/dev-python/helpdev-0.7.1/work >>>> Source unpacked in /var/tmp/portage/dev-python/helpdev-0.7.1/work >>>> Preparing source in /var/tmp/portage/dev-python/helpdev-0.7.1/work/helpdev-0.7.1 ... >>>> Source prepared. >>>> Configuring source in /var/tmp/portage/dev-python/helpdev-0.7.1/work/helpdev-0.7.1 ... >>>> Source configured. >>>> Compiling source in /var/tmp/portage/dev-python/helpdev-0.7.1/work/helpdev-0.7.1 ... > * python3_7: running distutils-r1_run_phase distutils-r1_python_compile >python3.7 setup.py build -j 16 >running build >running build_py >creating /var/tmp/portage/dev-python/helpdev-0.7.1/work/helpdev-0.7.1-python3_7/lib/helpdev >copying helpdev/__main__.py -> /var/tmp/portage/dev-python/helpdev-0.7.1/work/helpdev-0.7.1-python3_7/lib/helpdev >copying helpdev/__init__.py -> /var/tmp/portage/dev-python/helpdev-0.7.1/work/helpdev-0.7.1-python3_7/lib/helpdev >running egg_info >writing helpdev.egg-info/PKG-INFO >writing dependency_links to helpdev.egg-info/dependency_links.txt >writing entry points to helpdev.egg-info/entry_points.txt >writing requirements to helpdev.egg-info/requires.txt >writing top-level names to helpdev.egg-info/top_level.txt >reading manifest file 'helpdev.egg-info/SOURCES.txt' >reading manifest template 'MANIFEST.in' >writing manifest file 'helpdev.egg-info/SOURCES.txt' >/usr/lib/python3.7/distutils/dist.py:274: UserWarning: Unknown distribution option: 'license_file' > warnings.warn(msg) >warning: build_py: byte-compiling is disabled, skipping. > > * Using python3.8 in global scope > * python3_8: running distutils-r1_run_phase python_compile_all >>>> Source compiled. >>>> Test phase: dev-python/helpdev-0.7.1 > * python3_7: running distutils-r1_run_phase python_test >============================= test session starts ============================== >platform linux -- Python 3.7.8, pytest-5.4.3, py-1.8.0, pluggy-0.13.1 -- /usr/bin/python3.7 >cachedir: .pytest_cache >rootdir: /var/tmp/portage/dev-python/helpdev-0.7.1/work/helpdev-0.7.1 >collecting ... collected 5 items > >tests/test_init.py::test_run_subprocess_split PASSED [ 20%] >tests/test_init.py::test_check_float PASSED [ 40%] >tests/test_init.py::test_check_thread PASSED [ 60%] >tests/test_init.py::test_check_python_packages FAILED [ 80%] >tests/test_main.py::test_check_float PASSED [100%] > >=================================== FAILURES =================================== >__________________________ test_check_python_packages __________________________ > > def test_check_python_packages(): >> output = helpdev.check_python_packages() > >tests/test_init.py:17: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >../helpdev-0.7.1-python3_7/lib/helpdev/__init__.py:506: in check_python_packages > all_packages = _run_subprocess_split(['pip', 'list']) >../helpdev-0.7.1-python3_7/lib/helpdev/__init__.py:73: in _run_subprocess_split > output = subprocess.check_output(command, shell=False) >/usr/lib/python3.7/subprocess.py:411: in check_output > **kwargs).stdout >/usr/lib/python3.7/subprocess.py:488: in run > with Popen(*popenargs, **kwargs) as process: >/usr/lib/python3.7/subprocess.py:800: in __init__ > restore_signals, start_new_session) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <subprocess.Popen object at 0x7fd06b4ca8d0>, args = ['pip', 'list'] >executable = b'pip', preexec_fn = None, close_fds = True, pass_fds = () >cwd = None, env = None, startupinfo = None, creationflags = 0, shell = False >p2cread = -1, p2cwrite = -1, c2pread = 10, c2pwrite = 11, errread = -1 >errwrite = -1, restore_signals = True, start_new_session = False > > def _execute_child(self, args, executable, preexec_fn, close_fds, > pass_fds, cwd, env, > startupinfo, creationflags, shell, > p2cread, p2cwrite, > c2pread, c2pwrite, > errread, errwrite, > restore_signals, start_new_session): > """Execute program (POSIX version)""" > > if isinstance(args, (str, bytes)): > args = [args] > else: > args = list(args) > > if shell: > # On Android the default shell is at '/system/bin/sh'. > unix_shell = ('/system/bin/sh' if > hasattr(sys, 'getandroidapilevel') else '/bin/sh') > args = [unix_shell, "-c"] + args > if executable: > args[0] = executable > > if executable is None: > executable = args[0] > orig_executable = executable > > # For transferring possible exec failure from child to parent. > # Data format: "exception name:hex errno:description" > # Pickle is not used; it is complex and involves memory allocation. > errpipe_read, errpipe_write = os.pipe() > # errpipe_write must not be in the standard io 0, 1, or 2 fd range. > low_fds_to_close = [] > while errpipe_write < 3: > low_fds_to_close.append(errpipe_write) > errpipe_write = os.dup(errpipe_write) > for low_fd in low_fds_to_close: > os.close(low_fd) > try: > try: > # We must avoid complex work that could involve > # malloc or free in the child process to avoid > # potential deadlocks, thus we do all this here. > # and pass it to fork_exec() > > if env is not None: > env_list = [] > for k, v in env.items(): > k = os.fsencode(k) > if b'=' in k: > raise ValueError("illegal environment variable name") > env_list.append(k + b'=' + os.fsencode(v)) > else: > env_list = None # Use execv instead of execve. > executable = os.fsencode(executable) > if os.path.dirname(executable): > executable_list = (executable,) > else: > # This matches the behavior of os._execvpe(). > executable_list = tuple( > os.path.join(os.fsencode(dir), executable) > for dir in os.get_exec_path(env)) > fds_to_keep = set(pass_fds) > fds_to_keep.add(errpipe_write) > self.pid = _posixsubprocess.fork_exec( > args, executable_list, > close_fds, tuple(sorted(map(int, fds_to_keep))), > cwd, env_list, > p2cread, p2cwrite, c2pread, c2pwrite, > errread, errwrite, > errpipe_read, errpipe_write, > restore_signals, start_new_session, preexec_fn) > self._child_created = True > finally: > # be sure the FD is closed no matter what > os.close(errpipe_write) > > # self._devnull is not always defined. > devnull_fd = getattr(self, '_devnull', None) > if p2cread != -1 and p2cwrite != -1 and p2cread != devnull_fd: > os.close(p2cread) > if c2pwrite != -1 and c2pread != -1 and c2pwrite != devnull_fd: > os.close(c2pwrite) > if errwrite != -1 and errread != -1 and errwrite != devnull_fd: > os.close(errwrite) > if devnull_fd is not None: > os.close(devnull_fd) > # Prevent a double close of these fds from __init__ on error. > self._closed_child_pipe_fds = True > > # Wait for exec to fail or succeed; possibly raising an > # exception (limited in size) > errpipe_data = bytearray() > while True: > part = os.read(errpipe_read, 50000) > errpipe_data += part > if not part or len(errpipe_data) > 50000: > break > finally: > # be sure the FD is closed no matter what > os.close(errpipe_read) > > if errpipe_data: > try: > pid, sts = os.waitpid(self.pid, 0) > if pid == self.pid: > self._handle_exitstatus(sts) > else: > self.returncode = sys.maxsize > except ChildProcessError: > pass > > try: > exception_name, hex_errno, err_msg = ( > errpipe_data.split(b':', 2)) > # The encoding here should match the encoding > # written in by the subprocess implementations > # like _posixsubprocess > err_msg = err_msg.decode() > except ValueError: > exception_name = b'SubprocessError' > hex_errno = b'0' > err_msg = 'Bad exception data from child: {!r}'.format( > bytes(errpipe_data)) > child_exception_type = getattr( > builtins, exception_name.decode('ascii'), > SubprocessError) > if issubclass(child_exception_type, OSError) and hex_errno: > errno_num = int(hex_errno, 16) > child_exec_never_called = (err_msg == "noexec") > if child_exec_never_called: > err_msg = "" > # The error must be from chdir(cwd). > err_filename = cwd > else: > err_filename = orig_executable > if errno_num != 0: > err_msg = os.strerror(errno_num) > if errno_num == errno.ENOENT: > err_msg += ': ' + repr(err_filename) >> raise child_exception_type(errno_num, err_msg, err_filename) >E FileNotFoundError: [Errno 2] No such file or directory: 'pip': 'pip' > >/usr/lib/python3.7/subprocess.py:1551: FileNotFoundError >=========================== short test summary info ============================ >FAILED tests/test_init.py::test_check_python_packages - FileNotFoundError: [E... >========================= 1 failed, 4 passed in 0.17s ========================== > * ERROR: dev-python/helpdev-0.7.1::gentoo failed (test phase): > * Tests fail with python3.7 > * > * Call stack: > * ebuild.sh, line 125: Called src_test > * environment, line 3019: Called distutils-r1_src_test > * environment, line 1296: Called _distutils-r1_run_foreach_impl 'python_test' > * environment, line 492: Called python_foreach_impl 'distutils-r1_run_phase' 'python_test' > * environment, line 2616: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > * environment, line 2078: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > * environment, line 2076: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test' > * environment, line 884: Called distutils-r1_run_phase 'python_test' > * environment, line 1233: Called python_test > * environment, line 2961: Called die > * The specific snippet of code: > * pytest -vv || die "Tests fail with ${EPYTHON}" > * > * If you need support, post the output of `emerge --info '=dev-python/helpdev-0.7.1::gentoo'`, > * the complete build log and the output of `emerge -pqv '=dev-python/helpdev-0.7.1::gentoo'`. > * The complete build log is located at '/var/log/emerge-log/build/dev-python/helpdev-0.7.1:20200719-053721.log'. > * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-python/helpdev-0.7.1/temp/build.log'. > * The ebuild environment file is located at '/var/tmp/portage/dev-python/helpdev-0.7.1/temp/environment'. > * Working directory: '/var/tmp/portage/dev-python/helpdev-0.7.1/work/helpdev-0.7.1' > * S: '/var/tmp/portage/dev-python/helpdev-0.7.1/work/helpdev-0.7.1' > > > >emerge --info: >Portage 3.0.0 (python 3.7.8-final-0, default/linux/amd64/17.1, gcc-10.1.0, glibc-2.31-r6, 5.4.0-1018-aws x86_64) >================================================================= >System uname: Linux-5.4.0-1018-aws-x86_64-Intel-R-_Xeon-R-_Platinum_8175M_CPU_@_2.50GHz-with-gentoo-2.7 >KiB Mem: 64359960 total, 62203020 free >KiB Swap: 0 total, 0 free >sh bash 5.0_p18 >ld GNU ld (Gentoo 2.34 p4) 2.34.0 >app-shells/bash: 5.0_p18::gentoo >dev-lang/perl: 5.30.3-r1::gentoo >dev-lang/python: 2.7.18-r1::gentoo, 3.7.8-r2::gentoo, 3.8.4-r1::gentoo >sys-apps/baselayout: 2.7::gentoo >sys-apps/openrc: 0.42.1::gentoo >sys-apps/sandbox: 2.20::gentoo >sys-devel/autoconf: 2.69-r5::gentoo >sys-devel/automake: 1.16.2::gentoo >sys-devel/binutils: 2.34-r1::gentoo >sys-devel/gcc: 10.1.0-r2::gentoo >sys-devel/gcc-config: 2.3.1::gentoo >sys-devel/libtool: 2.4.6-r6::gentoo >sys-devel/make: 4.3::gentoo >sys-kernel/linux-headers: 5.7::gentoo (virtual/os-headers) >sys-libs/glibc: 2.31-r6::gentoo >Repositories: > >gentoo > location: /usr/portage > sync-type: rsync > sync-uri: rsync://rsync.gentoo.org/gentoo-portage > priority: -1000 > sync-rsync-verify-jobs: 1 > sync-rsync-extra-opts: > sync-rsync-verify-max-age: 24 > sync-rsync-verify-metamanifest: yes > >ACCEPT_KEYWORDS="amd64 ~amd64" >ACCEPT_LICENSE="*" >CBUILD="x86_64-pc-linux-gnu" >CFLAGS="-O2 -pipe -march=native -frecord-gcc-switches" >CHOST="x86_64-pc-linux-gnu" >CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" >CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" >CXXFLAGS="-O2 -pipe -march=native -frecord-gcc-switches" >DISTDIR="/usr/portage/distfiles" >EMERGE_DEFAULT_OPTS="--with-bdeps=y -1 -k -b" >ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" >FCFLAGS="-O2 -pipe -march=native -frecord-gcc-switches" >FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms sign split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" >FFLAGS="-O2 -pipe -march=native -frecord-gcc-switches" >GENTOO_MIRRORS="http://distfiles.gentoo.org" >LANG="C.UTF8" >LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0" >MAKEOPTS="-j16 V=1" >PKGDIR="/root/.packages" >PORTAGE_CONFIGROOT="/" >PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" >PORTAGE_TMPDIR="/var/tmp" >USE="acl amd64 berkdb bzip2 cli crypt dri fortran gdbm iconv ipv6 libtirpc multilib native-symlinks ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl tcpd unicode xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" >Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 733196
: 649804