* Package: dev-python/flask-wtf-0.14.3 * Repository: gentoo * Maintainer: python@gentoo.org * Upstream: https://github.com/lepture/flask-wtf/issues * USE: abi_x86_32 elibc_glibc kernel_linux python_targets_python3_7 test userland_GNU x86 * FEATURES: network-sandbox preserve-libs sandbox splitdebug test userpriv usersandbox >>> Unpacking source... >>> Unpacking Flask-WTF-0.14.3.tar.gz to /var/tmp/portage/dev-python/flask-wtf-0.14.3/work >>> Source unpacked in /var/tmp/portage/dev-python/flask-wtf-0.14.3/work >>> Preparing source in /var/tmp/portage/dev-python/flask-wtf-0.14.3/work/Flask-WTF-0.14.3 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-python/flask-wtf-0.14.3/work/Flask-WTF-0.14.3 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-python/flask-wtf-0.14.3/work/Flask-WTF-0.14.3 ... * python3_7: running distutils-r1_run_phase distutils-r1_python_compile python3.7 setup.py build -j 8 running build running build_py creating /var/tmp/portage/dev-python/flask-wtf-0.14.3/work/Flask-WTF-0.14.3-python3_7/lib/flask_wtf copying flask_wtf/__init__.py -> /var/tmp/portage/dev-python/flask-wtf-0.14.3/work/Flask-WTF-0.14.3-python3_7/lib/flask_wtf copying flask_wtf/form.py -> /var/tmp/portage/dev-python/flask-wtf-0.14.3/work/Flask-WTF-0.14.3-python3_7/lib/flask_wtf copying flask_wtf/file.py -> /var/tmp/portage/dev-python/flask-wtf-0.14.3/work/Flask-WTF-0.14.3-python3_7/lib/flask_wtf copying flask_wtf/i18n.py -> /var/tmp/portage/dev-python/flask-wtf-0.14.3/work/Flask-WTF-0.14.3-python3_7/lib/flask_wtf copying flask_wtf/csrf.py -> /var/tmp/portage/dev-python/flask-wtf-0.14.3/work/Flask-WTF-0.14.3-python3_7/lib/flask_wtf copying flask_wtf/_compat.py -> /var/tmp/portage/dev-python/flask-wtf-0.14.3/work/Flask-WTF-0.14.3-python3_7/lib/flask_wtf copying flask_wtf/html5.py -> /var/tmp/portage/dev-python/flask-wtf-0.14.3/work/Flask-WTF-0.14.3-python3_7/lib/flask_wtf creating /var/tmp/portage/dev-python/flask-wtf-0.14.3/work/Flask-WTF-0.14.3-python3_7/lib/flask_wtf/recaptcha copying flask_wtf/recaptcha/__init__.py -> /var/tmp/portage/dev-python/flask-wtf-0.14.3/work/Flask-WTF-0.14.3-python3_7/lib/flask_wtf/recaptcha copying flask_wtf/recaptcha/validators.py -> /var/tmp/portage/dev-python/flask-wtf-0.14.3/work/Flask-WTF-0.14.3-python3_7/lib/flask_wtf/recaptcha copying flask_wtf/recaptcha/widgets.py -> /var/tmp/portage/dev-python/flask-wtf-0.14.3/work/Flask-WTF-0.14.3-python3_7/lib/flask_wtf/recaptcha copying flask_wtf/recaptcha/fields.py -> /var/tmp/portage/dev-python/flask-wtf-0.14.3/work/Flask-WTF-0.14.3-python3_7/lib/flask_wtf/recaptcha 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/flask-wtf-0.14.3 * python3_7: running distutils-r1_run_phase python_test ============================= test session starts ============================== platform linux -- Python 3.7.7, pytest-4.6.11, py-1.8.0, pluggy-0.13.1 -- /usr/bin/python3.7 cachedir: .pytest_cache hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/var/tmp/portage/dev-python/flask-wtf-0.14.3/work/Flask-WTF-0.14.3/.hypothesis/examples') rootdir: /var/tmp/portage/dev-python/flask-wtf-0.14.3/work/Flask-WTF-0.14.3, inifile: setup.cfg, testpaths: tests plugins: timeout-1.3.4, xdist-1.32.0, hypothesis-4.57.1, asyncio-0.12.0, aiohttp-0.3.0, shutil-1.7.0, forked-1.1.3, requests-mock-1.8.0, django-3.9.0, localserver-0.5.0, xprocess-0.13.1, pyfakefs-3.7.2 collecting ... collected 41 items tests/test_csrf_extension.py::test_render_token PASSED [ 2%] tests/test_csrf_extension.py::test_protect PASSED [ 4%] tests/test_csrf_extension.py::test_same_origin PASSED [ 7%] tests/test_csrf_extension.py::test_form_csrf_short_circuit PASSED [ 9%] tests/test_csrf_extension.py::test_exempt_view PASSED [ 12%] tests/test_csrf_extension.py::test_manual_protect PASSED [ 14%] tests/test_csrf_extension.py::test_exempt_blueprint PASSED [ 17%] tests/test_csrf_extension.py::test_error_handler PASSED [ 19%] tests/test_csrf_extension.py::test_validate_error_logged PASSED [ 21%] tests/test_csrf_extension.py::test_deprecated_csrfprotect PASSED [ 24%] tests/test_csrf_extension.py::test_deprecated_error_handler PASSED [ 26%] tests/test_csrf_form.py::test_csrf_requires_secret_key PASSED [ 29%] tests/test_csrf_form.py::test_token_stored_by_generate PASSED [ 31%] tests/test_csrf_form.py::test_custom_token_key PASSED [ 34%] tests/test_csrf_form.py::test_token_cached PASSED [ 36%] tests/test_csrf_form.py::test_validate PASSED [ 39%] tests/test_csrf_form.py::test_validation_errors PASSED [ 41%] tests/test_csrf_form.py::test_form_csrf PASSED [ 43%] tests/test_csrf_form.py::test_validate_error_logged PASSED [ 46%] tests/test_file.py::test_process_formdata PASSED [ 48%] tests/test_file.py::test_file_required PASSED [ 51%] tests/test_file.py::test_file_allowed PASSED [ 53%] tests/test_file.py::test_file_allowed_uploadset SKIPPED [ 56%] tests/test_file.py::test_validate_base_field PASSED [ 58%] tests/test_file.py::test_deprecated_filefield PASSED [ 60%] tests/test_form.py::test_populate_from_form PASSED [ 63%] tests/test_form.py::test_populate_from_files PASSED [ 65%] tests/test_form.py::test_populate_from_json PASSED [ 68%] tests/test_form.py::test_populate_manually PASSED [ 70%] tests/test_form.py::test_populate_none PASSED [ 73%] tests/test_form.py::test_validate_on_submit PASSED [ 75%] tests/test_form.py::test_no_validate_on_get PASSED [ 78%] tests/test_form.py::test_hidden_tag PASSED [ 80%] tests/test_form.py::test_deprecated_form PASSED [ 82%] tests/test_form.py::test_custom_meta_with_deprecated_form PASSED [ 85%] tests/test_form.py::test_deprecated_csrf_enabled PASSED [ 87%] tests/test_form.py::test_set_default_message_language PASSED [ 90%] tests/test_html5.py::test_deprecated_html5 PASSED [ 92%] tests/test_i18n.py::test_no_extension PASSED [ 95%] tests/test_i18n.py::test_i18n SKIPPED [ 97%] tests/test_i18n.py::test_outside_request FAILED [100%] =================================== FAILURES =================================== _____________________________ test_outside_request _____________________________ from babel import support from flask import current_app, request from wtforms.i18n import messages_path try: > from flask_babel import get_locale ../Flask-WTF-0.14.3-python3_7/lib/flask_wtf/i18n.py:6: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ from __future__ import absolute_import import os from datetime import datetime from contextlib import contextmanager from flask import current_app, request from flask.ctx import has_request_context from babel import dates, numbers, support, Locale > from werkzeug import ImmutableDict E ImportError: cannot import name 'ImmutableDict' from 'werkzeug' (/usr/lib/python3.7/site-packages/werkzeug/__init__.py) /usr/lib/python3.7/site-packages/flask_babel/__init__.py:19: ImportError During handling of the above exception, another exception occurred: def test_outside_request(): pytest.importorskip('babel') > from flask_wtf.i18n import translations tests/test_i18n.py:66: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ from babel import support from flask import current_app, request from wtforms.i18n import messages_path try: from flask_babel import get_locale except ImportError: > from flask_babelex import get_locale E ModuleNotFoundError: No module named 'flask_babelex' ../Flask-WTF-0.14.3-python3_7/lib/flask_wtf/i18n.py:8: ModuleNotFoundError ================ 1 failed, 38 passed, 2 skipped in 0.55 seconds ================ * ERROR: dev-python/flask-wtf-0.14.3::gentoo failed (test phase): * Tests fail with python3.7 * * Call stack: * ebuild.sh, line 125: Called src_test * environment, line 2998: Called distutils-r1_src_test * environment, line 1277: Called _distutils-r1_run_foreach_impl 'python_test' * environment, line 473: Called python_foreach_impl 'distutils-r1_run_phase' 'python_test' * environment, line 2590: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' * environment, line 2059: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' * environment, line 2057: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test' * environment, line 865: Called distutils-r1_run_phase 'python_test' * environment, line 1214: Called python_test * environment, line 2940: 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/flask-wtf-0.14.3::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-python/flask-wtf-0.14.3::gentoo'`. * The complete build log is located at '/var/log/emerge-log/build/dev-python/flask-wtf-0.14.3:20200708-131904.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-python/flask-wtf-0.14.3/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-python/flask-wtf-0.14.3/temp/environment'. * Working directory: '/var/tmp/portage/dev-python/flask-wtf-0.14.3/work/Flask-WTF-0.14.3' * S: '/var/tmp/portage/dev-python/flask-wtf-0.14.3/work/Flask-WTF-0.14.3' emerge --info: Portage 2.3.99 (python 3.7.7-final-0, default/linux/x86/17.0, gcc-9.3.0, glibc-2.30-r8, 4.14.34-gentoo-infra38 i686) ================================================================= System uname: Linux-4.14.34-gentoo-infra38-i686-Intel-R-_Xeon-R-_CPU_E5-2620_v4_@_2.10GHz-with-gentoo-2.6 KiB Mem: 16426740 total, 4023916 free KiB Swap: 4194268 total, 4186000 free Timestamp of repository gentoo: Wed, 08 Jul 2020 12:35:23 +0000 sh bash 5.0_p17 ld GNU ld (Gentoo 2.33.1 p2) 2.33.1 app-shells/bash: 5.0_p17::gentoo dev-lang/perl: 5.30.3::gentoo dev-lang/python: 2.7.18::gentoo, 3.7.7-r2::gentoo, 3.8.2-r2::gentoo dev-util/cmake: 3.16.5::gentoo sys-apps/baselayout: 2.6-r1::gentoo sys-apps/openrc: 0.42.1::gentoo sys-apps/sandbox: 2.18::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.16.1-r1::gentoo sys-devel/binutils: 2.33.1-r1::gentoo sys-devel/gcc: 9.3.0::gentoo sys-devel/gcc-config: 2.3::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.2.1-r4::gentoo sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.30-r8::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 x-portage location: /usr/local/portage masters: gentoo priority: 0 ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="*" CBUILD="i686-pc-linux-gnu" CC="i686-pc-linux-gnu-gcc" CFLAGS="-O2 -pipe -g -ggdb -frecord-gcc-switches -march=native" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXX="i686-pc-linux-gnu-g++" CXXFLAGS="-O2 -pipe -g -ggdb -frecord-gcc-switches -march=native" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps y --keep-going y --quiet-fail y -1" 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 -g -ggdb -frecord-gcc-switches -march=native" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs 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 splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe -g -ggdb -frecord-gcc-switches -march=native" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0" LINGUAS="en en_GB" MAKEOPTS="-j8" 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="X acl berkdb bzip2 cli crypt dri elogind fortran gdbm iconv ipv6 jumbo-build libtirpc ncurses nls nptl openmp openssl pam pcre readline seccomp split-usr ssl tcpd unicode x86 xattr zlib" ABI_X86="32" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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" L10N="en en_GB en-GB" 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: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS