Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 661389 Details for
Bug 743589
dev-python/oct2py-5.2.0-r1 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), 55.10 KB, created by
Agostino Sarubbo
on 2020-09-19 15:30:08 UTC
(
hide
)
Description:
build.log
Filename:
MIME Type:
Creator:
Agostino Sarubbo
Created:
2020-09-19 15:30:08 UTC
Size:
55.10 KB
patch
obsolete
> * Package: dev-python/oct2py-5.2.0-r1 > * Repository: gentoo > * Maintainer: sci-mathematics@gentoo.org > * USE: abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python3_7 python_targets_python3_8 python_targets_python3_9 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-mirror/gentoo/commit/ea10c68069160ccb187d1677d74274344cb69c60 (Sat Sep 19 07:35:41 UTC 2020) >@@@@@ END @@@@@ > > > >emerge --info: >Portage 3.0.7 (python 3.8.5-final-0, default/linux/amd64/17.1, gcc-10.2.0, glibc-2.32-r1, 5.4.0-1021-aws x86_64) >================================================================= >System uname: Linux-5.4.0-1021-aws-x86_64-Intel-R-_Xeon-R-_Platinum_8175M_CPU_@_2.50GHz-with-glibc2.2.5 >KiB Mem: 64359960 total, 21609092 free >KiB Swap: 0 total, 0 free >Timestamp of repository gentoo: Sat, 19 Sep 2020 07:35:40 +0000 >sh bash 5.0_p18 >ld GNU ld (Gentoo 2.34 p6) 2.34.0 >app-shells/bash: 5.0_p18::gentoo >dev-lang/perl: 5.30.3-r1::gentoo >dev-lang/python: 2.7.18-r3::gentoo, 3.6.12::gentoo, 3.7.9::gentoo, 3.8.5::gentoo, 3.9.0_rc2::gentoo >dev-util/cmake: 3.18.2::gentoo >sys-apps/baselayout: 2.7::gentoo >sys-apps/openrc: 0.42.1::gentoo >sys-apps/sandbox: 2.20::gentoo >sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo >sys-devel/automake: 1.16.2::gentoo >sys-devel/binutils: 2.34-r2::gentoo >sys-devel/gcc: 10.2.0-r1::gentoo >sys-devel/gcc-config: 2.3.2::gentoo >sys-devel/libtool: 2.4.6-r6::gentoo >sys-devel/make: 4.3::gentoo >sys-kernel/linux-headers: 5.8::gentoo (virtual/os-headers) >sys-libs/glibc: 2.32-r1::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-verify-max-age: 24 > sync-rsync-extra-opts: > sync-rsync-verify-metamanifest: yes > >ACCEPT_KEYWORDS="amd64 ~amd64" >ACCEPT_LICENSE="* MIT" >CBUILD="x86_64-pc-linux-gnu" >CC="x86_64-pc-linux-gnu-clang" >CFLAGS="-O2 -pipe -march=native -frecord-gcc-switches -fno-diagnostics-color" >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/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" >CXX="x86_64-pc-linux-gnu-clang++" >CXXFLAGS="-O2 -pipe -march=native -frecord-gcc-switches -fno-diagnostics-color" >DISTDIR="/var/tmp/portage/dev-python/oct2py-5.2.0-r1/distdir" >EMERGE_DEFAULT_OPTS="--with-bdeps=y -1 -b -k" >ENV_UNSET="CARGO_HOME 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 -fno-diagnostics-color" >FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg 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 test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" >FFLAGS="-O2 -pipe -march=native -frecord-gcc-switches -fno-diagnostics-color" >GENTOO_MIRRORS="http://distfiles.gentoo.org" >LANG="C.UTF-8" >LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -fuse-ld=lld" >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 elogind fortran gdbm iconv ipv6 jumbo-build libglvnd libtirpc multilib native-symlinks ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl tcpd test unicode xattr zlib" ABI_X86="64" ELIBC="glibc" KERNEL="linux" PYTHON_TARGETS="python3_7 python3_8 python3_9" USERLAND="GNU" >Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS > > > >>>> Unpacking source... >>>> Unpacking oct2py-5.2.0.tar.gz to /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work >>>> Source unpacked in /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work >>>> Preparing source in /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0 ... > * Applying oct2py-5.2.0-mask-pkg-load-test.patch ... > [ ok ] >>>> Source prepared. >>>> Configuring source in /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0 ... >>>> Source configured. >>>> Compiling source in /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0 ... > * 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/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py >copying oct2py/thread_check.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py >copying oct2py/__init__.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py >copying oct2py/speed_check.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py >copying oct2py/_version.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py >copying oct2py/io.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py >copying oct2py/utils.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py >copying oct2py/compat.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py >copying oct2py/demo.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py >copying oct2py/core.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py >copying oct2py/dynamic.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py >creating /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py/tests >copying oct2py/tests/__init__.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py/tests >copying oct2py/tests/test_roundtrip.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py/tests >copying oct2py/tests/test_misc.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py/tests >copying oct2py/tests/test_conversions.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py/tests >copying oct2py/tests/test_usage.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py/tests >copying oct2py/tests/test_numpy.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py/tests >creating /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py/ipython >copying oct2py/ipython/__init__.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py/ipython >copying oct2py/ipython/octavemagic.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py/ipython >creating /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py/ipython/tests >copying oct2py/ipython/tests/test_octavemagic.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py/ipython/tests >copying oct2py/ipython/tests/__init__.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py/ipython/tests >running egg_info >writing oct2py.egg-info/PKG-INFO >writing dependency_links to oct2py.egg-info/dependency_links.txt >writing requirements to oct2py.egg-info/requires.txt >writing top-level names to oct2py.egg-info/top_level.txt >reading manifest file 'oct2py.egg-info/SOURCES.txt' >reading manifest template 'MANIFEST.in' >warning: no files found matching '*.py' under directory 'numpydoc' >no previously-included directories found matching '.git' >no previously-included directories found matching 'docs/_build' >no previously-included directories found matching 'dist' >no previously-included directories found matching 'build' >writing manifest file 'oct2py.egg-info/SOURCES.txt' >copying oct2py/_pyeval.m -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py >copying oct2py/tests/pyeval_like_error0.m -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py/tests >copying oct2py/tests/pyeval_like_error1.m -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py/tests >copying oct2py/tests/pyeval_like_error2.m -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py/tests >copying oct2py/tests/pyeval_like_error3.m -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py/tests >copying oct2py/tests/roundtrip.m -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py/tests >copying oct2py/tests/script_error.m -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py/tests >copying oct2py/tests/test_datatypes.m -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py/tests >copying oct2py/tests/test_nodocstring.m -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py/tests >creating /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py/tests/@polynomial >copying oct2py/tests/@polynomial/display.m -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py/tests/@polynomial >copying oct2py/tests/@polynomial/get.m -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py/tests/@polynomial >copying oct2py/tests/@polynomial/polynomial.m -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py/tests/@polynomial >copying oct2py/tests/@polynomial/set.m -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py/tests/@polynomial >warning: build_py: byte-compiling is disabled, skipping. > > * python3_8: running distutils-r1_run_phase distutils-r1_python_compile >python3.8 setup.py build -j 16 >running build >running build_py >creating /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_8/lib/oct2py >copying oct2py/thread_check.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_8/lib/oct2py >copying oct2py/__init__.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_8/lib/oct2py >copying oct2py/speed_check.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_8/lib/oct2py >copying oct2py/_version.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_8/lib/oct2py >copying oct2py/io.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_8/lib/oct2py >copying oct2py/utils.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_8/lib/oct2py >copying oct2py/compat.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_8/lib/oct2py >copying oct2py/demo.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_8/lib/oct2py >copying oct2py/core.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_8/lib/oct2py >copying oct2py/dynamic.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_8/lib/oct2py >creating /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_8/lib/oct2py/tests >copying oct2py/tests/__init__.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_8/lib/oct2py/tests >copying oct2py/tests/test_roundtrip.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_8/lib/oct2py/tests >copying oct2py/tests/test_misc.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_8/lib/oct2py/tests >copying oct2py/tests/test_conversions.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_8/lib/oct2py/tests >copying oct2py/tests/test_usage.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_8/lib/oct2py/tests >copying oct2py/tests/test_numpy.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_8/lib/oct2py/tests >creating /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_8/lib/oct2py/ipython >copying oct2py/ipython/__init__.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_8/lib/oct2py/ipython >copying oct2py/ipython/octavemagic.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_8/lib/oct2py/ipython >creating /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_8/lib/oct2py/ipython/tests >copying oct2py/ipython/tests/test_octavemagic.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_8/lib/oct2py/ipython/tests >copying oct2py/ipython/tests/__init__.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_8/lib/oct2py/ipython/tests >running egg_info >writing oct2py.egg-info/PKG-INFO >writing dependency_links to oct2py.egg-info/dependency_links.txt >writing requirements to oct2py.egg-info/requires.txt >writing top-level names to oct2py.egg-info/top_level.txt >reading manifest file 'oct2py.egg-info/SOURCES.txt' >reading manifest template 'MANIFEST.in' >warning: no files found matching '*.py' under directory 'numpydoc' >no previously-included directories found matching '.git' >no previously-included directories found matching 'docs/_build' >no previously-included directories found matching 'dist' >no previously-included directories found matching 'build' >writing manifest file 'oct2py.egg-info/SOURCES.txt' >copying oct2py/_pyeval.m -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_8/lib/oct2py >copying oct2py/tests/pyeval_like_error0.m -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_8/lib/oct2py/tests >copying oct2py/tests/pyeval_like_error1.m -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_8/lib/oct2py/tests >copying oct2py/tests/pyeval_like_error2.m -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_8/lib/oct2py/tests >copying oct2py/tests/pyeval_like_error3.m -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_8/lib/oct2py/tests >copying oct2py/tests/roundtrip.m -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_8/lib/oct2py/tests >copying oct2py/tests/script_error.m -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_8/lib/oct2py/tests >copying oct2py/tests/test_datatypes.m -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_8/lib/oct2py/tests >copying oct2py/tests/test_nodocstring.m -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_8/lib/oct2py/tests >creating /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_8/lib/oct2py/tests/@polynomial >copying oct2py/tests/@polynomial/display.m -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_8/lib/oct2py/tests/@polynomial >copying oct2py/tests/@polynomial/get.m -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_8/lib/oct2py/tests/@polynomial >copying oct2py/tests/@polynomial/polynomial.m -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_8/lib/oct2py/tests/@polynomial >copying oct2py/tests/@polynomial/set.m -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_8/lib/oct2py/tests/@polynomial >warning: build_py: byte-compiling is disabled, skipping. > > * python3_9: running distutils-r1_run_phase distutils-r1_python_compile >python3.9 setup.py build -j 16 >running build >running build_py >creating /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_9/lib/oct2py >copying oct2py/thread_check.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_9/lib/oct2py >copying oct2py/__init__.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_9/lib/oct2py >copying oct2py/speed_check.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_9/lib/oct2py >copying oct2py/_version.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_9/lib/oct2py >copying oct2py/io.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_9/lib/oct2py >copying oct2py/utils.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_9/lib/oct2py >copying oct2py/compat.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_9/lib/oct2py >copying oct2py/demo.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_9/lib/oct2py >copying oct2py/core.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_9/lib/oct2py >copying oct2py/dynamic.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_9/lib/oct2py >creating /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_9/lib/oct2py/tests >copying oct2py/tests/__init__.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_9/lib/oct2py/tests >copying oct2py/tests/test_roundtrip.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_9/lib/oct2py/tests >copying oct2py/tests/test_misc.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_9/lib/oct2py/tests >copying oct2py/tests/test_conversions.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_9/lib/oct2py/tests >copying oct2py/tests/test_usage.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_9/lib/oct2py/tests >copying oct2py/tests/test_numpy.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_9/lib/oct2py/tests >creating /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_9/lib/oct2py/ipython >copying oct2py/ipython/__init__.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_9/lib/oct2py/ipython >copying oct2py/ipython/octavemagic.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_9/lib/oct2py/ipython >creating /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_9/lib/oct2py/ipython/tests >copying oct2py/ipython/tests/test_octavemagic.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_9/lib/oct2py/ipython/tests >copying oct2py/ipython/tests/__init__.py -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_9/lib/oct2py/ipython/tests >running egg_info >writing oct2py.egg-info/PKG-INFO >writing dependency_links to oct2py.egg-info/dependency_links.txt >writing requirements to oct2py.egg-info/requires.txt >writing top-level names to oct2py.egg-info/top_level.txt >reading manifest file 'oct2py.egg-info/SOURCES.txt' >reading manifest template 'MANIFEST.in' >warning: no files found matching '*.py' under directory 'numpydoc' >no previously-included directories found matching '.git' >no previously-included directories found matching 'docs/_build' >no previously-included directories found matching 'dist' >no previously-included directories found matching 'build' >writing manifest file 'oct2py.egg-info/SOURCES.txt' >copying oct2py/_pyeval.m -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_9/lib/oct2py >copying oct2py/tests/pyeval_like_error0.m -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_9/lib/oct2py/tests >copying oct2py/tests/pyeval_like_error1.m -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_9/lib/oct2py/tests >copying oct2py/tests/pyeval_like_error2.m -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_9/lib/oct2py/tests >copying oct2py/tests/pyeval_like_error3.m -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_9/lib/oct2py/tests >copying oct2py/tests/roundtrip.m -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_9/lib/oct2py/tests >copying oct2py/tests/script_error.m -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_9/lib/oct2py/tests >copying oct2py/tests/test_datatypes.m -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_9/lib/oct2py/tests >copying oct2py/tests/test_nodocstring.m -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_9/lib/oct2py/tests >creating /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_9/lib/oct2py/tests/@polynomial >copying oct2py/tests/@polynomial/display.m -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_9/lib/oct2py/tests/@polynomial >copying oct2py/tests/@polynomial/get.m -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_9/lib/oct2py/tests/@polynomial >copying oct2py/tests/@polynomial/polynomial.m -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_9/lib/oct2py/tests/@polynomial >copying oct2py/tests/@polynomial/set.m -> /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_9/lib/oct2py/tests/@polynomial >warning: build_py: byte-compiling is disabled, skipping. > > * Using python3.9 in global scope > * python3_9: running distutils-r1_run_phase python_compile_all >>>> Source compiled. >>>> Test phase: dev-python/oct2py-5.2.0-r1 > * python3_7: running distutils-r1_run_phase python_test >============================= test session starts ============================== >platform linux -- Python 3.7.9, pytest-6.0.2, py-1.9.0, pluggy-0.13.1 -- /usr/bin/python3.7 >cachedir: .pytest_cache >rootdir: /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib >collecting ... collected 101 items > >oct2py/ipython/tests/test_octavemagic.py::OctaveMagicTest::test_octave_cell_magic PASSED [ 0%] >oct2py/ipython/tests/test_octavemagic.py::OctaveMagicTest::test_octave_error PASSED [ 1%] >oct2py/ipython/tests/test_octavemagic.py::OctaveMagicTest::test_octave_inline PASSED [ 2%] >oct2py/ipython/tests/test_octavemagic.py::OctaveMagicTest::test_octave_plot FAILED [ 3%] >oct2py/ipython/tests/test_octavemagic.py::OctaveMagicTest::test_octave_roundtrip FAILED [ 4%] >oct2py/ipython/tests/test_octavemagic.py::OctaveMagicTest::test_octave_syntax_error PASSED [ 5%] >oct2py/tests/test_conversions.py::TestConversions::test_int PASSED [ 6%] >oct2py/tests/test_conversions.py::TestConversions::test_floats PASSED [ 7%] >oct2py/tests/test_conversions.py::TestConversions::test_misc_num PASSED [ 8%] >oct2py/tests/test_conversions.py::TestConversions::test_logical PASSED [ 9%] >oct2py/tests/test_conversions.py::TestConversions::test_string PASSED [ 10%] >oct2py/tests/test_conversions.py::TestConversions::test_struct_array PASSED [ 11%] >oct2py/tests/test_conversions.py::TestConversions::test_cells PASSED [ 12%] >oct2py/tests/test_conversions.py::TestConversions::test_python_conversions PASSED [ 13%] >oct2py/tests/test_misc.py::TestMisc::test_unicode_docstring PASSED [ 14%] >oct2py/tests/test_misc.py::TestMisc::test_context_manager PASSED [ 15%] >oct2py/tests/test_misc.py::TestMisc::test_singleton_sparses PASSED [ 16%] >oct2py/tests/test_misc.py::TestMisc::test_logging PASSED [ 17%] >oct2py/tests/test_misc.py::TestMisc::test_demo PASSED [ 18%] >oct2py/tests/test_misc.py::TestMisc::test_threads PASSED [ 19%] >oct2py/tests/test_misc.py::TestMisc::test_speed_check PASSED [ 20%] >oct2py/tests/test_misc.py::TestMisc::test_plot FAILED [ 21%] >oct2py/tests/test_misc.py::TestMisc::test_narg_out PASSED [ 22%] >oct2py/tests/test_misc.py::TestMisc::test_help PASSED [ 23%] >oct2py/tests/test_misc.py::TestMisc::test_trailing_underscore PASSED [ 24%] >oct2py/tests/test_misc.py::TestMisc::test_pandas_series PASSED [ 25%] >oct2py/tests/test_misc.py::TestMisc::test_panda_dataframe PASSED [ 26%] >oct2py/tests/test_misc.py::TestMisc::test_using_exited_session PASSED [ 27%] >oct2py/tests/test_misc.py::TestMisc::test_func_without_docstring PASSED [ 28%] >oct2py/tests/test_misc.py::TestMisc::test_func_noexist PASSED [ 29%] >oct2py/tests/test_misc.py::TestMisc::test_timeout PASSED [ 30%] >oct2py/tests/test_misc.py::TestMisc::test_call_path PASSED [ 31%] >oct2py/tests/test_misc.py::TestMisc::test_long_variable_name PASSED [ 32%] >oct2py/tests/test_misc.py::TestMisc::test_syntax_error_embedded PASSED [ 33%] >oct2py/tests/test_misc.py::TestMisc::test_oned_as PASSED [ 34%] >oct2py/tests/test_misc.py::TestMisc::test_temp_dir PASSED [ 35%] >oct2py/tests/test_misc.py::TestMisc::test_clear PASSED [ 36%] >oct2py/tests/test_misc.py::TestMisc::test_multiline_statement PASSED [ 37%] >oct2py/tests/test_misc.py::TestMisc::test_empty_values PASSED [ 38%] >oct2py/tests/test_misc.py::TestMisc::test_deprecated_log PASSED [ 39%] >oct2py/tests/test_misc.py::TestMisc::test_deprecated_return_both FAILED [ 40%] >oct2py/tests/test_misc.py::TestMisc::test_logger PASSED [ 41%] >oct2py/tests/test_misc.py::TestMisc::test_struct_array PASSED [ 42%] >oct2py/tests/test_numpy.py::TestNumpy::test_scalars PASSED [ 43%] >oct2py/tests/test_numpy.py::TestNumpy::test_ndarrays PASSED [ 44%] >oct2py/tests/test_numpy.py::TestNumpy::test_sparse PASSED [ 45%] >oct2py/tests/test_numpy.py::TestNumpy::test_empty PASSED [ 46%] >oct2py/tests/test_numpy.py::TestNumpy::test_mat PASSED [ 47%] >oct2py/tests/test_numpy.py::TestNumpy::test_masked PASSED [ 48%] >oct2py/tests/test_roundtrip.py::TestRoundTrip::test_int PASSED [ 49%] >oct2py/tests/test_roundtrip.py::TestRoundTrip::test_float PASSED [ 50%] >oct2py/tests/test_roundtrip.py::TestRoundTrip::test_misc_num PASSED [ 51%] >oct2py/tests/test_roundtrip.py::TestRoundTrip::test_logical PASSED [ 52%] >oct2py/tests/test_roundtrip.py::TestRoundTrip::test_string PASSED [ 53%] >oct2py/tests/test_roundtrip.py::TestRoundTrip::test_struct_array PASSED [ 54%] >oct2py/tests/test_roundtrip.py::TestRoundTrip::test_cell_array PASSED [ 55%] >oct2py/tests/test_roundtrip.py::TestRoundTrip::test_octave_origin PASSED [ 56%] >oct2py/tests/test_roundtrip.py::TestBuiltins::test_dict PASSED [ 57%] >oct2py/tests/test_roundtrip.py::TestBuiltins::test_nested_dict PASSED [ 58%] >oct2py/tests/test_roundtrip.py::TestBuiltins::test_set PASSED [ 59%] >oct2py/tests/test_roundtrip.py::TestBuiltins::test_tuple PASSED [ 60%] >oct2py/tests/test_roundtrip.py::TestBuiltins::test_tuple_of_tuples PASSED [ 61%] >oct2py/tests/test_roundtrip.py::TestBuiltins::test_list PASSED [ 62%] >oct2py/tests/test_roundtrip.py::TestBuiltins::test_list_of_tuples PASSED [ 63%] >oct2py/tests/test_roundtrip.py::TestBuiltins::test_numeric PASSED [ 64%] >oct2py/tests/test_roundtrip.py::TestBuiltins::test_simple_string PASSED [ 65%] >oct2py/tests/test_roundtrip.py::TestBuiltins::test_nested_list PASSED [ 66%] >oct2py/tests/test_roundtrip.py::TestBuiltins::test_bool PASSED [ 67%] >oct2py/tests/test_roundtrip.py::TestBuiltins::test_none PASSED [ 68%] >oct2py/tests/test_usage.py::TestUsage::test_run PASSED [ 69%] >oct2py/tests/test_usage.py::TestUsage::test_dynamic_functions PASSED [ 70%] >oct2py/tests/test_usage.py::TestUsage::test_push_pull PASSED [ 71%] >oct2py/tests/test_usage.py::TestUsage::test_help PASSED [ 72%] >oct2py/tests/test_usage.py::TestUsage::test_dynamic PASSED [ 73%] >oct2py/tests/test_usage.py::TestUsage::test_open_close PASSED [ 74%] >oct2py/tests/test_usage.py::TestUsage::test_struct PASSED [ 75%] >oct2py/tests/test_usage.py::TestUsage::test_syntax_error PASSED [ 76%] >oct2py/tests/test_usage.py::TestUsage::test_extract_figures FAILED [ 77%] >oct2py/tests/test_usage.py::TestUsage::test_quit PASSED [ 78%] >oct2py/tests/test_usage.py::TestUsage::test_octave_error PASSED [ 79%] >oct2py/tests/test_usage.py::TestUsage::test_keyword_arguments FAILED [ 80%] >oct2py/tests/test_usage.py::TestUsage::test_octave_function PASSED [ 81%] >oct2py/tests/test_usage.py::TestUsage::test_bad_getattr PASSED [ 82%] >oct2py/tests/test_usage.py::TestUsage::test_octave_class PASSED [ 83%] >oct2py/tests/test_usage.py::TestUsage::test_get_pointer PASSED [ 84%] >oct2py/tests/test_usage.py::TestUsage::test_get_max_nout PASSED [ 85%] >oct2py/tests/test_usage.py::TestUsage::test_feval PASSED [ 86%] >oct2py/tests/test_usage.py::TestUsage::test_eval PASSED [ 87%] >oct2py/tests/test_usage.py::TestUsage::test_no_args_returned PASSED [ 88%] >oct2py/tests/test_usage.py::TestUsage::test_script_error PASSED [ 89%] >oct2py/tests/test_usage.py::TestUsage::test_script_error_like_my_pyeval[pyeval_like_error0] PASSED [ 90%] >oct2py/tests/test_usage.py::TestUsage::test_script_error_like_my_pyeval[pyeval_like_error1] PASSED [ 91%] >oct2py/tests/test_usage.py::TestUsage::test_script_error_like_my_pyeval[pyeval_like_error2] PASSED [ 92%] >oct2py/tests/test_usage.py::TestUsage::test_script_error_like_my_pyeval[pyeval_like_error3] PASSED [ 93%] >oct2py/tests/test_usage.py::TestUsage::test_script_error_like_my_pyeval0 PASSED [ 94%] >oct2py/tests/test_usage.py::TestUsage::test_script_error_like_my_pyeval1 PASSED [ 95%] >oct2py/tests/test_usage.py::TestUsage::test_script_error_like_my_pyeval2 PASSED [ 96%] >oct2py/tests/test_usage.py::TestUsage::test_script_error_like_my_pyeval3 PASSED [ 97%] >oct2py/tests/test_usage.py::TestUsage::test_pkg_load SKIPPED [ 98%] >oct2py/tests/test_usage.py::TestUsage::test_passing_integer_args PASSED [ 99%] >oct2py/tests/test_usage.py::TestUsage::test_carriage_return PASSED [100%] > >=================================== FAILURES =================================== >_______________________ OctaveMagicTest.test_octave_plot _______________________ > >self = <oct2py.ipython.tests.test_octavemagic.OctaveMagicTest testMethod=test_octave_plot> > > def test_octave_plot(self): > magic = self.ip.find_cell_magic('octave').__self__ > magic._display = self._verify_display > self.ip.run_cell_magic('octave', '-f svg -s 400,500', >> 'plot([1, 2, 3]); figure; plot([4, 5, 6]);') > >oct2py/ipython/tests/test_octavemagic.py:56: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.7/site-packages/IPython/core/interactiveshell.py:2381: in run_cell_magic > result = fn(*args, **kwargs) ><decorator-gen-118>:2: in octave > ??? >/usr/lib/python3.7/site-packages/IPython/core/magic.py:187: in <lambda> > call = lambda f, *a, **k: f(*a, **k) >oct2py/ipython/octavemagic.py:256: in octave > resolution=args.resolution) >oct2py/core.py:500: in eval > plot_res=plot_res) >oct2py/core.py:382: in feval > store_as=store_as, plot_dir=plot_dir) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <oct2py.core.Oct2Py object at 0x7f83bb9e2310>, func_name = 'evalin' >func_args = ['base', 'plot([1, 2, 3]); figure; plot([4, 5, 6]);'], dname = '' >nout = 0, timeout = None >stream_handler = <bound method OctaveMagics._publish of <oct2py.ipython.octavemagic.OctaveMagics object at 0x7f83b4b1bdd0>> >store_as = '' >plot_dir = '/var/tmp/portage/dev-python/oct2py-5.2.0-r1/temp/tmphjmugprm' > > def _feval(self, func_name, func_args=(), dname='', nout=0, > timeout=None, stream_handler=None, store_as='', plot_dir=None): > """Run the given function with the given args. > """ > engine = self._engine > if engine is None: > raise Oct2PyError('Session is closed') > > # Set up our mat file paths. > out_file = osp.join(self.temp_dir, 'writer.mat') > out_file = out_file.replace(osp.sep, '/') > in_file = osp.join(self.temp_dir, 'reader.mat') > in_file = in_file.replace(osp.sep, '/') > > func_args = list(func_args) > ref_indices = [] > for (i, value) in enumerate(func_args): > if isinstance(value, OctavePtr): > ref_indices.append(i + 1) > func_args[i] = value.address > ref_indices = np.array(ref_indices) > > # Save the request data to the output file. > req = dict(func_name=func_name, func_args=tuple(func_args), > dname=dname or '', nout=nout, > store_as=store_as or '', > ref_indices=ref_indices) > > write_file(req, out_file, oned_as=self._oned_as, > convert_to_float=self.convert_to_float) > > # Set up the engine and evaluate the `_pyeval()` function. > engine.line_handler = stream_handler or self.logger.info > if timeout is None: > timeout = self.timeout > > try: > engine.eval('_pyeval("%s", "%s");' % (out_file, in_file), > timeout=timeout) > except KeyboardInterrupt as e: > stream_handler(engine.repl.interrupt()) > raise > except TIMEOUT: > stream_handler(engine.repl.interrupt()) > raise Oct2PyError('Timed out, interrupting') > except EOF: > if not self._engine: > return > stream_handler(engine.repl.child.before) > self.restart() > raise Oct2PyError('Session died, restarting') > > # Read in the output. > resp = read_file(in_file, self) > if resp['err']: > msg = self._parse_error(resp['err']) >> raise Oct2PyError(msg) >E oct2py.utils.Oct2PyError: Octave evaluation error: >E error: no graphics toolkits are available! >E error: called from: >E figure at line 91, column 7 >E newplot at line 117, column 10 >E plot at line 222, column 9 > >oct2py/core.py:582: Oct2PyError >----------------------------- Captured stdout call ----------------------------- >error: graphics_toolkit: = toolkit is not available >error: called from > graphics_toolkit at line 81 column 5 >error: graphics_toolkit: gnuplot toolkit is not available >error: called from > graphics_toolkit at line 81 column 5 >____________________ OctaveMagicTest.test_octave_roundtrip _____________________ > >self = <oct2py.ipython.tests.test_octavemagic.OctaveMagicTest testMethod=test_octave_roundtrip> > > def test_octave_roundtrip(self): > ip = self.ip > ip.ex('x = np.arange(3); y = 4.5') > ip.run_line_magic('octave_push', 'x y') >> ip.run_line_magic('octave', 'x = x + 1; y = y + 1;') > >oct2py/ipython/tests/test_octavemagic.py:39: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.7/site-packages/IPython/core/interactiveshell.py:2326: in run_line_magic > result = fn(*args, **kwargs) ><decorator-gen-118>:2: in octave > ??? >/usr/lib/python3.7/site-packages/IPython/core/magic.py:187: in <lambda> > call = lambda f, *a, **k: f(*a, **k) >oct2py/ipython/octavemagic.py:256: in octave > resolution=args.resolution) >oct2py/core.py:500: in eval > plot_res=plot_res) >oct2py/core.py:382: in feval > store_as=store_as, plot_dir=plot_dir) >oct2py/core.py:596: in _feval > self._engine.make_figures(plot_dir) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <octave_kernel.kernel.OctaveEngine object at 0x7f83b4d9fd90> >plot_dir = '/var/tmp/portage/dev-python/oct2py-5.2.0-r1/temp/tmpw1abs_hu' > > def make_figures(self, plot_dir=None): > """Create figures for the current figures. > > Parameters > ---------- > plot_dir: str, optional > The directory in which to create the plots. > > Returns > ------- > out: str > The plot directory containing the files. > """ > settings = self._plot_settings > if not settings['backend'].startswith('inline'): > self.eval('drawnow("expose");') > if not plot_dir: > return > fmt = settings['format'] > res = settings['resolution'] > wid = settings['width'] > hgt = settings['height'] > name = settings['name'] > plot_dir = plot_dir or tempfile.mkdtemp(dir=settings['plot_dir']) > plot_dir = plot_dir.replace(os.path.sep, '/') > > # Do not overwrite any existing plot files. > spec = os.path.join(plot_dir, '%s*' % name) > start = len(glob.glob(spec)) > > make_figs = '_make_figures("%s", "%s", "%s", %d, %d, %d, %d)' > make_figs = make_figs % (plot_dir, fmt, name, wid, hgt, res, start) > resp = self.eval(make_figs, silent=True) > msg = 'Inline plot failed, consider trying another graphics toolkit\n' > if resp and 'error:' in resp: > resp = msg + resp > if self.error_handler: > self.error_handler(resp) > else: >> raise Exception(resp) >E Exception: Inline plot failed, consider trying another graphics toolkit >E error: print: no axes object in figure to print >E error: called from >E _make_figures>safe_print at line 125 column 7 >E _make_figures at line 49 column 13 > >/usr/lib/python3.7/site-packages/octave_kernel/kernel.py:288: Exception >----------------------------- Captured stdout call ----------------------------- >error: graphics_toolkit: = toolkit is not available >error: called from > graphics_toolkit at line 81 column 5 >error: graphics_toolkit: = toolkit is not available >error: called from > graphics_toolkit at line 81 column 5 >error: graphics_toolkit: = toolkit is not available >error: called from > graphics_toolkit at line 81 column 5 >error: graphics_toolkit: gnuplot toolkit is not available >error: called from > graphics_toolkit at line 81 column 5 >______________________________ TestMisc.test_plot ______________________________ > >self = <oct2py.tests.test_misc.TestMisc object at 0x7f83b4bb6710> > > def test_plot(self): > plot_dir = tempfile.mkdtemp().replace('\\', '/') >> self.oc.plot([1, 2, 3], plot_dir=plot_dir) > >oct2py/tests/test_misc.py:121: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >oct2py/dynamic.py:96: in __call__ > return self._ref().feval(self.name, *inputs, **kwargs) >oct2py/core.py:382: in feval > store_as=store_as, plot_dir=plot_dir) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <oct2py.core.Oct2Py object at 0x7f83b4175c50>, func_name = 'plot' >func_args = [[1, 2, 3]], dname = '', nout = 1, timeout = None >stream_handler = <bound method Logger.info of <Logger oct2py (INFO)>> >store_as = '' >plot_dir = '/var/tmp/portage/dev-python/oct2py-5.2.0-r1/temp/tmpok_kmam0' > > def _feval(self, func_name, func_args=(), dname='', nout=0, > timeout=None, stream_handler=None, store_as='', plot_dir=None): > """Run the given function with the given args. > """ > engine = self._engine > if engine is None: > raise Oct2PyError('Session is closed') > > # Set up our mat file paths. > out_file = osp.join(self.temp_dir, 'writer.mat') > out_file = out_file.replace(osp.sep, '/') > in_file = osp.join(self.temp_dir, 'reader.mat') > in_file = in_file.replace(osp.sep, '/') > > func_args = list(func_args) > ref_indices = [] > for (i, value) in enumerate(func_args): > if isinstance(value, OctavePtr): > ref_indices.append(i + 1) > func_args[i] = value.address > ref_indices = np.array(ref_indices) > > # Save the request data to the output file. > req = dict(func_name=func_name, func_args=tuple(func_args), > dname=dname or '', nout=nout, > store_as=store_as or '', > ref_indices=ref_indices) > > write_file(req, out_file, oned_as=self._oned_as, > convert_to_float=self.convert_to_float) > > # Set up the engine and evaluate the `_pyeval()` function. > engine.line_handler = stream_handler or self.logger.info > if timeout is None: > timeout = self.timeout > > try: > engine.eval('_pyeval("%s", "%s");' % (out_file, in_file), > timeout=timeout) > except KeyboardInterrupt as e: > stream_handler(engine.repl.interrupt()) > raise > except TIMEOUT: > stream_handler(engine.repl.interrupt()) > raise Oct2PyError('Timed out, interrupting') > except EOF: > if not self._engine: > return > stream_handler(engine.repl.child.before) > self.restart() > raise Oct2PyError('Session died, restarting') > > # Read in the output. > resp = read_file(in_file, self) > if resp['err']: > msg = self._parse_error(resp['err']) >> raise Oct2PyError(msg) >E oct2py.utils.Oct2PyError: Octave evaluation error: >E error: no graphics toolkits are available! >E error: called from: >E figure at line 91, column 7 >E newplot at line 117, column 10 >E plot at line 222, column 9 > >oct2py/core.py:582: Oct2PyError >----------------------------- Captured stdout call ----------------------------- >error: graphics_toolkit: gnuplot toolkit is not available >error: called from > graphics_toolkit at line 81 column 5 >_____________________ TestMisc.test_deprecated_return_both _____________________ > >self = <oct2py.tests.test_misc.TestMisc object at 0x7f83b4c58190> > > def test_deprecated_return_both(self): > text, value = self.oc.eval(['disp("hi")', 'ones(3);'], > return_both=True) >> assert text.strip() == 'hi' >E AssertionError: assert ('hi\n'\n 'error: graphics_toolkit: gnuplot toolkit is not available\n'\n 'error: called from\n'\n ' graphics_toolkit at line 81 column 5') == 'hi' >E - hi >E + hi >E ? + >E + error: graphics_toolkit: gnuplot toolkit is not available >E + error: called from >E + graphics_toolkit at line 81 column 5 > >oct2py/tests/test_misc.py:285: AssertionError >----------------------------- Captured stdout call ----------------------------- >Octave eval: >graphics_toolkit('gnuplot') >set(0, 'defaultfigurevisible', 'off'); >error: graphics_toolkit: gnuplot toolkit is not available >error: called from > graphics_toolkit at line 81 column 5 >Octave eval: >_pyeval("/var/tmp/portage/dev-python/oct2py-5.2.0-r1/temp/tmpc3h_thg_/writer.mat", "/var/tmp/portage/dev-python/oct2py-5.2.0-r1/temp/tmpc3h_thg_/reader.mat"); >Octave eval: >graphics_toolkit('gnuplot') >set(0, 'defaultfigurevisible', 'off'); >Octave eval: >_pyeval("/var/tmp/portage/dev-python/oct2py-5.2.0-r1/temp/tmpc3h_thg_/writer.mat", "/var/tmp/portage/dev-python/oct2py-5.2.0-r1/temp/tmpc3h_thg_/reader.mat"); >________________________ TestUsage.test_extract_figures ________________________ > >self = <oct2py.tests.test_usage.TestUsage object at 0x7f83b4cd7dd0> > > def test_extract_figures(self): > plot_dir = tempfile.mkdtemp().replace('\\', '/') > code = """ > figure 1 > plot([1,2,3]) > figure 2 > temp=rand(100,100); > imshow(temp) > """ >> self.oc.eval(code, plot_dir=plot_dir, plot_format='svg') > >oct2py/tests/test_usage.py:142: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >oct2py/core.py:500: in eval > plot_res=plot_res) >oct2py/core.py:382: in feval > store_as=store_as, plot_dir=plot_dir) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <oct2py.core.Oct2Py object at 0x7f83b4b31050>, func_name = 'evalin' >func_args = ['base', '\n figure 1\n plot([1,2,3])\n figure 2\n temp=rand(100,100);\n imshow(temp)\n '] >dname = '', nout = 0, timeout = None >stream_handler = <bound method Logger.info of <Logger oct2py (INFO)>> >store_as = '' >plot_dir = '/var/tmp/portage/dev-python/oct2py-5.2.0-r1/temp/tmp32_2p1xu' > > def _feval(self, func_name, func_args=(), dname='', nout=0, > timeout=None, stream_handler=None, store_as='', plot_dir=None): > """Run the given function with the given args. > """ > engine = self._engine > if engine is None: > raise Oct2PyError('Session is closed') > > # Set up our mat file paths. > out_file = osp.join(self.temp_dir, 'writer.mat') > out_file = out_file.replace(osp.sep, '/') > in_file = osp.join(self.temp_dir, 'reader.mat') > in_file = in_file.replace(osp.sep, '/') > > func_args = list(func_args) > ref_indices = [] > for (i, value) in enumerate(func_args): > if isinstance(value, OctavePtr): > ref_indices.append(i + 1) > func_args[i] = value.address > ref_indices = np.array(ref_indices) > > # Save the request data to the output file. > req = dict(func_name=func_name, func_args=tuple(func_args), > dname=dname or '', nout=nout, > store_as=store_as or '', > ref_indices=ref_indices) > > write_file(req, out_file, oned_as=self._oned_as, > convert_to_float=self.convert_to_float) > > # Set up the engine and evaluate the `_pyeval()` function. > engine.line_handler = stream_handler or self.logger.info > if timeout is None: > timeout = self.timeout > > try: > engine.eval('_pyeval("%s", "%s");' % (out_file, in_file), > timeout=timeout) > except KeyboardInterrupt as e: > stream_handler(engine.repl.interrupt()) > raise > except TIMEOUT: > stream_handler(engine.repl.interrupt()) > raise Oct2PyError('Timed out, interrupting') > except EOF: > if not self._engine: > return > stream_handler(engine.repl.child.before) > self.restart() > raise Oct2PyError('Session died, restarting') > > # Read in the output. > resp = read_file(in_file, self) > if resp['err']: > msg = self._parse_error(resp['err']) >> raise Oct2PyError(msg) >E oct2py.utils.Oct2PyError: Octave evaluation error: >E error: no graphics toolkits are available! >E error: called from: >E figure at line 91, column 7 > >oct2py/core.py:582: Oct2PyError >----------------------------- Captured stdout call ----------------------------- >error: graphics_toolkit: gnuplot toolkit is not available >error: called from > graphics_toolkit at line 81 column 5 >_______________________ TestUsage.test_keyword_arguments _______________________ > >self = <oct2py.tests.test_usage.TestUsage object at 0x7f83b4c1dcd0> > > def test_keyword_arguments(self): > self.oc.set(0, DefaultFigureColor='b', nout=0) > plot_dir = tempfile.mkdtemp().replace('\\', '/') >> self.oc.plot([1, 2, 3], linewidth=3, plot_dir=plot_dir) > >oct2py/tests/test_usage.py:159: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >oct2py/dynamic.py:96: in __call__ > return self._ref().feval(self.name, *inputs, **kwargs) >oct2py/core.py:382: in feval > store_as=store_as, plot_dir=plot_dir) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <oct2py.core.Oct2Py object at 0x7f83b4b31050>, func_name = 'plot' >func_args = [[1, 2, 3], 'linewidth', 3], dname = '', nout = 1, timeout = None >stream_handler = <bound method Logger.info of <Logger oct2py (INFO)>> >store_as = '' >plot_dir = '/var/tmp/portage/dev-python/oct2py-5.2.0-r1/temp/tmpap3v8v1c' > > def _feval(self, func_name, func_args=(), dname='', nout=0, > timeout=None, stream_handler=None, store_as='', plot_dir=None): > """Run the given function with the given args. > """ > engine = self._engine > if engine is None: > raise Oct2PyError('Session is closed') > > # Set up our mat file paths. > out_file = osp.join(self.temp_dir, 'writer.mat') > out_file = out_file.replace(osp.sep, '/') > in_file = osp.join(self.temp_dir, 'reader.mat') > in_file = in_file.replace(osp.sep, '/') > > func_args = list(func_args) > ref_indices = [] > for (i, value) in enumerate(func_args): > if isinstance(value, OctavePtr): > ref_indices.append(i + 1) > func_args[i] = value.address > ref_indices = np.array(ref_indices) > > # Save the request data to the output file. > req = dict(func_name=func_name, func_args=tuple(func_args), > dname=dname or '', nout=nout, > store_as=store_as or '', > ref_indices=ref_indices) > > write_file(req, out_file, oned_as=self._oned_as, > convert_to_float=self.convert_to_float) > > # Set up the engine and evaluate the `_pyeval()` function. > engine.line_handler = stream_handler or self.logger.info > if timeout is None: > timeout = self.timeout > > try: > engine.eval('_pyeval("%s", "%s");' % (out_file, in_file), > timeout=timeout) > except KeyboardInterrupt as e: > stream_handler(engine.repl.interrupt()) > raise > except TIMEOUT: > stream_handler(engine.repl.interrupt()) > raise Oct2PyError('Timed out, interrupting') > except EOF: > if not self._engine: > return > stream_handler(engine.repl.child.before) > self.restart() > raise Oct2PyError('Session died, restarting') > > # Read in the output. > resp = read_file(in_file, self) > if resp['err']: > msg = self._parse_error(resp['err']) >> raise Oct2PyError(msg) >E oct2py.utils.Oct2PyError: Octave evaluation error: >E error: no graphics toolkits are available! >E error: called from: >E figure at line 91, column 7 >E newplot at line 117, column 10 >E plot at line 222, column 9 > >oct2py/core.py:582: Oct2PyError >----------------------------- Captured stdout call ----------------------------- >error: graphics_toolkit: = toolkit is not available >error: called from > graphics_toolkit at line 81 column 5 >error: graphics_toolkit: gnuplot toolkit is not available >error: called from > graphics_toolkit at line 81 column 5 >=============================== warnings summary =============================== >/usr/lib/python3.7/site-packages/metakernel/_metakernel.py:6 > /usr/lib/python3.7/site-packages/metakernel/_metakernel.py:6: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses > import imp > >oct2py/tests/test_misc.py::TestMisc::test_deprecated_log > /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py/tests/test_misc.py:277: UserWarning: Using deprecated `log` kwarg, see docs on `Oct2Py.eval()` > self.oc.eval('disp("hi")', log=False) > >oct2py/tests/test_misc.py::TestMisc::test_deprecated_return_both > /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py/tests/test_misc.py:284: UserWarning: Using deprecated `return_both` kwarg, see docs on `Oct2Py.eval()` > return_both=True) > >oct2py/tests/test_numpy.py::TestNumpy::test_mat > /usr/lib/python3.7/site-packages/numpy/matrixlib/defmatrix.py:69: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray. > return matrix(data, dtype=dtype, copy=False) > >oct2py/tests/test_roundtrip.py::TestBuiltins::test_nested_list > /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py/io.py:348: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray > return _encode(np.array(data), ctf) > >oct2py/tests/test_usage.py::TestUsage::test_keyword_arguments > /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py/tests/test_usage.py:157: UserWarning: Key - value pairs are deprecated, use `func_args` > self.oc.set(0, DefaultFigureColor='b', nout=0) > >oct2py/tests/test_usage.py::TestUsage::test_keyword_arguments > /var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib/oct2py/tests/test_usage.py:159: UserWarning: Key - value pairs are deprecated, use `func_args` > self.oc.plot([1, 2, 3], linewidth=3, plot_dir=plot_dir) > >-- Docs: https://docs.pytest.org/en/stable/warnings.html >=========================== short test summary info ============================ >FAILED oct2py/ipython/tests/test_octavemagic.py::OctaveMagicTest::test_octave_plot >FAILED oct2py/ipython/tests/test_octavemagic.py::OctaveMagicTest::test_octave_roundtrip >FAILED oct2py/tests/test_misc.py::TestMisc::test_plot - oct2py.utils.Oct2PyEr... >FAILED oct2py/tests/test_misc.py::TestMisc::test_deprecated_return_both - Ass... >FAILED oct2py/tests/test_usage.py::TestUsage::test_extract_figures - oct2py.u... >FAILED oct2py/tests/test_usage.py::TestUsage::test_keyword_arguments - oct2py... >============= 6 failed, 94 passed, 1 skipped, 7 warnings in 15.59s ============= > * ERROR: dev-python/oct2py-5.2.0-r1::gentoo failed (test phase): > * Tests fail with python3.7 > * > * Call stack: > * ebuild.sh, line 125: Called src_test > * environment, line 3120: Called distutils-r1_src_test > * environment, line 1348: Called _distutils-r1_run_foreach_impl 'python_test' > * environment, line 513: Called python_foreach_impl 'distutils-r1_run_phase' 'python_test' > * environment, line 2700: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > * environment, line 2131: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > * environment, line 2129: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test' > * environment, line 921: Called distutils-r1_run_phase 'python_test' > * environment, line 1285: Called python_test > * environment, line 3061: 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/oct2py-5.2.0-r1::gentoo'`, > * the complete build log and the output of `emerge -pqv '=dev-python/oct2py-5.2.0-r1::gentoo'`. > * The complete build log is located at '/var/log/emerge-log/build/dev-python/oct2py-5.2.0-r1:20200919-083857.log'. > * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-python/oct2py-5.2.0-r1/temp/build.log'. > * The ebuild environment file is located at '/var/tmp/portage/dev-python/oct2py-5.2.0-r1/temp/environment'. > * Working directory: '/var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0-python3_7/lib' > * S: '/var/tmp/portage/dev-python/oct2py-5.2.0-r1/work/oct2py-5.2.0'
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 743589
: 661389