I: pbuilder: network access will be disabled during build I: Current time: Thu Dec 18 08:38:51 +14 2025 I: pbuilder-time-stamp: 1765996731 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration W: --override-config is not set; not updating apt.conf Read the manpage for details. I: mounting /proc filesystem I: mounting /sys filesystem I: creating /{dev,run}/shm I: mounting /dev/pts filesystem I: redirecting /dev/ptmx to /dev/pts/ptmx I: policy-rc.d already exists I: Copying source file I: copying [sqlalchemy-i18n_1.1.0-2.dsc] I: copying [./sqlalchemy-i18n_1.1.0.orig.tar.gz] I: copying [./sqlalchemy-i18n_1.1.0-2.debian.tar.xz] I: Extracting source gpgv: Signature made Thu Nov 14 06:19:50 2024 gpgv: using RSA key 8F6DE104377F3B11E741748731F3144544A1741A gpgv: issuer "tchet@debian.org" gpgv: Can't check signature: No public key dpkg-source: warning: cannot verify inline signature for ./sqlalchemy-i18n_1.1.0-2.dsc: no acceptable signature found dpkg-source: info: extracting sqlalchemy-i18n in sqlalchemy-i18n-1.1.0 dpkg-source: info: unpacking sqlalchemy-i18n_1.1.0.orig.tar.gz dpkg-source: info: unpacking sqlalchemy-i18n_1.1.0-2.debian.tar.xz dpkg-source: info: using patch list from debian/patches/series dpkg-source: info: applying remove-six.patch I: Not using root during the build. I: Installing the build-deps I: user script /srv/workspace/pbuilder/1889894/tmp/hooks/D01_modify_environment starting debug: Running on codethink01-arm64. I: Changing host+domainname to test build reproducibility I: Adding a custom variable just for the fun of it... I: Changing /bin/sh to bash '/bin/sh' -> '/bin/bash' lrwxrwxrwx 1 root root 9 Dec 17 18:38 /bin/sh -> /bin/bash I: Setting pbuilder2's login shell to /bin/bash I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other I: user script /srv/workspace/pbuilder/1889894/tmp/hooks/D01_modify_environment finished I: user script /srv/workspace/pbuilder/1889894/tmp/hooks/D02_print_environment starting I: set BASH=/bin/sh BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath BASH_ALIASES=() BASH_ARGC=() BASH_ARGV=() BASH_CMDS=() BASH_LINENO=([0]="12" [1]="0") BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") BASH_VERSINFO=([0]="5" [1]="2" [2]="32" [3]="1" [4]="release" [5]="aarch64-unknown-linux-gnu") BASH_VERSION='5.2.32(1)-release' BUILDDIR=/build/reproducible-path BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' BUILDUSERNAME=pbuilder2 BUILD_ARCH=arm64 DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=12 ' DIRSTACK=() DISTRIBUTION=unstable EUID=0 FUNCNAME=([0]="Echo" [1]="main") GROUPS=() HOME=/root HOSTNAME=i-capture-the-hostname HOSTTYPE=aarch64 HOST_ARCH=arm64 IFS=' ' INVOCATION_ID=4ea371c7ee624d279323f16fc4abe283 LANG=C LANGUAGE=nl_BE:nl LC_ALL=C MACHTYPE=aarch64-unknown-linux-gnu MAIL=/var/mail/root OPTERR=1 OPTIND=1 OSTYPE=linux-gnu PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path PBCURRENTCOMMANDLINEOPERATION=build PBUILDER_OPERATION=build PBUILDER_PKGDATADIR=/usr/share/pbuilder PBUILDER_PKGLIBDIR=/usr/lib/pbuilder PBUILDER_SYSCONFDIR=/etc PIPESTATUS=([0]="0") POSIXLY_CORRECT=y PPID=1889894 PS4='+ ' PWD=/ SHELL=/bin/bash SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix SHLVL=3 SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.u21lOqdG/pbuilderrc_dzBy --distribution unstable --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.u21lOqdG/b2 --logfile b2/build.log sqlalchemy-i18n_1.1.0-2.dsc' SUDO_GID=109 SUDO_UID=104 SUDO_USER=jenkins TERM=unknown TZ=/usr/share/zoneinfo/Etc/GMT-14 UID=0 USER=root _='I: set' http_proxy=http://192.168.101.4:3128 I: uname -a Linux i-capture-the-hostname 6.1.0-27-cloud-arm64 #1 SMP Debian 6.1.115-1 (2024-11-01) aarch64 GNU/Linux I: ls -l /bin lrwxrwxrwx 1 root root 7 Aug 4 2024 /bin -> usr/bin I: user script /srv/workspace/pbuilder/1889894/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy Version: 0.invalid.0 Architecture: arm64 Maintainer: Debian Pbuilder Team Description: Dummy package to satisfy dependencies with aptitude - created by pbuilder This package was created automatically by pbuilder to satisfy the build-dependencies of the package being currently built. Depends: debhelper-compat (= 13), dh-sequence-python3, dh-sequence-sphinxdoc, postgresql, python3-all, python3-psycopg2, python3-pytest, python3-setuptools, python3-sphinx, python3-sqlalchemy, python3-sqlalchemy-utils dpkg-deb: building package 'pbuilder-satisfydepends-dummy' in '/tmp/satisfydepends-aptitude/pbuilder-satisfydepends-dummy.deb'. Selecting previously unselected package pbuilder-satisfydepends-dummy. (Reading database ... 20088 files and directories currently installed.) Preparing to unpack .../pbuilder-satisfydepends-dummy.deb ... Unpacking pbuilder-satisfydepends-dummy (0.invalid.0) ... dpkg: pbuilder-satisfydepends-dummy: dependency problems, but configuring anyway as you requested: pbuilder-satisfydepends-dummy depends on debhelper-compat (= 13); however: Package debhelper-compat is not installed. pbuilder-satisfydepends-dummy depends on dh-sequence-python3; however: Package dh-sequence-python3 is not installed. pbuilder-satisfydepends-dummy depends on dh-sequence-sphinxdoc; however: Package dh-sequence-sphinxdoc is not installed. pbuilder-satisfydepends-dummy depends on postgresql; however: Package postgresql is not installed. pbuilder-satisfydepends-dummy depends on python3-all; however: Package python3-all is not installed. pbuilder-satisfydepends-dummy depends on python3-psycopg2; however: Package python3-psycopg2 is not installed. pbuilder-satisfydepends-dummy depends on python3-pytest; however: Package python3-pytest is not installed. pbuilder-satisfydepends-dummy depends on python3-setuptools; however: Package python3-setuptools is not installed. pbuilder-satisfydepends-dummy depends on python3-sphinx; however: Package python3-sphinx is not installed. pbuilder-satisfydepends-dummy depends on python3-sqlalchemy; however: Package python3-sqlalchemy is not installed. pbuilder-satisfydepends-dummy depends on python3-sqlalchemy-utils; however: Package python3-sqlalchemy-utils is not installed. Setting up pbuilder-satisfydepends-dummy (0.invalid.0) ... Reading package lists... Building dependency tree... Reading state information... Initializing package states... Writing extended state information... Building tag database... pbuilder-satisfydepends-dummy is already installed at the requested version (0.invalid.0) pbuilder-satisfydepends-dummy is already installed at the requested version (0.invalid.0) The following NEW packages will be installed: autoconf{a} automake{a} autopoint{a} autotools-dev{a} bsdextrautils{a} ca-certificates{a} debhelper{a} dh-autoreconf{a} dh-python{a} dh-strip-nondeterminism{a} docutils-common{a} dwz{a} file{a} gettext{a} gettext-base{a} groff-base{a} intltool-debian{a} libarchive-zip-perl{a} libcom-err2{a} libdebhelper-perl{a} libedit2{a} libelf1t64{a} libexpat1{a} libfile-stripnondeterminism-perl{a} libgssapi-krb5-2{a} libicu72{a} libio-pty-perl{a} libipc-run-perl{a} libjs-jquery{a} libjs-sphinxdoc{a} libjs-underscore{a} libjson-perl{a} libk5crypto3{a} libkeyutils1{a} libkrb5-3{a} libkrb5support0{a} libldap-2.5-0{a} libllvm19{a} libmagic-mgc{a} libmagic1t64{a} libnsl2{a} libpipeline1{a} libpq5{a} libpython3-stdlib{a} libpython3.12-minimal{a} libpython3.12-stdlib{a} libpython3.13-minimal{a} libpython3.13-stdlib{a} libreadline8t64{a} libsasl2-2{a} libsasl2-modules-db{a} libtirpc-common{a} libtirpc3t64{a} libtool{a} libuchardet0{a} libxml2{a} libxslt1.1{a} libz3-4{a} m4{a} man-db{a} media-types{a} netbase{a} openssl{a} po-debconf{a} postgresql{a} postgresql-17{a} postgresql-client-17{a} postgresql-client-common{a} postgresql-common{a} python-babel-localedata{a} python3{a} python3-alabaster{a} python3-all{a} python3-arrow{a} python3-autocommand{a} python3-babel{a} python3-certifi{a} python3-chardet{a} python3-charset-normalizer{a} python3-dateutil{a} python3-defusedxml{a} python3-docutils{a} python3-greenlet{a} python3-idna{a} python3-imagesize{a} python3-infinity{a} python3-inflect{a} python3-iniconfig{a} python3-jaraco.context{a} python3-jaraco.functools{a} python3-jaraco.text{a} python3-jinja2{a} python3-markupsafe{a} python3-minimal{a} python3-more-itertools{a} python3-packaging{a} python3-pkg-resources{a} python3-pluggy{a} python3-psycopg2{a} python3-pygments{a} python3-pytest{a} python3-requests{a} python3-roman{a} python3-setuptools{a} python3-snowballstemmer{a} python3-sphinx{a} python3-sqlalchemy{a} python3-sqlalchemy-utils{a} python3-typeguard{a} python3-typeshed{a} python3-typing-extensions{a} python3-urllib3{a} python3-zipp{a} python3.12{a} python3.12-minimal{a} python3.13{a} python3.13-minimal{a} readline-common{a} sensible-utils{a} sgml-base{a} sphinx-common{a} ssl-cert{a} tzdata{a} ucf{a} xml-core{a} The following packages are RECOMMENDED but will NOT be installed: curl e2fsprogs javascript-common krb5-locales libarchive-cpio-perl libjson-xs-perl libldap-common libltdl-dev libmail-sendmail-perl libpaper-utils libsasl2-modules logrotate lynx python3-pil python3-sqlalchemy-ext sysstat wget 0 packages upgraded, 125 newly installed, 0 to remove and 0 not upgraded. Need to get 97.5 MB of archives. After unpacking 442 MB will be used. Writing extended state information... Get: 1 http://deb.debian.org/debian unstable/main arm64 libjson-perl all 4.10000-1 [87.5 kB] Get: 2 http://deb.debian.org/debian unstable/main arm64 libio-pty-perl arm64 1:1.20-1+b2 [34.0 kB] Get: 3 http://deb.debian.org/debian unstable/main arm64 libipc-run-perl all 20231003.0-2 [101 kB] Get: 4 http://deb.debian.org/debian unstable/main arm64 netbase all 6.4 [12.8 kB] Get: 5 http://deb.debian.org/debian unstable/main arm64 postgresql-client-common all 265 [36.4 kB] Get: 6 http://deb.debian.org/debian unstable/main arm64 openssl arm64 3.3.2-2 [1347 kB] Get: 7 http://deb.debian.org/debian unstable/main arm64 ssl-cert all 1.1.3 [16.8 kB] Get: 8 http://deb.debian.org/debian unstable/main arm64 sensible-utils all 0.0.24 [24.8 kB] Get: 9 http://deb.debian.org/debian unstable/main arm64 ucf all 3.0043+nmu1 [55.2 kB] Get: 10 http://deb.debian.org/debian unstable/main arm64 postgresql-common all 265 [169 kB] Get: 11 http://deb.debian.org/debian unstable/main arm64 libpython3.12-minimal arm64 3.12.7-3 [808 kB] Get: 12 http://deb.debian.org/debian unstable/main arm64 libexpat1 arm64 2.6.4-1 [90.7 kB] Get: 13 http://deb.debian.org/debian unstable/main arm64 python3.12-minimal arm64 3.12.7-3 [1940 kB] Get: 14 http://deb.debian.org/debian unstable/main arm64 python3-minimal arm64 3.12.7-1 [26.8 kB] Get: 15 http://deb.debian.org/debian unstable/main arm64 media-types all 10.1.0 [26.9 kB] Get: 16 http://deb.debian.org/debian unstable/main arm64 tzdata all 2024b-3 [255 kB] Get: 17 http://deb.debian.org/debian unstable/main arm64 libkrb5support0 arm64 1.21.3-3 [32.1 kB] Get: 18 http://deb.debian.org/debian unstable/main arm64 libcom-err2 arm64 1.47.1-1+b1 [23.1 kB] Get: 19 http://deb.debian.org/debian unstable/main arm64 libk5crypto3 arm64 1.21.3-3 [80.8 kB] Get: 20 http://deb.debian.org/debian unstable/main arm64 libkeyutils1 arm64 1.6.3-4 [9352 B] Get: 21 http://deb.debian.org/debian unstable/main arm64 libkrb5-3 arm64 1.21.3-3 [310 kB] Get: 22 http://deb.debian.org/debian unstable/main arm64 libgssapi-krb5-2 arm64 1.21.3-3 [126 kB] Get: 23 http://deb.debian.org/debian unstable/main arm64 libtirpc-common all 1.3.4+ds-1.3 [10.9 kB] Get: 24 http://deb.debian.org/debian unstable/main arm64 libtirpc3t64 arm64 1.3.4+ds-1.3+b1 [78.7 kB] Get: 25 http://deb.debian.org/debian unstable/main arm64 libnsl2 arm64 1.3.0-3+b3 [37.9 kB] Get: 26 http://deb.debian.org/debian unstable/main arm64 readline-common all 8.2-5 [69.3 kB] Get: 27 http://deb.debian.org/debian unstable/main arm64 libreadline8t64 arm64 8.2-5 [159 kB] Get: 28 http://deb.debian.org/debian unstable/main arm64 libpython3.12-stdlib arm64 3.12.7-3 [1902 kB] Get: 29 http://deb.debian.org/debian unstable/main arm64 python3.12 arm64 3.12.7-3 [671 kB] Get: 30 http://deb.debian.org/debian unstable/main arm64 libpython3-stdlib arm64 3.12.7-1 [9708 B] Get: 31 http://deb.debian.org/debian unstable/main arm64 python3 arm64 3.12.7-1 [27.8 kB] Get: 32 http://deb.debian.org/debian unstable/main arm64 libpython3.13-minimal arm64 3.13.0-2 [850 kB] Get: 33 http://deb.debian.org/debian unstable/main arm64 python3.13-minimal arm64 3.13.0-2 [1838 kB] Get: 34 http://deb.debian.org/debian unstable/main arm64 sgml-base all 1.31 [15.4 kB] Get: 35 http://deb.debian.org/debian unstable/main arm64 ca-certificates all 20240203 [158 kB] Get: 36 http://deb.debian.org/debian unstable/main arm64 libmagic-mgc arm64 1:5.45-3+b1 [314 kB] Get: 37 http://deb.debian.org/debian unstable/main arm64 libmagic1t64 arm64 1:5.45-3+b1 [102 kB] Get: 38 http://deb.debian.org/debian unstable/main arm64 file arm64 1:5.45-3+b1 [43.4 kB] Get: 39 http://deb.debian.org/debian unstable/main arm64 gettext-base arm64 0.22.5-2 [198 kB] Get: 40 http://deb.debian.org/debian unstable/main arm64 libuchardet0 arm64 0.0.8-1+b2 [69.2 kB] Get: 41 http://deb.debian.org/debian unstable/main arm64 groff-base arm64 1.23.0-5 [1129 kB] Get: 42 http://deb.debian.org/debian unstable/main arm64 bsdextrautils arm64 2.40.2-11 [91.2 kB] Get: 43 http://deb.debian.org/debian unstable/main arm64 libpipeline1 arm64 1.5.8-1 [40.2 kB] Get: 44 http://deb.debian.org/debian unstable/main arm64 man-db arm64 2.13.0-1 [1404 kB] Get: 45 http://deb.debian.org/debian unstable/main arm64 m4 arm64 1.4.19-4 [277 kB] Get: 46 http://deb.debian.org/debian unstable/main arm64 autoconf all 2.72-3 [493 kB] Get: 47 http://deb.debian.org/debian unstable/main arm64 autotools-dev all 20220109.1 [51.6 kB] Get: 48 http://deb.debian.org/debian unstable/main arm64 automake all 1:1.16.5-1.3 [823 kB] Get: 49 http://deb.debian.org/debian unstable/main arm64 autopoint all 0.22.5-2 [723 kB] Get: 50 http://deb.debian.org/debian unstable/main arm64 libdebhelper-perl all 13.20 [89.7 kB] Get: 51 http://deb.debian.org/debian unstable/main arm64 libtool all 2.4.7-8 [517 kB] Get: 52 http://deb.debian.org/debian unstable/main arm64 dh-autoreconf all 20 [17.1 kB] Get: 53 http://deb.debian.org/debian unstable/main arm64 libarchive-zip-perl all 1.68-1 [104 kB] Get: 54 http://deb.debian.org/debian unstable/main arm64 libfile-stripnondeterminism-perl all 1.14.0-1 [19.5 kB] Get: 55 http://deb.debian.org/debian unstable/main arm64 dh-strip-nondeterminism all 1.14.0-1 [8448 B] Get: 56 http://deb.debian.org/debian unstable/main arm64 libelf1t64 arm64 0.192-4 [189 kB] Get: 57 http://deb.debian.org/debian unstable/main arm64 dwz arm64 0.15-1+b1 [102 kB] Get: 58 http://deb.debian.org/debian unstable/main arm64 libicu72 arm64 72.1-5+b1 [9239 kB] Get: 59 http://deb.debian.org/debian unstable/main arm64 libxml2 arm64 2.12.7+dfsg+really2.9.14-0.2+b1 [630 kB] Get: 60 http://deb.debian.org/debian unstable/main arm64 gettext arm64 0.22.5-2 [1532 kB] Get: 61 http://deb.debian.org/debian unstable/main arm64 intltool-debian all 0.35.0+20060710.6 [22.9 kB] Get: 62 http://deb.debian.org/debian unstable/main arm64 po-debconf all 1.0.21+nmu1 [248 kB] Get: 63 http://deb.debian.org/debian unstable/main arm64 debhelper all 13.20 [915 kB] Get: 64 http://deb.debian.org/debian unstable/main arm64 python3-autocommand all 2.2.2-3 [13.6 kB] Get: 65 http://deb.debian.org/debian unstable/main arm64 python3-more-itertools all 10.5.0-1 [63.8 kB] Get: 66 http://deb.debian.org/debian unstable/main arm64 python3-typing-extensions all 4.12.2-2 [73.0 kB] Get: 67 http://deb.debian.org/debian unstable/main arm64 python3-typeguard all 4.4.1-1 [37.0 kB] Get: 68 http://deb.debian.org/debian unstable/main arm64 python3-inflect all 7.3.1-2 [32.4 kB] Get: 69 http://deb.debian.org/debian unstable/main arm64 python3-jaraco.context all 6.0.0-1 [7984 B] Get: 70 http://deb.debian.org/debian unstable/main arm64 python3-jaraco.functools all 4.1.0-1 [12.0 kB] Get: 71 http://deb.debian.org/debian unstable/main arm64 python3-pkg-resources all 75.2.0-1 [213 kB] Get: 72 http://deb.debian.org/debian unstable/main arm64 python3-jaraco.text all 4.0.0-1 [11.4 kB] Get: 73 http://deb.debian.org/debian unstable/main arm64 python3-zipp all 3.21.0-1 [10.6 kB] Get: 74 http://deb.debian.org/debian unstable/main arm64 python3-setuptools all 75.2.0-1 [731 kB] Get: 75 http://deb.debian.org/debian unstable/main arm64 dh-python all 6.20241024 [109 kB] Get: 76 http://deb.debian.org/debian unstable/main arm64 xml-core all 0.19 [20.1 kB] Get: 77 http://deb.debian.org/debian unstable/main arm64 docutils-common all 0.21.2+dfsg-2 [128 kB] Get: 78 http://deb.debian.org/debian unstable/main arm64 libedit2 arm64 3.1-20240808-1 [89.2 kB] Get: 79 http://deb.debian.org/debian unstable/main arm64 libjs-jquery all 3.6.1+dfsg+~3.5.14-1 [326 kB] Get: 80 http://deb.debian.org/debian unstable/main arm64 libjs-underscore all 1.13.4~dfsg+~1.11.4-3 [116 kB] Get: 81 http://deb.debian.org/debian unstable/main arm64 libjs-sphinxdoc all 7.4.7-4 [158 kB] Get: 82 http://deb.debian.org/debian unstable/main arm64 libsasl2-modules-db arm64 2.1.28+dfsg1-8 [20.0 kB] Get: 83 http://deb.debian.org/debian unstable/main arm64 libsasl2-2 arm64 2.1.28+dfsg1-8 [55.4 kB] Get: 84 http://deb.debian.org/debian unstable/main arm64 libldap-2.5-0 arm64 2.5.18+dfsg-3+b1 [175 kB] Get: 85 http://deb.debian.org/debian unstable/main arm64 libz3-4 arm64 4.13.3-1 [7507 kB] Get: 86 http://deb.debian.org/debian unstable/main arm64 libllvm19 arm64 1:19.1.3-2 [23.3 MB] Get: 87 http://deb.debian.org/debian unstable/main arm64 libpq5 arm64 17.0-1+b2 [214 kB] Get: 88 http://deb.debian.org/debian unstable/main arm64 libpython3.13-stdlib arm64 3.13.0-2 [1922 kB] Get: 89 http://deb.debian.org/debian unstable/main arm64 libxslt1.1 arm64 1.1.35-1.1+b1 [222 kB] Get: 90 http://deb.debian.org/debian unstable/main arm64 postgresql-client-17 arm64 17.0-1+b2 [1945 kB] Get: 91 http://deb.debian.org/debian unstable/main arm64 postgresql-17 arm64 17.0-1+b2 [16.0 MB] Get: 92 http://deb.debian.org/debian unstable/main arm64 postgresql all 17+265 [12.2 kB] Get: 93 http://deb.debian.org/debian unstable/main arm64 python-babel-localedata all 2.16.0-1 [5696 kB] Get: 94 http://deb.debian.org/debian unstable/main arm64 python3-alabaster all 0.7.16-0.1 [27.9 kB] Get: 95 http://deb.debian.org/debian unstable/main arm64 python3.13 arm64 3.13.0-2 [730 kB] Get: 96 http://deb.debian.org/debian unstable/main arm64 python3-all arm64 3.12.7-1 [1052 B] Get: 97 http://deb.debian.org/debian unstable/main arm64 python3-dateutil all 2.9.0-3 [79.3 kB] Get: 98 http://deb.debian.org/debian unstable/main arm64 python3-typeshed all 0.0~git20231111.6764465-3 [1258 kB] Get: 99 http://deb.debian.org/debian unstable/main arm64 python3-arrow all 1.3.0-1.1 [64.7 kB] Get: 100 http://deb.debian.org/debian unstable/main arm64 python3-babel all 2.16.0-1 [114 kB] Get: 101 http://deb.debian.org/debian unstable/main arm64 python3-certifi all 2024.8.30+dfsg-1 [9576 B] Get: 102 http://deb.debian.org/debian unstable/main arm64 python3-chardet all 5.2.0+dfsg-1 [107 kB] Get: 103 http://deb.debian.org/debian unstable/main arm64 python3-charset-normalizer arm64 3.4.0-1 [112 kB] Get: 104 http://deb.debian.org/debian unstable/main arm64 python3-defusedxml all 0.7.1-2 [43.3 kB] Get: 105 http://deb.debian.org/debian unstable/main arm64 python3-roman all 4.2-1 [10.4 kB] Get: 106 http://deb.debian.org/debian unstable/main arm64 python3-docutils all 0.21.2+dfsg-2 [403 kB] Get: 107 http://deb.debian.org/debian unstable/main arm64 python3-greenlet arm64 3.1.0-1+b1 [178 kB] Get: 108 http://deb.debian.org/debian unstable/main arm64 python3-idna all 3.8-2 [41.6 kB] Get: 109 http://deb.debian.org/debian unstable/main arm64 python3-imagesize all 1.4.1-1 [6688 B] Get: 110 http://deb.debian.org/debian unstable/main arm64 python3-infinity all 1.5-3 [4384 B] Get: 111 http://deb.debian.org/debian unstable/main arm64 python3-iniconfig all 1.1.1-2 [6396 B] Get: 112 http://deb.debian.org/debian unstable/main arm64 python3-markupsafe arm64 2.1.5-1+b3 [14.0 kB] Get: 113 http://deb.debian.org/debian unstable/main arm64 python3-jinja2 all 3.1.3-1 [119 kB] Get: 114 http://deb.debian.org/debian unstable/main arm64 python3-packaging all 24.1-1 [45.8 kB] Get: 115 http://deb.debian.org/debian unstable/main arm64 python3-pluggy all 1.5.0-1 [26.9 kB] Get: 116 http://deb.debian.org/debian unstable/main arm64 python3-psycopg2 arm64 2.9.9-2+b1 [136 kB] Get: 117 http://deb.debian.org/debian unstable/main arm64 python3-pygments all 2.18.0+dfsg-1 [836 kB] Get: 118 http://deb.debian.org/debian unstable/main arm64 python3-pytest all 8.3.3-1 [249 kB] Get: 119 http://deb.debian.org/debian unstable/main arm64 python3-urllib3 all 2.0.7-2 [111 kB] Get: 120 http://deb.debian.org/debian unstable/main arm64 python3-requests all 2.32.3+dfsg-1 [71.9 kB] Get: 121 http://deb.debian.org/debian unstable/main arm64 python3-snowballstemmer all 2.2.0-4 [58.0 kB] Get: 122 http://deb.debian.org/debian unstable/main arm64 sphinx-common all 7.4.7-4 [731 kB] Get: 123 http://deb.debian.org/debian unstable/main arm64 python3-sphinx all 7.4.7-4 [588 kB] Get: 124 http://deb.debian.org/debian unstable/main arm64 python3-sqlalchemy all 2.0.32+ds1-1 [1196 kB] Get: 125 http://deb.debian.org/debian unstable/main arm64 python3-sqlalchemy-utils all 0.41.0-4 [67.6 kB] Fetched 97.5 MB in 0s (245 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libjson-perl. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 20088 files and directories currently installed.) Preparing to unpack .../00-libjson-perl_4.10000-1_all.deb ... Unpacking libjson-perl (4.10000-1) ... Selecting previously unselected package libio-pty-perl. Preparing to unpack .../01-libio-pty-perl_1%3a1.20-1+b2_arm64.deb ... Unpacking libio-pty-perl (1:1.20-1+b2) ... Selecting previously unselected package libipc-run-perl. Preparing to unpack .../02-libipc-run-perl_20231003.0-2_all.deb ... Unpacking libipc-run-perl (20231003.0-2) ... Selecting previously unselected package netbase. Preparing to unpack .../03-netbase_6.4_all.deb ... Unpacking netbase (6.4) ... Selecting previously unselected package postgresql-client-common. Preparing to unpack .../04-postgresql-client-common_265_all.deb ... Unpacking postgresql-client-common (265) ... Selecting previously unselected package openssl. Preparing to unpack .../05-openssl_3.3.2-2_arm64.deb ... Unpacking openssl (3.3.2-2) ... Selecting previously unselected package ssl-cert. Preparing to unpack .../06-ssl-cert_1.1.3_all.deb ... Unpacking ssl-cert (1.1.3) ... Selecting previously unselected package sensible-utils. Preparing to unpack .../07-sensible-utils_0.0.24_all.deb ... Unpacking sensible-utils (0.0.24) ... Selecting previously unselected package ucf. Preparing to unpack .../08-ucf_3.0043+nmu1_all.deb ... Moving old data out of the way Unpacking ucf (3.0043+nmu1) ... Selecting previously unselected package postgresql-common. Preparing to unpack .../09-postgresql-common_265_all.deb ... Adding 'diversion of /usr/bin/pg_config to /usr/bin/pg_config.libpq-dev by postgresql-common' Unpacking postgresql-common (265) ... Selecting previously unselected package libpython3.12-minimal:arm64. Preparing to unpack .../10-libpython3.12-minimal_3.12.7-3_arm64.deb ... Unpacking libpython3.12-minimal:arm64 (3.12.7-3) ... Selecting previously unselected package libexpat1:arm64. Preparing to unpack .../11-libexpat1_2.6.4-1_arm64.deb ... Unpacking libexpat1:arm64 (2.6.4-1) ... Selecting previously unselected package python3.12-minimal. Preparing to unpack .../12-python3.12-minimal_3.12.7-3_arm64.deb ... Unpacking python3.12-minimal (3.12.7-3) ... Setting up libpython3.12-minimal:arm64 (3.12.7-3) ... Setting up libexpat1:arm64 (2.6.4-1) ... Setting up python3.12-minimal (3.12.7-3) ... Selecting previously unselected package python3-minimal. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 21072 files and directories currently installed.) Preparing to unpack .../00-python3-minimal_3.12.7-1_arm64.deb ... Unpacking python3-minimal (3.12.7-1) ... Selecting previously unselected package media-types. Preparing to unpack .../01-media-types_10.1.0_all.deb ... Unpacking media-types (10.1.0) ... Selecting previously unselected package tzdata. Preparing to unpack .../02-tzdata_2024b-3_all.deb ... Unpacking tzdata (2024b-3) ... Selecting previously unselected package libkrb5support0:arm64. Preparing to unpack .../03-libkrb5support0_1.21.3-3_arm64.deb ... Unpacking libkrb5support0:arm64 (1.21.3-3) ... Selecting previously unselected package libcom-err2:arm64. Preparing to unpack .../04-libcom-err2_1.47.1-1+b1_arm64.deb ... Unpacking libcom-err2:arm64 (1.47.1-1+b1) ... Selecting previously unselected package libk5crypto3:arm64. Preparing to unpack .../05-libk5crypto3_1.21.3-3_arm64.deb ... Unpacking libk5crypto3:arm64 (1.21.3-3) ... Selecting previously unselected package libkeyutils1:arm64. Preparing to unpack .../06-libkeyutils1_1.6.3-4_arm64.deb ... Unpacking libkeyutils1:arm64 (1.6.3-4) ... Selecting previously unselected package libkrb5-3:arm64. Preparing to unpack .../07-libkrb5-3_1.21.3-3_arm64.deb ... Unpacking libkrb5-3:arm64 (1.21.3-3) ... Selecting previously unselected package libgssapi-krb5-2:arm64. Preparing to unpack .../08-libgssapi-krb5-2_1.21.3-3_arm64.deb ... Unpacking libgssapi-krb5-2:arm64 (1.21.3-3) ... Selecting previously unselected package libtirpc-common. Preparing to unpack .../09-libtirpc-common_1.3.4+ds-1.3_all.deb ... Unpacking libtirpc-common (1.3.4+ds-1.3) ... Selecting previously unselected package libtirpc3t64:arm64. Preparing to unpack .../10-libtirpc3t64_1.3.4+ds-1.3+b1_arm64.deb ... Adding 'diversion of /lib/aarch64-linux-gnu/libtirpc.so.3 to /lib/aarch64-linux-gnu/libtirpc.so.3.usr-is-merged by libtirpc3t64' Adding 'diversion of /lib/aarch64-linux-gnu/libtirpc.so.3.0.0 to /lib/aarch64-linux-gnu/libtirpc.so.3.0.0.usr-is-merged by libtirpc3t64' Unpacking libtirpc3t64:arm64 (1.3.4+ds-1.3+b1) ... Selecting previously unselected package libnsl2:arm64. Preparing to unpack .../11-libnsl2_1.3.0-3+b3_arm64.deb ... Unpacking libnsl2:arm64 (1.3.0-3+b3) ... Selecting previously unselected package readline-common. Preparing to unpack .../12-readline-common_8.2-5_all.deb ... Unpacking readline-common (8.2-5) ... Selecting previously unselected package libreadline8t64:arm64. Preparing to unpack .../13-libreadline8t64_8.2-5_arm64.deb ... Adding 'diversion of /lib/aarch64-linux-gnu/libhistory.so.8 to /lib/aarch64-linux-gnu/libhistory.so.8.usr-is-merged by libreadline8t64' Adding 'diversion of /lib/aarch64-linux-gnu/libhistory.so.8.2 to /lib/aarch64-linux-gnu/libhistory.so.8.2.usr-is-merged by libreadline8t64' Adding 'diversion of /lib/aarch64-linux-gnu/libreadline.so.8 to /lib/aarch64-linux-gnu/libreadline.so.8.usr-is-merged by libreadline8t64' Adding 'diversion of /lib/aarch64-linux-gnu/libreadline.so.8.2 to /lib/aarch64-linux-gnu/libreadline.so.8.2.usr-is-merged by libreadline8t64' Unpacking libreadline8t64:arm64 (8.2-5) ... Selecting previously unselected package libpython3.12-stdlib:arm64. Preparing to unpack .../14-libpython3.12-stdlib_3.12.7-3_arm64.deb ... Unpacking libpython3.12-stdlib:arm64 (3.12.7-3) ... Selecting previously unselected package python3.12. Preparing to unpack .../15-python3.12_3.12.7-3_arm64.deb ... Unpacking python3.12 (3.12.7-3) ... Selecting previously unselected package libpython3-stdlib:arm64. Preparing to unpack .../16-libpython3-stdlib_3.12.7-1_arm64.deb ... Unpacking libpython3-stdlib:arm64 (3.12.7-1) ... Setting up python3-minimal (3.12.7-1) ... Selecting previously unselected package python3. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 22127 files and directories currently installed.) Preparing to unpack .../00-python3_3.12.7-1_arm64.deb ... Unpacking python3 (3.12.7-1) ... Selecting previously unselected package libpython3.13-minimal:arm64. Preparing to unpack .../01-libpython3.13-minimal_3.13.0-2_arm64.deb ... Unpacking libpython3.13-minimal:arm64 (3.13.0-2) ... Selecting previously unselected package python3.13-minimal. Preparing to unpack .../02-python3.13-minimal_3.13.0-2_arm64.deb ... Unpacking python3.13-minimal (3.13.0-2) ... Selecting previously unselected package sgml-base. Preparing to unpack .../03-sgml-base_1.31_all.deb ... Unpacking sgml-base (1.31) ... Selecting previously unselected package ca-certificates. Preparing to unpack .../04-ca-certificates_20240203_all.deb ... Unpacking ca-certificates (20240203) ... Selecting previously unselected package libmagic-mgc. Preparing to unpack .../05-libmagic-mgc_1%3a5.45-3+b1_arm64.deb ... Unpacking libmagic-mgc (1:5.45-3+b1) ... Selecting previously unselected package libmagic1t64:arm64. Preparing to unpack .../06-libmagic1t64_1%3a5.45-3+b1_arm64.deb ... Unpacking libmagic1t64:arm64 (1:5.45-3+b1) ... Selecting previously unselected package file. Preparing to unpack .../07-file_1%3a5.45-3+b1_arm64.deb ... Unpacking file (1:5.45-3+b1) ... Selecting previously unselected package gettext-base. Preparing to unpack .../08-gettext-base_0.22.5-2_arm64.deb ... Unpacking gettext-base (0.22.5-2) ... Selecting previously unselected package libuchardet0:arm64. Preparing to unpack .../09-libuchardet0_0.0.8-1+b2_arm64.deb ... Unpacking libuchardet0:arm64 (0.0.8-1+b2) ... Selecting previously unselected package groff-base. Preparing to unpack .../10-groff-base_1.23.0-5_arm64.deb ... Unpacking groff-base (1.23.0-5) ... Selecting previously unselected package bsdextrautils. Preparing to unpack .../11-bsdextrautils_2.40.2-11_arm64.deb ... Unpacking bsdextrautils (2.40.2-11) ... Selecting previously unselected package libpipeline1:arm64. Preparing to unpack .../12-libpipeline1_1.5.8-1_arm64.deb ... Unpacking libpipeline1:arm64 (1.5.8-1) ... Selecting previously unselected package man-db. Preparing to unpack .../13-man-db_2.13.0-1_arm64.deb ... Unpacking man-db (2.13.0-1) ... Selecting previously unselected package m4. Preparing to unpack .../14-m4_1.4.19-4_arm64.deb ... Unpacking m4 (1.4.19-4) ... Selecting previously unselected package autoconf. Preparing to unpack .../15-autoconf_2.72-3_all.deb ... Unpacking autoconf (2.72-3) ... Selecting previously unselected package autotools-dev. Preparing to unpack .../16-autotools-dev_20220109.1_all.deb ... Unpacking autotools-dev (20220109.1) ... Selecting previously unselected package automake. Preparing to unpack .../17-automake_1%3a1.16.5-1.3_all.deb ... Unpacking automake (1:1.16.5-1.3) ... Selecting previously unselected package autopoint. Preparing to unpack .../18-autopoint_0.22.5-2_all.deb ... Unpacking autopoint (0.22.5-2) ... Selecting previously unselected package libdebhelper-perl. Preparing to unpack .../19-libdebhelper-perl_13.20_all.deb ... Unpacking libdebhelper-perl (13.20) ... Selecting previously unselected package libtool. Preparing to unpack .../20-libtool_2.4.7-8_all.deb ... Unpacking libtool (2.4.7-8) ... Selecting previously unselected package dh-autoreconf. Preparing to unpack .../21-dh-autoreconf_20_all.deb ... Unpacking dh-autoreconf (20) ... Selecting previously unselected package libarchive-zip-perl. Preparing to unpack .../22-libarchive-zip-perl_1.68-1_all.deb ... Unpacking libarchive-zip-perl (1.68-1) ... Selecting previously unselected package libfile-stripnondeterminism-perl. Preparing to unpack .../23-libfile-stripnondeterminism-perl_1.14.0-1_all.deb ... Unpacking libfile-stripnondeterminism-perl (1.14.0-1) ... Selecting previously unselected package dh-strip-nondeterminism. Preparing to unpack .../24-dh-strip-nondeterminism_1.14.0-1_all.deb ... Unpacking dh-strip-nondeterminism (1.14.0-1) ... Selecting previously unselected package libelf1t64:arm64. Preparing to unpack .../25-libelf1t64_0.192-4_arm64.deb ... Unpacking libelf1t64:arm64 (0.192-4) ... Selecting previously unselected package dwz. Preparing to unpack .../26-dwz_0.15-1+b1_arm64.deb ... Unpacking dwz (0.15-1+b1) ... Selecting previously unselected package libicu72:arm64. Preparing to unpack .../27-libicu72_72.1-5+b1_arm64.deb ... Unpacking libicu72:arm64 (72.1-5+b1) ... Selecting previously unselected package libxml2:arm64. Preparing to unpack .../28-libxml2_2.12.7+dfsg+really2.9.14-0.2+b1_arm64.deb ... Unpacking libxml2:arm64 (2.12.7+dfsg+really2.9.14-0.2+b1) ... Selecting previously unselected package gettext. Preparing to unpack .../29-gettext_0.22.5-2_arm64.deb ... Unpacking gettext (0.22.5-2) ... Selecting previously unselected package intltool-debian. Preparing to unpack .../30-intltool-debian_0.35.0+20060710.6_all.deb ... Unpacking intltool-debian (0.35.0+20060710.6) ... Selecting previously unselected package po-debconf. Preparing to unpack .../31-po-debconf_1.0.21+nmu1_all.deb ... Unpacking po-debconf (1.0.21+nmu1) ... Selecting previously unselected package debhelper. Preparing to unpack .../32-debhelper_13.20_all.deb ... Unpacking debhelper (13.20) ... Selecting previously unselected package python3-autocommand. Preparing to unpack .../33-python3-autocommand_2.2.2-3_all.deb ... Unpacking python3-autocommand (2.2.2-3) ... Selecting previously unselected package python3-more-itertools. Preparing to unpack .../34-python3-more-itertools_10.5.0-1_all.deb ... Unpacking python3-more-itertools (10.5.0-1) ... Selecting previously unselected package python3-typing-extensions. Preparing to unpack .../35-python3-typing-extensions_4.12.2-2_all.deb ... Unpacking python3-typing-extensions (4.12.2-2) ... Selecting previously unselected package python3-typeguard. Preparing to unpack .../36-python3-typeguard_4.4.1-1_all.deb ... Unpacking python3-typeguard (4.4.1-1) ... Selecting previously unselected package python3-inflect. Preparing to unpack .../37-python3-inflect_7.3.1-2_all.deb ... Unpacking python3-inflect (7.3.1-2) ... Selecting previously unselected package python3-jaraco.context. Preparing to unpack .../38-python3-jaraco.context_6.0.0-1_all.deb ... Unpacking python3-jaraco.context (6.0.0-1) ... Selecting previously unselected package python3-jaraco.functools. Preparing to unpack .../39-python3-jaraco.functools_4.1.0-1_all.deb ... Unpacking python3-jaraco.functools (4.1.0-1) ... Selecting previously unselected package python3-pkg-resources. Preparing to unpack .../40-python3-pkg-resources_75.2.0-1_all.deb ... Unpacking python3-pkg-resources (75.2.0-1) ... Selecting previously unselected package python3-jaraco.text. Preparing to unpack .../41-python3-jaraco.text_4.0.0-1_all.deb ... Unpacking python3-jaraco.text (4.0.0-1) ... Selecting previously unselected package python3-zipp. Preparing to unpack .../42-python3-zipp_3.21.0-1_all.deb ... Unpacking python3-zipp (3.21.0-1) ... Selecting previously unselected package python3-setuptools. Preparing to unpack .../43-python3-setuptools_75.2.0-1_all.deb ... Unpacking python3-setuptools (75.2.0-1) ... Selecting previously unselected package dh-python. Preparing to unpack .../44-dh-python_6.20241024_all.deb ... Unpacking dh-python (6.20241024) ... Selecting previously unselected package xml-core. Preparing to unpack .../45-xml-core_0.19_all.deb ... Unpacking xml-core (0.19) ... Selecting previously unselected package docutils-common. Preparing to unpack .../46-docutils-common_0.21.2+dfsg-2_all.deb ... Unpacking docutils-common (0.21.2+dfsg-2) ... Selecting previously unselected package libedit2:arm64. Preparing to unpack .../47-libedit2_3.1-20240808-1_arm64.deb ... Unpacking libedit2:arm64 (3.1-20240808-1) ... Selecting previously unselected package libjs-jquery. Preparing to unpack .../48-libjs-jquery_3.6.1+dfsg+~3.5.14-1_all.deb ... Unpacking libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... Selecting previously unselected package libjs-underscore. Preparing to unpack .../49-libjs-underscore_1.13.4~dfsg+~1.11.4-3_all.deb ... Unpacking libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... Selecting previously unselected package libjs-sphinxdoc. Preparing to unpack .../50-libjs-sphinxdoc_7.4.7-4_all.deb ... Unpacking libjs-sphinxdoc (7.4.7-4) ... Selecting previously unselected package libsasl2-modules-db:arm64. Preparing to unpack .../51-libsasl2-modules-db_2.1.28+dfsg1-8_arm64.deb ... Unpacking libsasl2-modules-db:arm64 (2.1.28+dfsg1-8) ... Selecting previously unselected package libsasl2-2:arm64. Preparing to unpack .../52-libsasl2-2_2.1.28+dfsg1-8_arm64.deb ... Unpacking libsasl2-2:arm64 (2.1.28+dfsg1-8) ... Selecting previously unselected package libldap-2.5-0:arm64. Preparing to unpack .../53-libldap-2.5-0_2.5.18+dfsg-3+b1_arm64.deb ... Unpacking libldap-2.5-0:arm64 (2.5.18+dfsg-3+b1) ... Selecting previously unselected package libz3-4:arm64. Preparing to unpack .../54-libz3-4_4.13.3-1_arm64.deb ... Unpacking libz3-4:arm64 (4.13.3-1) ... Selecting previously unselected package libllvm19:arm64. Preparing to unpack .../55-libllvm19_1%3a19.1.3-2_arm64.deb ... Unpacking libllvm19:arm64 (1:19.1.3-2) ... Selecting previously unselected package libpq5:arm64. Preparing to unpack .../56-libpq5_17.0-1+b2_arm64.deb ... Unpacking libpq5:arm64 (17.0-1+b2) ... Selecting previously unselected package libpython3.13-stdlib:arm64. Preparing to unpack .../57-libpython3.13-stdlib_3.13.0-2_arm64.deb ... Unpacking libpython3.13-stdlib:arm64 (3.13.0-2) ... Selecting previously unselected package libxslt1.1:arm64. Preparing to unpack .../58-libxslt1.1_1.1.35-1.1+b1_arm64.deb ... Unpacking libxslt1.1:arm64 (1.1.35-1.1+b1) ... Selecting previously unselected package postgresql-client-17. Preparing to unpack .../59-postgresql-client-17_17.0-1+b2_arm64.deb ... Unpacking postgresql-client-17 (17.0-1+b2) ... Selecting previously unselected package postgresql-17. Preparing to unpack .../60-postgresql-17_17.0-1+b2_arm64.deb ... Unpacking postgresql-17 (17.0-1+b2) ... Selecting previously unselected package postgresql. Preparing to unpack .../61-postgresql_17+265_all.deb ... Unpacking postgresql (17+265) ... Selecting previously unselected package python-babel-localedata. Preparing to unpack .../62-python-babel-localedata_2.16.0-1_all.deb ... Unpacking python-babel-localedata (2.16.0-1) ... Selecting previously unselected package python3-alabaster. Preparing to unpack .../63-python3-alabaster_0.7.16-0.1_all.deb ... Unpacking python3-alabaster (0.7.16-0.1) ... Selecting previously unselected package python3.13. Preparing to unpack .../64-python3.13_3.13.0-2_arm64.deb ... Unpacking python3.13 (3.13.0-2) ... Selecting previously unselected package python3-all. Preparing to unpack .../65-python3-all_3.12.7-1_arm64.deb ... Unpacking python3-all (3.12.7-1) ... Selecting previously unselected package python3-dateutil. Preparing to unpack .../66-python3-dateutil_2.9.0-3_all.deb ... Unpacking python3-dateutil (2.9.0-3) ... Selecting previously unselected package python3-typeshed. Preparing to unpack .../67-python3-typeshed_0.0~git20231111.6764465-3_all.deb ... Unpacking python3-typeshed (0.0~git20231111.6764465-3) ... Selecting previously unselected package python3-arrow. Preparing to unpack .../68-python3-arrow_1.3.0-1.1_all.deb ... Unpacking python3-arrow (1.3.0-1.1) ... Selecting previously unselected package python3-babel. Preparing to unpack .../69-python3-babel_2.16.0-1_all.deb ... Unpacking python3-babel (2.16.0-1) ... Selecting previously unselected package python3-certifi. Preparing to unpack .../70-python3-certifi_2024.8.30+dfsg-1_all.deb ... Unpacking python3-certifi (2024.8.30+dfsg-1) ... Selecting previously unselected package python3-chardet. Preparing to unpack .../71-python3-chardet_5.2.0+dfsg-1_all.deb ... Unpacking python3-chardet (5.2.0+dfsg-1) ... Selecting previously unselected package python3-charset-normalizer. Preparing to unpack .../72-python3-charset-normalizer_3.4.0-1_arm64.deb ... Unpacking python3-charset-normalizer (3.4.0-1) ... Selecting previously unselected package python3-defusedxml. Preparing to unpack .../73-python3-defusedxml_0.7.1-2_all.deb ... Unpacking python3-defusedxml (0.7.1-2) ... Selecting previously unselected package python3-roman. Preparing to unpack .../74-python3-roman_4.2-1_all.deb ... Unpacking python3-roman (4.2-1) ... Selecting previously unselected package python3-docutils. Preparing to unpack .../75-python3-docutils_0.21.2+dfsg-2_all.deb ... Unpacking python3-docutils (0.21.2+dfsg-2) ... Selecting previously unselected package python3-greenlet. Preparing to unpack .../76-python3-greenlet_3.1.0-1+b1_arm64.deb ... Unpacking python3-greenlet (3.1.0-1+b1) ... Selecting previously unselected package python3-idna. Preparing to unpack .../77-python3-idna_3.8-2_all.deb ... Unpacking python3-idna (3.8-2) ... Selecting previously unselected package python3-imagesize. Preparing to unpack .../78-python3-imagesize_1.4.1-1_all.deb ... Unpacking python3-imagesize (1.4.1-1) ... Selecting previously unselected package python3-infinity. Preparing to unpack .../79-python3-infinity_1.5-3_all.deb ... Unpacking python3-infinity (1.5-3) ... Selecting previously unselected package python3-iniconfig. Preparing to unpack .../80-python3-iniconfig_1.1.1-2_all.deb ... Unpacking python3-iniconfig (1.1.1-2) ... Selecting previously unselected package python3-markupsafe. Preparing to unpack .../81-python3-markupsafe_2.1.5-1+b3_arm64.deb ... Unpacking python3-markupsafe (2.1.5-1+b3) ... Selecting previously unselected package python3-jinja2. Preparing to unpack .../82-python3-jinja2_3.1.3-1_all.deb ... Unpacking python3-jinja2 (3.1.3-1) ... Selecting previously unselected package python3-packaging. Preparing to unpack .../83-python3-packaging_24.1-1_all.deb ... Unpacking python3-packaging (24.1-1) ... Selecting previously unselected package python3-pluggy. Preparing to unpack .../84-python3-pluggy_1.5.0-1_all.deb ... Unpacking python3-pluggy (1.5.0-1) ... Selecting previously unselected package python3-psycopg2. Preparing to unpack .../85-python3-psycopg2_2.9.9-2+b1_arm64.deb ... Unpacking python3-psycopg2 (2.9.9-2+b1) ... Selecting previously unselected package python3-pygments. Preparing to unpack .../86-python3-pygments_2.18.0+dfsg-1_all.deb ... Unpacking python3-pygments (2.18.0+dfsg-1) ... Selecting previously unselected package python3-pytest. Preparing to unpack .../87-python3-pytest_8.3.3-1_all.deb ... Unpacking python3-pytest (8.3.3-1) ... Selecting previously unselected package python3-urllib3. Preparing to unpack .../88-python3-urllib3_2.0.7-2_all.deb ... Unpacking python3-urllib3 (2.0.7-2) ... Selecting previously unselected package python3-requests. Preparing to unpack .../89-python3-requests_2.32.3+dfsg-1_all.deb ... Unpacking python3-requests (2.32.3+dfsg-1) ... Selecting previously unselected package python3-snowballstemmer. Preparing to unpack .../90-python3-snowballstemmer_2.2.0-4_all.deb ... Unpacking python3-snowballstemmer (2.2.0-4) ... Selecting previously unselected package sphinx-common. Preparing to unpack .../91-sphinx-common_7.4.7-4_all.deb ... Unpacking sphinx-common (7.4.7-4) ... Selecting previously unselected package python3-sphinx. Preparing to unpack .../92-python3-sphinx_7.4.7-4_all.deb ... Unpacking python3-sphinx (7.4.7-4) ... Selecting previously unselected package python3-sqlalchemy. Preparing to unpack .../93-python3-sqlalchemy_2.0.32+ds1-1_all.deb ... Unpacking python3-sqlalchemy (2.0.32+ds1-1) ... Selecting previously unselected package python3-sqlalchemy-utils. Preparing to unpack .../94-python3-sqlalchemy-utils_0.41.0-4_all.deb ... Unpacking python3-sqlalchemy-utils (0.41.0-4) ... Setting up media-types (10.1.0) ... Setting up libpipeline1:arm64 (1.5.8-1) ... Setting up libkeyutils1:arm64 (1.6.3-4) ... Setting up libicu72:arm64 (72.1-5+b1) ... Setting up bsdextrautils (2.40.2-11) ... Setting up libio-pty-perl (1:1.20-1+b2) ... Setting up libmagic-mgc (1:5.45-3+b1) ... Setting up libarchive-zip-perl (1.68-1) ... Setting up libtirpc-common (1.3.4+ds-1.3) ... Setting up libdebhelper-perl (13.20) ... Setting up libedit2:arm64 (3.1-20240808-1) ... Setting up libmagic1t64:arm64 (1:5.45-3+b1) ... Setting up gettext-base (0.22.5-2) ... Setting up m4 (1.4.19-4) ... Setting up libcom-err2:arm64 (1.47.1-1+b1) ... Setting up file (1:5.45-3+b1) ... Setting up libelf1t64:arm64 (0.192-4) ... Setting up python-babel-localedata (2.16.0-1) ... Setting up libkrb5support0:arm64 (1.21.3-3) ... Setting up libsasl2-modules-db:arm64 (2.1.28+dfsg1-8) ... Setting up tzdata (2024b-3) ... Current default time zone: 'Etc/UTC' Local time is now: Wed Dec 17 18:39:14 UTC 2025. Universal Time is now: Wed Dec 17 18:39:14 UTC 2025. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up libpython3.13-minimal:arm64 (3.13.0-2) ... Setting up autotools-dev (20220109.1) ... Setting up libz3-4:arm64 (4.13.3-1) ... Setting up autopoint (0.22.5-2) ... Setting up libipc-run-perl (20231003.0-2) ... Setting up libk5crypto3:arm64 (1.21.3-3) ... Setting up libsasl2-2:arm64 (2.1.28+dfsg1-8) ... Setting up autoconf (2.72-3) ... Setting up dwz (0.15-1+b1) ... Setting up sensible-utils (0.0.24) ... Setting up libuchardet0:arm64 (0.0.8-1+b2) ... Setting up libjson-perl (4.10000-1) ... Setting up python3.13-minimal (3.13.0-2) ... Setting up netbase (6.4) ... Setting up sgml-base (1.31) ... Setting up libkrb5-3:arm64 (1.21.3-3) ... Setting up libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... Setting up openssl (3.3.2-2) ... Setting up readline-common (8.2-5) ... Setting up libxml2:arm64 (2.12.7+dfsg+really2.9.14-0.2+b1) ... Setting up libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... Setting up automake (1:1.16.5-1.3) ... update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode Setting up postgresql-client-common (265) ... Setting up libfile-stripnondeterminism-perl (1.14.0-1) ... Setting up libllvm19:arm64 (1:19.1.3-2) ... Setting up gettext (0.22.5-2) ... Setting up libtool (2.4.7-8) ... Setting up libldap-2.5-0:arm64 (2.5.18+dfsg-3+b1) ... Setting up intltool-debian (0.35.0+20060710.6) ... Setting up dh-autoreconf (20) ... Setting up ca-certificates (20240203) ... Updating certificates in /etc/ssl/certs... 146 added, 0 removed; done. Setting up ssl-cert (1.1.3) ... Setting up libgssapi-krb5-2:arm64 (1.21.3-3) ... Setting up ucf (3.0043+nmu1) ... Setting up libjs-sphinxdoc (7.4.7-4) ... Setting up libreadline8t64:arm64 (8.2-5) ... Setting up dh-strip-nondeterminism (1.14.0-1) ... Setting up groff-base (1.23.0-5) ... Setting up xml-core (0.19) ... Setting up libxslt1.1:arm64 (1.1.35-1.1+b1) ... Setting up libpython3.13-stdlib:arm64 (3.13.0-2) ... Setting up libtirpc3t64:arm64 (1.3.4+ds-1.3+b1) ... Setting up python3.13 (3.13.0-2) ... Setting up po-debconf (1.0.21+nmu1) ... Setting up libpq5:arm64 (17.0-1+b2) ... Setting up man-db (2.13.0-1) ... Not building database; man-db/auto-update is not 'true'. Setting up sphinx-common (7.4.7-4) ... Setting up postgresql-common (265) ... Creating config file /etc/postgresql-common/createcluster.conf with new version Building PostgreSQL dictionaries from installed myspell/hunspell packages... Removing obsolete dictionary files: invoke-rc.d: could not determine current runlevel invoke-rc.d: policy-rc.d denied execution of start. Setting up libnsl2:arm64 (1.3.0-3+b3) ... Setting up libpython3.12-stdlib:arm64 (3.12.7-3) ... Setting up postgresql-client-17 (17.0-1+b2) ... update-alternatives: using /usr/share/postgresql/17/man/man1/psql.1.gz to provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto mode Setting up python3.12 (3.12.7-3) ... Setting up debhelper (13.20) ... Setting up libpython3-stdlib:arm64 (3.12.7-1) ... Setting up postgresql-17 (17.0-1+b2) ... Creating new PostgreSQL cluster 17/main ... /usr/lib/postgresql/17/bin/initdb -D /var/lib/postgresql/17/main --auth-local peer --auth-host scram-sha-256 --no-instructions The files belonging to this database system will be owned by user "postgres". This user must also own the server process. The database cluster will be initialized with locale "C.UTF-8". The default database encoding has accordingly been set to "UTF8". The default text search configuration will be set to "english". Data page checksums are disabled. fixing permissions on existing directory /var/lib/postgresql/17/main ... ok creating subdirectories ... ok selecting dynamic shared memory implementation ... posix selecting default "max_connections" ... 100 selecting default "shared_buffers" ... 128MB selecting default time zone ... /usr/share/zoneinfo/Etc/GMT-14 creating configuration files ... ok running bootstrap script ... ok performing post-bootstrap initialization ... ok syncing data to disk ... ok invoke-rc.d: could not determine current runlevel invoke-rc.d: policy-rc.d denied execution of start. Setting up python3 (3.12.7-1) ... Setting up python3-zipp (3.21.0-1) ... Setting up python3-autocommand (2.2.2-3) ... Setting up python3-markupsafe (2.1.5-1+b3) ... Setting up python3-roman (4.2-1) ... Setting up python3-jinja2 (3.1.3-1) ... Setting up python3-packaging (24.1-1) ... Setting up python3-certifi (2024.8.30+dfsg-1) ... Setting up python3-typeshed (0.0~git20231111.6764465-3) ... Setting up python3-snowballstemmer (2.2.0-4) ... Setting up python3-greenlet (3.1.0-1+b1) ... Setting up python3-idna (3.8-2) ... Setting up python3-psycopg2 (2.9.9-2+b1) ... Setting up python3-typing-extensions (4.12.2-2) ... Setting up python3-urllib3 (2.0.7-2) ... Setting up python3-pluggy (1.5.0-1) ... Setting up python3-infinity (1.5-3) ... Setting up python3-dateutil (2.9.0-3) ... Setting up postgresql (17+265) ... Setting up python3-imagesize (1.4.1-1) ... Setting up python3-more-itertools (10.5.0-1) ... Setting up python3-iniconfig (1.1.1-2) ... Setting up python3-jaraco.functools (4.1.0-1) ... Setting up python3-arrow (1.3.0-1.1) ... Setting up python3-jaraco.context (6.0.0-1) ... Setting up python3-defusedxml (0.7.1-2) ... Setting up python3-charset-normalizer (3.4.0-1) ... Setting up python3-pytest (8.3.3-1) ... Setting up python3-alabaster (0.7.16-0.1) ... Setting up python3-typeguard (4.4.1-1) ... Setting up python3-all (3.12.7-1) ... Setting up python3-sqlalchemy (2.0.32+ds1-1) ... Setting up python3-inflect (7.3.1-2) ... Setting up python3-jaraco.text (4.0.0-1) ... Setting up python3-pkg-resources (75.2.0-1) ... Setting up python3-setuptools (75.2.0-1) ... Setting up python3-babel (2.16.0-1) ... update-alternatives: using /usr/bin/pybabel-python3 to provide /usr/bin/pybabel (pybabel) in auto mode Setting up python3-pygments (2.18.0+dfsg-1) ... Setting up python3-chardet (5.2.0+dfsg-1) ... Setting up python3-requests (2.32.3+dfsg-1) ... Setting up dh-python (6.20241024) ... Setting up python3-sqlalchemy-utils (0.41.0-4) ... Processing triggers for libc-bin (2.40-3) ... Processing triggers for sgml-base (1.31) ... Setting up docutils-common (0.21.2+dfsg-2) ... Processing triggers for sgml-base (1.31) ... Setting up python3-docutils (0.21.2+dfsg-2) ... Setting up python3-sphinx (7.4.7-4) ... Processing triggers for ca-certificates (20240203) ... Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done. Running hooks in /etc/ca-certificates/update.d... done. Reading package lists... Building dependency tree... Reading state information... Reading extended state information... Initializing package states... Writing extended state information... Building tag database... -> Finished parsing the build-deps I: Building the package I: user script /srv/workspace/pbuilder/1889894/tmp/hooks/A99_set_merged_usr starting Not re-configuring usrmerge for unstable I: user script /srv/workspace/pbuilder/1889894/tmp/hooks/A99_set_merged_usr finished hostname: Name or service not known I: Running cd /build/reproducible-path/sqlalchemy-i18n-1.1.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../sqlalchemy-i18n_1.1.0-2_source.changes dpkg-buildpackage: info: source package sqlalchemy-i18n dpkg-buildpackage: info: source version 1.1.0-2 dpkg-buildpackage: info: source distribution unstable dpkg-buildpackage: info: source changed by Alexandre Detiste dpkg-source --before-build . dpkg-buildpackage: info: host architecture arm64 debian/rules clean dh clean --buildsystem=pybuild dh_auto_clean -O--buildsystem=pybuild I: pybuild base:311: python3.13 setup.py clean running clean removing '/build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.13_sqlalchemy-i18n/build' (and everything under it) 'build/bdist.linux-aarch64' does not exist -- can't clean it 'build/scripts-3.13' does not exist -- can't clean it I: pybuild base:311: python3.12 setup.py clean running clean removing '/build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build' (and everything under it) 'build/bdist.linux-aarch64' does not exist -- can't clean it 'build/scripts-3.12' does not exist -- can't clean it dh_autoreconf_clean -O--buildsystem=pybuild dh_clean -O--buildsystem=pybuild debian/rules binary dh binary --buildsystem=pybuild dh_update_autotools_config -O--buildsystem=pybuild dh_autoreconf -O--buildsystem=pybuild dh_auto_configure -O--buildsystem=pybuild I: pybuild base:311: python3.13 setup.py config running config I: pybuild base:311: python3.12 setup.py config running config debian/rules override_dh_auto_build make[1]: Entering directory '/build/reproducible-path/sqlalchemy-i18n-1.1.0' dh_auto_build I: pybuild base:311: /usr/bin/python3.13 setup.py build running build running build_py creating /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.13_sqlalchemy-i18n/build/sqlalchemy_i18n copying sqlalchemy_i18n/utils.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.13_sqlalchemy-i18n/build/sqlalchemy_i18n copying sqlalchemy_i18n/translatable.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.13_sqlalchemy-i18n/build/sqlalchemy_i18n copying sqlalchemy_i18n/manager.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.13_sqlalchemy-i18n/build/sqlalchemy_i18n copying sqlalchemy_i18n/expressions.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.13_sqlalchemy-i18n/build/sqlalchemy_i18n copying sqlalchemy_i18n/exc.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.13_sqlalchemy-i18n/build/sqlalchemy_i18n copying sqlalchemy_i18n/comparators.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.13_sqlalchemy-i18n/build/sqlalchemy_i18n copying sqlalchemy_i18n/builders.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.13_sqlalchemy-i18n/build/sqlalchemy_i18n copying sqlalchemy_i18n/__init__.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.13_sqlalchemy-i18n/build/sqlalchemy_i18n running egg_info creating SQLAlchemy_i18n.egg-info writing SQLAlchemy_i18n.egg-info/PKG-INFO writing dependency_links to SQLAlchemy_i18n.egg-info/dependency_links.txt writing requirements to SQLAlchemy_i18n.egg-info/requires.txt writing top-level names to SQLAlchemy_i18n.egg-info/top_level.txt writing manifest file 'SQLAlchemy_i18n.egg-info/SOURCES.txt' reading manifest file 'SQLAlchemy_i18n.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*.pyc' found under directory 'tests' warning: no previously-included files matching '*.pyc' found under directory 'docs' no previously-included directories found matching 'docs/_build' warning: no previously-included files found matching 'docs/_themes/.git' adding license file 'LICENSE' writing manifest file 'SQLAlchemy_i18n.egg-info/SOURCES.txt' I: pybuild base:311: /usr/bin/python3 setup.py build running build running build_py creating /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/sqlalchemy_i18n copying sqlalchemy_i18n/utils.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/sqlalchemy_i18n copying sqlalchemy_i18n/translatable.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/sqlalchemy_i18n copying sqlalchemy_i18n/manager.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/sqlalchemy_i18n copying sqlalchemy_i18n/expressions.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/sqlalchemy_i18n copying sqlalchemy_i18n/exc.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/sqlalchemy_i18n copying sqlalchemy_i18n/comparators.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/sqlalchemy_i18n copying sqlalchemy_i18n/builders.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/sqlalchemy_i18n copying sqlalchemy_i18n/__init__.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/sqlalchemy_i18n running egg_info writing SQLAlchemy_i18n.egg-info/PKG-INFO writing dependency_links to SQLAlchemy_i18n.egg-info/dependency_links.txt writing requirements to SQLAlchemy_i18n.egg-info/requires.txt writing top-level names to SQLAlchemy_i18n.egg-info/top_level.txt reading manifest file 'SQLAlchemy_i18n.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*.pyc' found under directory 'tests' warning: no previously-included files matching '*.pyc' found under directory 'docs' no previously-included directories found matching 'docs/_build' warning: no previously-included files found matching 'docs/_themes/.git' adding license file 'LICENSE' writing manifest file 'SQLAlchemy_i18n.egg-info/SOURCES.txt' PYTHONPATH=. http_proxy='127.0.0.1:9' python3 -m sphinx docs docs/_build/html Running Sphinx v7.4.7 loading translations [en]... done making output directory... done WARNING: html_static_path entry '_static' does not exist Converting `source_suffix = '.rst'` to `source_suffix = {'.rst': 'restructuredtext'}`. WARNING: The pre-Sphinx 1.0 'intersphinx_mapping' format is deprecated and will be removed in Sphinx 8. Update to the current format as described in the documentation. Hint: `intersphinx_mapping = {'': ('http://docs.python.org/', None)}`.https://www.sphinx-doc.org/en/master/usage/extensions/intersphinx.html#confval-intersphinx_mapping loading intersphinx inventory 'main_inventory' from http://docs.python.org/objects.inv... WARNING: failed to reach any of the inventories with the following issues: intersphinx inventory 'http://docs.python.org/objects.inv' not fetchable due to : HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://docs.python.org/objects.inv (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) building [mo]: targets for 0 po files that are out of date writing output... building [html]: targets for 7 source files that are out of date updating environment: [new config] 7 added, 0 changed, 0 removed reading sources... [ 14%] basic reading sources... [ 29%] config reading sources... [ 43%] index reading sources... [ 57%] installation reading sources... [ 71%] license reading sources... [ 86%] queries reading sources... [100%] quickstart /build/reproducible-path/sqlalchemy-i18n-1.1.0/docs/config.rst:84: WARNING: Literal block expected; none found. /build/reproducible-path/sqlalchemy-i18n-1.1.0/docs/config.rst:87: ERROR: Unexpected indentation. /build/reproducible-path/sqlalchemy-i18n-1.1.0/docs/config.rst:89: ERROR: Unexpected indentation. /build/reproducible-path/sqlalchemy-i18n-1.1.0/docs/config.rst:90: WARNING: Block quote ends without a blank line; unexpected unindent. /build/reproducible-path/sqlalchemy-i18n-1.1.0/docs/config.rst:91: WARNING: Block quote ends without a blank line; unexpected unindent. looking for now-outdated files... none found pickling environment... done checking consistency... done preparing documents... done copying assets... copying static files... done copying extra files... done copying assets: done writing output... [ 14%] basic writing output... [ 29%] config writing output... [ 43%] index writing output... [ 57%] installation writing output... [ 71%] license writing output... [ 86%] queries writing output... [100%] quickstart generating indices... genindex done highlighting module code... writing additional pages... search done dumping search index in English (code: en)... done dumping object inventory... done build succeeded, 8 warnings. The HTML pages are in docs/_build/html. make[1]: Leaving directory '/build/reproducible-path/sqlalchemy-i18n-1.1.0' debian/rules override_dh_auto_test make[1]: Entering directory '/build/reproducible-path/sqlalchemy-i18n-1.1.0' cp -r tests /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.13_sqlalchemy-i18n/build /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build python3 /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/tests/setup-db-and-run-tests.py The files belonging to this database system will be owned by user "pbuilder2". This user must also own the server process. The database cluster will be initialized with locale "C". The default database encoding has accordingly been set to "SQL_ASCII". The default text search configuration will be set to "english". Data page checksums are disabled. creating directory /tmp/tmp27r1p_zl/data ... ok creating subdirectories ... ok selecting dynamic shared memory implementation ... posix selecting default "max_connections" ... 100 selecting default "shared_buffers" ... 128MB selecting default time zone ... /usr/share/zoneinfo/Etc/GMT-14 creating configuration files ... ok running bootstrap script ... ok performing post-bootstrap initialization ... ok syncing data to disk ... ok Success. You can now start the database server using: /usr/lib/postgresql/17/bin/pg_ctl -D /tmp/tmp27r1p_zl/data -l logfile start 2025-12-18 08:40:05.538 /USR/SHARE/ZONEINFO/ETC/GMT [1919561] LOG: starting PostgreSQL 17.0 (Debian 17.0-1+b2) on aarch64-unknown-linux-gnu, compiled by gcc (Debian 14.2.0-6) 14.2.0, 64-bit 2025-12-18 08:40:05.538 /USR/SHARE/ZONEINFO/ETC/GMT [1919561] LOG: listening on IPv4 address "127.0.0.1", port 46963 2025-12-18 08:40:05.539 /USR/SHARE/ZONEINFO/ETC/GMT [1919561] LOG: listening on Unix socket "/tmp/tmp27r1p_zl/tmp/.s.PGSQL.46963" 2025-12-18 08:40:05.542 /USR/SHARE/ZONEINFO/ETC/GMT [1919579] LOG: database system was shut down at 2025-12-18 08:40:05 /USR/SHARE/ZONEINFO/ETC/GMT 2025-12-18 08:40:05.550 /USR/SHARE/ZONEINFO/ETC/GMT [1919561] LOG: database system is ready to accept connections running initdb starting server ============================= test session starts ============================== platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 rootdir: /build/reproducible-path/sqlalchemy-i18n-1.1.0 plugins: typeguard-4.4.1 collected 119 items tests/test_common_base_class.py EE [ 1%] tests/test_comparator.py EEEE [ 5%] tests/test_composite_primary_key.py EE [ 6%] tests/test_configuration.py EE [ 8%] tests/test_current_translation_property.py EEEEEE [ 13%] tests/test_current_translation_property_with_locale.py EE [ 15%] tests/test_custom_base_class.py E [ 15%] tests/test_expressions.py . [ 16%] tests/test_fallback_locale_as_callable.py EEEE [ 20%] tests/test_fallback_locale_without_class_default.py EEEE [ 23%] tests/test_fallback_translation.py EEEEEE [ 28%] tests/test_find_translations.py EEEE [ 31%] tests/test_hybrid_property_as_dynamic_source_locale.py EE [ 33%] tests/test_hybrid_property_exclusion.py FE [ 35%] tests/test_join_expressions.py EEEEEEEE [ 42%] tests/test_joined_loading.py EEEEEEEEEE [ 50%] tests/test_joined_table_inheritance.py EEEEEEEEEEEEEEEE [ 63%] tests/test_property_collision.py . [ 64%] tests/test_relationships.py EE [ 66%] tests/test_translatable.py EEEEEEEEEEEEEEEE [ 79%] tests/test_translation_auto_creation.py EE [ 81%] tests/test_translation_auto_creation_with_non_nullables.py EE [ 83%] tests/test_translation_mapping.py EEEE2025-12-18 08:40:25.724 /USR/SHARE/ZONEINFO/ETC/GMT [1925234] FATAL: sorry, too many clients already E2025-12-18 08:40:26.082 /USR/SHARE/ZONEINFO/ETC/GMT [1925260] FATAL: sorry, too many clients already E2025-12-18 08:40:26.462 /USR/SHARE/ZONEINFO/ETC/GMT [1925285] FATAL: sorry, too many clients already E2025-12-18 08:40:26.811 /USR/SHARE/ZONEINFO/ETC/GMT [1925303] FATAL: sorry, too many clients already E2025-12-18 08:40:27.179 /USR/SHARE/ZONEINFO/ETC/GMT [1925347] FATAL: sorry, too many clients already E2025-12-18 08:40:27.534 /USR/SHARE/ZONEINFO/ETC/GMT [1925455] FATAL: sorry, too many clients already E2025-12-18 08:40:27.896 /USR/SHARE/ZONEINFO/ETC/GMT [1925506] FATAL: sorry, too many clients already E2025-12-18 08:40:28.250 /USR/SHARE/ZONEINFO/ETC/GMT [1925709] FATAL: sorry, too many clients already E2025-12-18 08:40:28.604 /USR/SHARE/ZONEINFO/ETC/GMT [1925891] FATAL: sorry, too many clients already E2025-12-18 08:40:28.979 /USR/SHARE/ZONEINFO/ETC/GMT [1925995] FATAL: sorry, too many clients already E2025-12-18 08:40:29.332 /USR/SHARE/ZONEINFO/ETC/GMT [1926061] FATAL: sorry, too many clients already E2025-12-18 08:40:29.854 /USR/SHARE/ZONEINFO/ETC/GMT [1926384] FATAL: sorry, too many clients already E2025-12-18 08:40:30.209 /USR/SHARE/ZONEINFO/ETC/GMT [1926628] FATAL: sorry, too many clients already E2025-12-18 08:40:30.576 /USR/SHARE/ZONEINFO/ETC/GMT [1926921] FATAL: sorry, too many clients already E2025-12-18 08:40:30.932 /USR/SHARE/ZONEINFO/ETC/GMT [1927145] FATAL: sorry, too many clients already E2025-12-18 08:40:31.291 /USR/SHARE/ZONEINFO/ETC/GMT [1927235] FATAL: sorry, too many clients already E [100%] ==================================== ERRORS ==================================== _ ERROR at setup of TestDeclarative.test_translatable_dict_copied_to_each_child_class _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'TextItem' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError _ ERROR at setup of TestClassic.test_translatable_dict_copied_to_each_child_class _ self = def create_mappers(self): > sa.orm.mapper(self.TextItem, self.textitems) tests/test_common_base_class.py:105: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.TextItem'>, Table('textitems', MetaData(), Column('id', Integer(), table=, primary_key=True, nullable=False), schema=None)) kw = {} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError _ ERROR at setup of TestDeclarative.test_attribute_accessor_for_unknown_locale _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError __________ ERROR at setup of TestDeclarative.test_attribute_accessors __________ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError ___ ERROR at setup of TestClassic.test_attribute_accessor_for_unknown_locale ___ self = method = > def setup_method(self, method): self.metadata = sa.MetaData() self.engine = sa.create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.create_tables() self.create_models() > self.create_mappers() tests/__init__.py:140: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:213: in create_mappers sa.orm.mapper(self.Article, self.article) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) kw = {} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError ____________ ERROR at setup of TestClassic.test_attribute_accessors ____________ self = method = > def setup_method(self, method): self.metadata = sa.MetaData() self.engine = sa.create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.create_tables() self.create_models() > self.create_mappers() tests/__init__.py:140: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:213: in create_mappers sa.orm.mapper(self.Article, self.article) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) kw = {} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError _____________ ERROR at setup of TestDeclarative.test_relationships _____________ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError _______________ ERROR at setup of TestClassic.test_relationships _______________ self = method = > def setup_method(self, method): self.metadata = sa.MetaData() self.engine = sa.create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.create_tables() self.create_models() > self.create_mappers() tests/__init__.py:140: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:213: in create_mappers sa.orm.mapper(self.Article, self.article) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.Article'>, Table('article', MetaData(), C...y_key=True, nullable=False), Column('id2', Integer(), table=
, primary_key=True, nullable=False), schema=None)) kw = {} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError _ ERROR at setup of TestTranslationBaseCustomization.test_customize_foreign_key_args _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['fi', 'en'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError _ ERROR at setup of TestTranslationBaseCustomization.test_customize_relationships_args _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['fi', 'en'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError __________ ERROR at setup of TestDeclarative.test_as_object_property ___________ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['fi', 'en'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError ___________ ERROR at setup of TestDeclarative.test_as_class_property ___________ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError ________________ ERROR at setup of TestDeclarative.test_setter _________________ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError ____________ ERROR at setup of TestClassic.test_as_object_property _____________ self = method = > def setup_method(self, method): self.metadata = sa.MetaData() self.engine = sa.create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.create_tables() self.create_models() > self.create_mappers() tests/__init__.py:140: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:213: in create_mappers sa.orm.mapper(self.Article, self.article) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) kw = {} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError _____________ ERROR at setup of TestClassic.test_as_class_property _____________ self = method = > def setup_method(self, method): self.metadata = sa.MetaData() self.engine = sa.create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.create_tables() self.create_models() > self.create_mappers() tests/__init__.py:140: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:213: in create_mappers sa.orm.mapper(self.Article, self.article) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) kw = {} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError __________________ ERROR at setup of TestClassic.test_setter ___________________ self = method = > def setup_method(self, method): self.metadata = sa.MetaData() self.engine = sa.create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.create_tables() self.create_models() > self.create_mappers() tests/__init__.py:140: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:213: in create_mappers sa.orm.mapper(self.Article, self.article) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) kw = {} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError ___ ERROR at setup of TestDeclarative.test_converts_locale_object_to_unicode ___ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError _____ ERROR at setup of TestClassic.test_converts_locale_object_to_unicode _____ self = method = > def setup_method(self, method): self.metadata = sa.MetaData() self.engine = sa.create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.create_tables() self.create_models() > self.create_mappers() tests/__init__.py:140: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:213: in create_mappers sa.orm.mapper(self.Article, self.article) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.Article'>, Table('arti...able=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) kw = {} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError _ ERROR at setup of TestDeclarative.test_translatable_dict_copied_to_each_child_class _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError _ ERROR at setup of TestDeclarative.test_hybrid_properties_support_callable_fallback_locales _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError ____________ ERROR at setup of TestDeclarative.test_locale_fallback ____________ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError _ ERROR at setup of TestClassic.test_hybrid_properties_support_callable_fallback_locales _ self = method = > def setup_method(self, method): self.metadata = sa.MetaData() self.engine = sa.create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.create_tables() self.create_models() > self.create_mappers() tests/__init__.py:140: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:213: in create_mappers sa.orm.mapper(self.Article, self.article) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.Article'>, Table('article', MetaDat...able=False), Column('locale', CHAR(length=2), table=
, default=ScalarElementColumnDefault('en')), schema=None)) kw = {} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError ______________ ERROR at setup of TestClassic.test_locale_fallback ______________ self = method = > def setup_method(self, method): self.metadata = sa.MetaData() self.engine = sa.create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.create_tables() self.create_models() > self.create_mappers() tests/__init__.py:140: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:213: in create_mappers sa.orm.mapper(self.Article, self.article) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.Article'>, Table('article', MetaDat...able=False), Column('locale', CHAR(length=2), table=
, default=ScalarElementColumnDefault('en')), schema=None)) kw = {} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError _ ERROR at setup of TestDeclarative.test_hybrid_properties_support_callable_fallback_locales _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError ____________ ERROR at setup of TestDeclarative.test_locale_fallback ____________ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError _ ERROR at setup of TestClassic.test_hybrid_properties_support_callable_fallback_locales _ self = method = > def setup_method(self, method): self.metadata = sa.MetaData() self.engine = sa.create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.create_tables() self.create_models() > self.create_mappers() tests/__init__.py:140: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:213: in create_mappers sa.orm.mapper(self.Article, self.article) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.Article'>, Table('article...able=False), Column('locale', CHAR(length=2), table=
, default=ScalarElementColumnDefault('en')), schema=None)) kw = {} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError ______________ ERROR at setup of TestClassic.test_locale_fallback ______________ self = method = > def setup_method(self, method): self.metadata = sa.MetaData() self.engine = sa.create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.create_tables() self.create_models() > self.create_mappers() tests/__init__.py:140: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:213: in create_mappers sa.orm.mapper(self.Article, self.article) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.Article'>, Table('article...able=False), Column('locale', CHAR(length=2), table=
, default=ScalarElementColumnDefault('en')), schema=None)) kw = {} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError _ ERROR at setup of TestDeclarative.test_as_object_property_with_force_locale __ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError ___________ ERROR at setup of TestDeclarative.test_as_class_property ___________ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError ________________ ERROR at setup of TestDeclarative.test_setter _________________ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError ___ ERROR at setup of TestClassic.test_as_object_property_with_force_locale ____ self = method = > def setup_method(self, method): self.metadata = sa.MetaData() self.engine = sa.create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.create_tables() self.create_models() > self.create_mappers() tests/__init__.py:140: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:213: in create_mappers sa.orm.mapper(self.Article, self.article) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) kw = {} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError _____________ ERROR at setup of TestClassic.test_as_class_property _____________ self = method = > def setup_method(self, method): self.metadata = sa.MetaData() self.engine = sa.create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.create_tables() self.create_models() > self.create_mappers() tests/__init__.py:140: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:213: in create_mappers sa.orm.mapper(self.Article, self.article) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) kw = {} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError __________________ ERROR at setup of TestClassic.test_setter ___________________ self = method = > def setup_method(self, method): self.metadata = sa.MetaData() self.engine = sa.create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.create_tables() self.create_models() > self.create_mappers() tests/__init__.py:140: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:213: in create_mappers sa.orm.mapper(self.Article, self.article) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) kw = {} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError _________ ERROR at setup of TestDeclarative.test_with_full_confidence __________ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError ________ ERROR at setup of TestDeclarative.test_with_varying_confidence ________ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi', 'sv'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError ___________ ERROR at setup of TestClassic.test_with_full_confidence ____________ self = method = > def setup_method(self, method): self.metadata = sa.MetaData() self.engine = sa.create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.create_tables() self.create_models() > self.create_mappers() tests/__init__.py:140: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:213: in create_mappers sa.orm.mapper(self.Article, self.article) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) kw = {} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError __________ ERROR at setup of TestClassic.test_with_varying_confidence __________ self = method = > def setup_method(self, method): self.metadata = sa.MetaData() self.engine = sa.create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.create_tables() self.create_models() > self.create_mappers() tests/__init__.py:140: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:213: in create_mappers sa.orm.mapper(self.Article, self.article) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) kw = {} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError __ ERROR at setup of TestDeclarative.test_joinedload_for_current_translation ___ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): > DeclarativeTestCase.setup_method(self, method) tests/test_hybrid_property_as_dynamic_source_locale.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:57: in setup_method sa.orm.configure_mappers() /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi', 'sv'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError ____ ERROR at setup of TestClassic.test_joinedload_for_current_translation _____ self = method = > def setup_method(self, method): > ClassicTestCase.setup_method(self, method) tests/test_hybrid_property_as_dynamic_source_locale.py:61: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:140: in setup_method self.create_mappers() tests/__init__.py:213: in create_mappers sa.orm.mapper(self.Article, self.article) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.Article'>, Table('arti...
), Column('_locale', CHAR(length=2), table=
, default=ScalarElementColumnDefault('en')), schema=None)) kw = {} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError ____ ERROR at setup of TestClassic.test_does_not_generate_hybrid_properties ____ self = method = > def setup_method(self, method): self.metadata = sa.MetaData() self.engine = sa.create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.create_tables() self.create_models() > self.create_mappers() tests/__init__.py:140: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:213: in create_mappers sa.orm.mapper(self.Article, self.article) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.Article'>, Table('article', MetaData(...e=
, default=ScalarElementColumnDefault('en')), Column('word_count', Integer(), table=
), schema=None)) kw = {} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError ___ ERROR at setup of TestDeclarative.test_current_translation_as_expression ___ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError _________ ERROR at setup of TestDeclarative.test_order_by_translation __________ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError _____ ERROR at setup of TestDeclarative.test_fallback_locale_as_expression _____ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError _______________ ERROR at setup of TestDeclarative.test_querying ________________ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError _____ ERROR at setup of TestClassic.test_current_translation_as_expression _____ self = method = > def setup_method(self, method): self.metadata = sa.MetaData() self.engine = sa.create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.create_tables() self.create_models() > self.create_mappers() tests/__init__.py:140: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:213: in create_mappers sa.orm.mapper(self.Article, self.article) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) kw = {} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError ___________ ERROR at setup of TestClassic.test_order_by_translation ____________ self = method = > def setup_method(self, method): self.metadata = sa.MetaData() self.engine = sa.create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.create_tables() self.create_models() > self.create_mappers() tests/__init__.py:140: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:213: in create_mappers sa.orm.mapper(self.Article, self.article) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) kw = {} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError _______ ERROR at setup of TestClassic.test_fallback_locale_as_expression _______ self = method = > def setup_method(self, method): self.metadata = sa.MetaData() self.engine = sa.create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.create_tables() self.create_models() > self.create_mappers() tests/__init__.py:140: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:213: in create_mappers sa.orm.mapper(self.Article, self.article) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) kw = {} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError _________________ ERROR at setup of TestClassic.test_querying __________________ self = method = > def setup_method(self, method): self.metadata = sa.MetaData() self.engine = sa.create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.create_tables() self.create_models() > self.create_mappers() tests/__init__.py:140: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:213: in create_mappers sa.orm.mapper(self.Article, self.article) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) kw = {} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError __ ERROR at setup of TestDeclarative.test_joinedload_for_current_translation ___ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): > DeclarativeTestCase.setup_method(self, method) tests/test_joined_loading.py:59: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:57: in setup_method sa.orm.configure_mappers() /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError _ ERROR at setup of TestDeclarative.test_contains_eager_for_current_translation _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): > DeclarativeTestCase.setup_method(self, method) tests/test_joined_loading.py:59: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:57: in setup_method sa.orm.configure_mappers() /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError ___ ERROR at setup of TestDeclarative.test_joinedload_for_single_translation ___ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): > DeclarativeTestCase.setup_method(self, method) tests/test_joined_loading.py:59: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:57: in setup_method sa.orm.configure_mappers() /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError _____ ERROR at setup of TestDeclarative.test_joinedload_for_attr_accessor ______ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): > DeclarativeTestCase.setup_method(self, method) tests/test_joined_loading.py:59: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:57: in setup_method sa.orm.configure_mappers() /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError ____ ERROR at setup of TestDeclarative.test_joinedload_for_all_translations ____ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): > DeclarativeTestCase.setup_method(self, method) tests/test_joined_loading.py:59: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:57: in setup_method sa.orm.configure_mappers() /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError ____ ERROR at setup of TestClassic.test_joinedload_for_current_translation _____ self = method = > def setup_method(self, method): > ClassicTestCase.setup_method(self, method) tests/test_joined_loading.py:71: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:140: in setup_method self.create_mappers() tests/__init__.py:213: in create_mappers sa.orm.mapper(self.Article, self.article) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) kw = {} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError __ ERROR at setup of TestClassic.test_contains_eager_for_current_translation ___ self = method = > def setup_method(self, method): > ClassicTestCase.setup_method(self, method) tests/test_joined_loading.py:71: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:140: in setup_method self.create_mappers() tests/__init__.py:213: in create_mappers sa.orm.mapper(self.Article, self.article) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) kw = {} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError _____ ERROR at setup of TestClassic.test_joinedload_for_single_translation _____ self = method = > def setup_method(self, method): > ClassicTestCase.setup_method(self, method) tests/test_joined_loading.py:71: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:140: in setup_method self.create_mappers() tests/__init__.py:213: in create_mappers sa.orm.mapper(self.Article, self.article) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) kw = {} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError _______ ERROR at setup of TestClassic.test_joinedload_for_attr_accessor ________ self = method = > def setup_method(self, method): > ClassicTestCase.setup_method(self, method) tests/test_joined_loading.py:71: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:140: in setup_method self.create_mappers() tests/__init__.py:213: in create_mappers sa.orm.mapper(self.Article, self.article) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) kw = {} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError ______ ERROR at setup of TestClassic.test_joinedload_for_all_translations ______ self = method = > def setup_method(self, method): > ClassicTestCase.setup_method(self, method) tests/test_joined_loading.py:71: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:140: in setup_method self.create_mappers() tests/__init__.py:213: in create_mappers sa.orm.mapper(self.Article, self.article) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) kw = {} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError ________ ERROR at setup of TestDeclarative.test_auto_creates_relations _________ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property mapper._adapt_inherited_property(key, prop, init) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property self._configure_property(key, prop, init=False, setparent=False) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property prop.instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class attributes.register_descriptor( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor descriptor = InstrumentedAttribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ self.dispatch._update(base[key].dispatch) /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError ___ ERROR at setup of TestDeclarative.test_auto_creates_current_translation ____ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property mapper._adapt_inherited_property(key, prop, init) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property self._configure_property(key, prop, init=False, setparent=False) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property prop.instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class attributes.register_descriptor( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor descriptor = InstrumentedAttribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ self.dispatch._update(base[key].dispatch) /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError ________ ERROR at setup of TestDeclarative.test_translatable_attributes ________ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property mapper._adapt_inherited_property(key, prop, init) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property self._configure_property(key, prop, init=False, setparent=False) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property prop.instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class attributes.register_descriptor( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor descriptor = InstrumentedAttribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ self.dispatch._update(base[key].dispatch) /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError _______ ERROR at setup of TestDeclarative.test_inherits_child_properties _______ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property mapper._adapt_inherited_property(key, prop, init) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property self._configure_property(key, prop, init=False, setparent=False) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property prop.instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class attributes.register_descriptor( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor descriptor = InstrumentedAttribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ self.dispatch._update(base[key].dispatch) /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError __________ ERROR at setup of TestDeclarative.test_translated_columns ___________ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property mapper._adapt_inherited_property(key, prop, init) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property self._configure_property(key, prop, init=False, setparent=False) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property prop.instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class attributes.register_descriptor( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor descriptor = InstrumentedAttribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ self.dispatch._update(base[key].dispatch) /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError __________ ERROR at setup of TestDeclarative.test_property_delegators __________ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property mapper._adapt_inherited_property(key, prop, init) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property self._configure_property(key, prop, init=False, setparent=False) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property prop.instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class attributes.register_descriptor( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor descriptor = InstrumentedAttribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ self.dispatch._update(base[key].dispatch) /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError ______________ ERROR at setup of TestDeclarative.test_table_name _______________ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property mapper._adapt_inherited_property(key, prop, init) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property self._configure_property(key, prop, init=False, setparent=False) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property prop.instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class attributes.register_descriptor( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor descriptor = InstrumentedAttribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ self.dispatch._update(base[key].dispatch) /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError _________ ERROR at setup of TestDeclarative.test_inherits_parent_table _________ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property mapper._adapt_inherited_property(key, prop, init) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property self._configure_property(key, prop, init=False, setparent=False) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property prop.instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class attributes.register_descriptor( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor descriptor = InstrumentedAttribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ self.dispatch._update(base[key].dispatch) /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError __________ ERROR at setup of TestClassic.test_auto_creates_relations ___________ self = def create_mappers(self): > sa.orm.mapper(self.TextItem, self.text_item, polymorphic_on=self.text_item.c.discriminator) tests/test_joined_table_inheritance.py:155: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError _____ ERROR at setup of TestClassic.test_auto_creates_current_translation ______ self = def create_mappers(self): > sa.orm.mapper(self.TextItem, self.text_item, polymorphic_on=self.text_item.c.discriminator) tests/test_joined_table_inheritance.py:155: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError __________ ERROR at setup of TestClassic.test_translatable_attributes __________ self = def create_mappers(self): > sa.orm.mapper(self.TextItem, self.text_item, polymorphic_on=self.text_item.c.discriminator) tests/test_joined_table_inheritance.py:155: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError _________ ERROR at setup of TestClassic.test_inherits_child_properties _________ self = def create_mappers(self): > sa.orm.mapper(self.TextItem, self.text_item, polymorphic_on=self.text_item.c.discriminator) tests/test_joined_table_inheritance.py:155: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError ____________ ERROR at setup of TestClassic.test_translated_columns _____________ self = def create_mappers(self): > sa.orm.mapper(self.TextItem, self.text_item, polymorphic_on=self.text_item.c.discriminator) tests/test_joined_table_inheritance.py:155: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError ____________ ERROR at setup of TestClassic.test_property_delegators ____________ self = def create_mappers(self): > sa.orm.mapper(self.TextItem, self.text_item, polymorphic_on=self.text_item.c.discriminator) tests/test_joined_table_inheritance.py:155: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError ________________ ERROR at setup of TestClassic.test_table_name _________________ self = def create_mappers(self): > sa.orm.mapper(self.TextItem, self.text_item, polymorphic_on=self.text_item.c.discriminator) tests/test_joined_table_inheritance.py:155: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError ___________ ERROR at setup of TestClassic.test_inherits_parent_table ___________ self = def create_mappers(self): > sa.orm.mapper(self.TextItem, self.text_item, polymorphic_on=self.text_item.c.discriminator) tests/test_joined_table_inheritance.py:155: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError ___________ ERROR at setup of TestDeclarative.test_nullify_relation ____________ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Category' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError _____________ ERROR at setup of TestClassic.test_nullify_relation ______________ self = def create_mappers(self): > sa.orm.mapper(self.Article, self.article) tests/test_relationships.py:101: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.Article'>, Table('article', MetaData(), Column('i...), table=
, primary_key=True, nullable=False), Column('content', UnicodeText(), table=
), schema=None)) kw = {} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError ________ ERROR at setup of TestDeclarative.test_auto_creates_relations _________ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError ________ ERROR at setup of TestDeclarative.test_translatable_attributes ________ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError _______ ERROR at setup of TestDeclarative.test_relationship_consistency ________ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError __________ ERROR at setup of TestDeclarative.test_property_delegators __________ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError ____________ ERROR at setup of TestDeclarative.test_commit_session _____________ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError ________________ ERROR at setup of TestDeclarative.test_delete _________________ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError __________ ERROR at setup of TestDeclarative.test_translated_columns ___________ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError _ ERROR at setup of TestDeclarative.test_appends_locale_column_to_translation_table _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError __________ ERROR at setup of TestClassic.test_auto_creates_relations ___________ self = method = > def setup_method(self, method): self.metadata = sa.MetaData() self.engine = sa.create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.create_tables() self.create_models() > self.create_mappers() tests/__init__.py:140: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:213: in create_mappers sa.orm.mapper(self.Article, self.article) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) kw = {} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError __________ ERROR at setup of TestClassic.test_translatable_attributes __________ self = method = > def setup_method(self, method): self.metadata = sa.MetaData() self.engine = sa.create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.create_tables() self.create_models() > self.create_mappers() tests/__init__.py:140: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:213: in create_mappers sa.orm.mapper(self.Article, self.article) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) kw = {} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError _________ ERROR at setup of TestClassic.test_relationship_consistency __________ self = method = > def setup_method(self, method): self.metadata = sa.MetaData() self.engine = sa.create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.create_tables() self.create_models() > self.create_mappers() tests/__init__.py:140: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:213: in create_mappers sa.orm.mapper(self.Article, self.article) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) kw = {} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError ____________ ERROR at setup of TestClassic.test_property_delegators ____________ self = method = > def setup_method(self, method): self.metadata = sa.MetaData() self.engine = sa.create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.create_tables() self.create_models() > self.create_mappers() tests/__init__.py:140: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:213: in create_mappers sa.orm.mapper(self.Article, self.article) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) kw = {} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError ______________ ERROR at setup of TestClassic.test_commit_session _______________ self = method = > def setup_method(self, method): self.metadata = sa.MetaData() self.engine = sa.create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.create_tables() self.create_models() > self.create_mappers() tests/__init__.py:140: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:213: in create_mappers sa.orm.mapper(self.Article, self.article) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) kw = {} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError __________________ ERROR at setup of TestClassic.test_delete ___________________ self = method = > def setup_method(self, method): self.metadata = sa.MetaData() self.engine = sa.create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.create_tables() self.create_models() > self.create_mappers() tests/__init__.py:140: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:213: in create_mappers sa.orm.mapper(self.Article, self.article) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) kw = {} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError ____________ ERROR at setup of TestClassic.test_translated_columns _____________ self = method = > def setup_method(self, method): self.metadata = sa.MetaData() self.engine = sa.create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.create_tables() self.create_models() > self.create_mappers() tests/__init__.py:140: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:213: in create_mappers sa.orm.mapper(self.Article, self.article) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) kw = {} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError _ ERROR at setup of TestClassic.test_appends_locale_column_to_translation_table _ self = method = > def setup_method(self, method): self.metadata = sa.MetaData() self.engine = sa.create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.create_tables() self.create_models() > self.create_mappers() tests/__init__.py:140: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:213: in create_mappers sa.orm.mapper(self.Article, self.article) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) kw = {} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError ___ ERROR at setup of TestDeclarative.test_auto_creates_translation_objects ____ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): > DeclarativeTestCase.setup_method(self, method) tests/test_translation_auto_creation.py:21: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:57: in setup_method sa.orm.configure_mappers() /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError _____ ERROR at setup of TestClassic.test_auto_creates_translation_objects ______ self = method = > def setup_method(self, method): > ClassicTestCase.setup_method(self, method) tests/test_translation_auto_creation.py:31: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:140: in setup_method self.create_mappers() tests/__init__.py:213: in create_mappers sa.orm.mapper(self.Article, self.article) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) kw = {} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError _ ERROR at setup of TestDeclarative.test_auto_sets_nullables_as_empty_strings __ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'ExtendedArticle' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): > DeclarativeTestCase.setup_method(self, method) tests/test_translation_auto_creation_with_non_nullables.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:57: in setup_method sa.orm.configure_mappers() /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property mapper._adapt_inherited_property(key, prop, init) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property self._configure_property(key, prop, init=False, setparent=False) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property prop.instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class attributes.register_descriptor( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor descriptor = InstrumentedAttribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ self.dispatch._update(base[key].dispatch) /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError ___ ERROR at setup of TestClassic.test_auto_sets_nullables_as_empty_strings ____ self = method = > def setup_method(self, method): > ClassicTestCase.setup_method(self, method) tests/test_translation_auto_creation_with_non_nullables.py:75: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/__init__.py:140: in setup_method self.create_mappers() tests/test_translation_auto_creation_with_non_nullables.py:135: in create_mappers sa.orm.mapper(self.Article, self.article, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ arg = (.Article'>, Table('...ription', UnicodeText(), table=
), Column('discriminator', Unicode(length=255), table=
), schema=None)) kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=
)} def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: """Placeholder for the now-removed ``mapper()`` function. Classical mappings should be performed using the :meth:`_orm.registry.map_imperatively` method. This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case of using the ``mapper()`` function as a target for ORM event listeners, which failed to be marked as deprecated in the 1.4 series. Global ORM mapper listeners should instead use the :class:`_orm.Mapper` class as the target. .. versionchanged:: 2.0 The ``mapper()`` function was removed; the symbol remains temporarily as a placeholder for the event listening use case. """ > raise InvalidRequestError( "The 'sqlalchemy.orm.mapper()' function is removed as of " "SQLAlchemy 2.0. Use the " "'sqlalchemy.orm.registry.map_imperatively()` " "method of the ``sqlalchemy.orm.registry`` class to perform " "classical mapping." ) E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError ____________ ERROR at setup of TestDeclarative.test_proxy_contains _____________ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError _ ERROR at setup of TestDeclarative.test_translation_mapping_attribute_getter __ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError _ ERROR at setup of TestDeclarative.test_attribute_accessor_for_unknown_locale _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError __________ ERROR at setup of TestDeclarative.test_proxy_not_contains ___________ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True self.connection = self.engine.connect() self.connection.query_count = 0 self.Model = declarative_base() self.create_models() if self.configure_mappers: > sa.orm.configure_mappers() tests/__init__.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers _configure_registries(_all_registries(), cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError _________________ ERROR at setup of TestDeclarative.test_items _________________ self = engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) connection = None, _has_events = None, _allow_revalidate = True _allow_autobegin = True def __init__( self, engine: Engine, connection: Optional[PoolProxiedConnection] = None, _has_events: Optional[bool] = None, _allow_revalidate: bool = True, _allow_autobegin: bool = True, ): """Construct a new Connection.""" self.engine = engine self.dialect = dialect = engine.dialect if connection is None: try: > self._dbapi_connection = engine.raw_connection() /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection return self.pool.connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect return _ConnectionFairy._checkout(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout rec = pool._do_get() /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get return self._create_connection() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection return _ConnectionRecord(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ self.__connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect return dialect.connect(*cargs, **cparams) /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect return self.loaded_dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' connection_factory = None, cursor_factory = None kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 46963 failed: FATAL: sorry, too many clients already /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True > self.connection = self.engine.connect() tests/__init__.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect return self._connection_cls(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ Connection._handle_dbapi_exception_noconnection( /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection raise sqlalchemy_exception.with_traceback(exc_info[2]) from e /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ self._dbapi_connection = engine.raw_connection() /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection return self.pool.connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect return _ConnectionFairy._checkout(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout rec = pool._do_get() /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get return self._create_connection() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection return _ConnectionRecord(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ self.__connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect return dialect.connect(*cargs, **cparams) /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect return self.loaded_dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' connection_factory = None, cursor_factory = None kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 46963 failed: FATAL: sorry, too many clients already E E (Background on this error at: https://sqlalche.me/e/20/e3q8) /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError _______________ ERROR at setup of TestDeclarative.test_iteritems _______________ self = engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) connection = None, _has_events = None, _allow_revalidate = True _allow_autobegin = True def __init__( self, engine: Engine, connection: Optional[PoolProxiedConnection] = None, _has_events: Optional[bool] = None, _allow_revalidate: bool = True, _allow_autobegin: bool = True, ): """Construct a new Connection.""" self.engine = engine self.dialect = dialect = engine.dialect if connection is None: try: > self._dbapi_connection = engine.raw_connection() /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection return self.pool.connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect return _ConnectionFairy._checkout(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout rec = pool._do_get() /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get return self._create_connection() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection return _ConnectionRecord(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ self.__connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect return dialect.connect(*cargs, **cparams) /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect return self.loaded_dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' connection_factory = None, cursor_factory = None kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 46963 failed: FATAL: sorry, too many clients already /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True > self.connection = self.engine.connect() tests/__init__.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect return self._connection_cls(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ Connection._handle_dbapi_exception_noconnection( /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection raise sqlalchemy_exception.with_traceback(exc_info[2]) from e /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ self._dbapi_connection = engine.raw_connection() /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection return self.pool.connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect return _ConnectionFairy._checkout(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout rec = pool._do_get() /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get return self._create_connection() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection return _ConnectionRecord(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ self.__connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect return dialect.connect(*cargs, **cparams) /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect return self.loaded_dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' connection_factory = None, cursor_factory = None kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 46963 failed: FATAL: sorry, too many clients already E E (Background on this error at: https://sqlalche.me/e/20/e3q8) /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError _______________ ERROR at setup of TestDeclarative.test_set_item ________________ self = engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) connection = None, _has_events = None, _allow_revalidate = True _allow_autobegin = True def __init__( self, engine: Engine, connection: Optional[PoolProxiedConnection] = None, _has_events: Optional[bool] = None, _allow_revalidate: bool = True, _allow_autobegin: bool = True, ): """Construct a new Connection.""" self.engine = engine self.dialect = dialect = engine.dialect if connection is None: try: > self._dbapi_connection = engine.raw_connection() /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection return self.pool.connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect return _ConnectionFairy._checkout(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout rec = pool._do_get() /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get return self._create_connection() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection return _ConnectionRecord(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ self.__connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect return dialect.connect(*cargs, **cparams) /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect return self.loaded_dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' connection_factory = None, cursor_factory = None kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 46963 failed: FATAL: sorry, too many clients already /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True > self.connection = self.engine.connect() tests/__init__.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect return self._connection_cls(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ Connection._handle_dbapi_exception_noconnection( /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection raise sqlalchemy_exception.with_traceback(exc_info[2]) from e /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ self._dbapi_connection = engine.raw_connection() /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection return self.pool.connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect return _ConnectionFairy._checkout(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout rec = pool._do_get() /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get return self._create_connection() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection return _ConnectionRecord(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ self.__connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect return dialect.connect(*cargs, **cparams) /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect return self.loaded_dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' connection_factory = None, cursor_factory = None kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 46963 failed: FATAL: sorry, too many clients already E E (Background on this error at: https://sqlalche.me/e/20/e3q8) /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError _________________ ERROR at setup of TestDeclarative.test_repr __________________ self = engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) connection = None, _has_events = None, _allow_revalidate = True _allow_autobegin = True def __init__( self, engine: Engine, connection: Optional[PoolProxiedConnection] = None, _has_events: Optional[bool] = None, _allow_revalidate: bool = True, _allow_autobegin: bool = True, ): """Construct a new Connection.""" self.engine = engine self.dialect = dialect = engine.dialect if connection is None: try: > self._dbapi_connection = engine.raw_connection() /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection return self.pool.connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect return _ConnectionFairy._checkout(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout rec = pool._do_get() /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get return self._create_connection() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection return _ConnectionRecord(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ self.__connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect return dialect.connect(*cargs, **cparams) /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect return self.loaded_dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' connection_factory = None, cursor_factory = None kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 46963 failed: FATAL: sorry, too many clients already /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True > self.connection = self.engine.connect() tests/__init__.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect return self._connection_cls(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ Connection._handle_dbapi_exception_noconnection( /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection raise sqlalchemy_exception.with_traceback(exc_info[2]) from e /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ self._dbapi_connection = engine.raw_connection() /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection return self.pool.connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect return _ConnectionFairy._checkout(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout rec = pool._do_get() /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get return self._create_connection() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection return _ConnectionRecord(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ self.__connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect return dialect.connect(*cargs, **cparams) /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect return self.loaded_dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' connection_factory = None, cursor_factory = None kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 46963 failed: FATAL: sorry, too many clients already E E (Background on this error at: https://sqlalche.me/e/20/e3q8) /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError _________________ ERROR at setup of TestDeclarative.test_iter __________________ self = engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) connection = None, _has_events = None, _allow_revalidate = True _allow_autobegin = True def __init__( self, engine: Engine, connection: Optional[PoolProxiedConnection] = None, _has_events: Optional[bool] = None, _allow_revalidate: bool = True, _allow_autobegin: bool = True, ): """Construct a new Connection.""" self.engine = engine self.dialect = dialect = engine.dialect if connection is None: try: > self._dbapi_connection = engine.raw_connection() /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection return self.pool.connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect return _ConnectionFairy._checkout(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout rec = pool._do_get() /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get return self._create_connection() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection return _ConnectionRecord(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ self.__connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect return dialect.connect(*cargs, **cparams) /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect return self.loaded_dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' connection_factory = None, cursor_factory = None kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 46963 failed: FATAL: sorry, too many clients already /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True > self.connection = self.engine.connect() tests/__init__.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect return self._connection_cls(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ Connection._handle_dbapi_exception_noconnection( /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection raise sqlalchemy_exception.with_traceback(exc_info[2]) from e /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ self._dbapi_connection = engine.raw_connection() /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection return self.pool.connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect return _ConnectionFairy._checkout(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout rec = pool._do_get() /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get return self._create_connection() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection return _ConnectionRecord(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ self.__connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect return dialect.connect(*cargs, **cparams) /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect return self.loaded_dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' connection_factory = None, cursor_factory = None kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 46963 failed: FATAL: sorry, too many clients already E E (Background on this error at: https://sqlalche.me/e/20/e3q8) /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError ________________ ERROR at setup of TestDeclarative.test_values _________________ self = engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) connection = None, _has_events = None, _allow_revalidate = True _allow_autobegin = True def __init__( self, engine: Engine, connection: Optional[PoolProxiedConnection] = None, _has_events: Optional[bool] = None, _allow_revalidate: bool = True, _allow_autobegin: bool = True, ): """Construct a new Connection.""" self.engine = engine self.dialect = dialect = engine.dialect if connection is None: try: > self._dbapi_connection = engine.raw_connection() /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection return self.pool.connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect return _ConnectionFairy._checkout(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout rec = pool._do_get() /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get return self._create_connection() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection return _ConnectionRecord(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ self.__connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect return dialect.connect(*cargs, **cparams) /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect return self.loaded_dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' connection_factory = None, cursor_factory = None kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 46963 failed: FATAL: sorry, too many clients already /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: self = method = > def setup_method(self, method): self.engine = create_engine(self.engine_uri) # self.engine.echo = True > self.connection = self.engine.connect() tests/__init__.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect return self._connection_cls(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ Connection._handle_dbapi_exception_noconnection( /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection raise sqlalchemy_exception.with_traceback(exc_info[2]) from e /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ self._dbapi_connection = engine.raw_connection() /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection return self.pool.connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect return _ConnectionFairy._checkout(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout rec = pool._do_get() /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get return self._create_connection() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection return _ConnectionRecord(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ self.__connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect return dialect.connect(*cargs, **cparams) /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect return self.loaded_dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' connection_factory = None, cursor_factory = None kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 46963 failed: FATAL: sorry, too many clients already E E (Background on this error at: https://sqlalche.me/e/20/e3q8) /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError ______________ ERROR at setup of TestClassic.test_proxy_contains _______________ self = engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) connection = None, _has_events = None, _allow_revalidate = True _allow_autobegin = True def __init__( self, engine: Engine, connection: Optional[PoolProxiedConnection] = None, _has_events: Optional[bool] = None, _allow_revalidate: bool = True, _allow_autobegin: bool = True, ): """Construct a new Connection.""" self.engine = engine self.dialect = dialect = engine.dialect if connection is None: try: > self._dbapi_connection = engine.raw_connection() /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection return self.pool.connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect return _ConnectionFairy._checkout(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout rec = pool._do_get() /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get return self._create_connection() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection return _ConnectionRecord(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ self.__connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect return dialect.connect(*cargs, **cparams) /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect return self.loaded_dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' connection_factory = None, cursor_factory = None kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 46963 failed: FATAL: sorry, too many clients already /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: self = method = > def setup_method(self, method): self.metadata = sa.MetaData() self.engine = sa.create_engine(self.engine_uri) # self.engine.echo = True > self.connection = self.engine.connect() tests/__init__.py:135: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect return self._connection_cls(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ Connection._handle_dbapi_exception_noconnection( /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection raise sqlalchemy_exception.with_traceback(exc_info[2]) from e /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ self._dbapi_connection = engine.raw_connection() /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection return self.pool.connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect return _ConnectionFairy._checkout(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout rec = pool._do_get() /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get return self._create_connection() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection return _ConnectionRecord(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ self.__connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect return dialect.connect(*cargs, **cparams) /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect return self.loaded_dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' connection_factory = None, cursor_factory = None kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 46963 failed: FATAL: sorry, too many clients already E E (Background on this error at: https://sqlalche.me/e/20/e3q8) /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError ___ ERROR at setup of TestClassic.test_translation_mapping_attribute_getter ____ self = engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) connection = None, _has_events = None, _allow_revalidate = True _allow_autobegin = True def __init__( self, engine: Engine, connection: Optional[PoolProxiedConnection] = None, _has_events: Optional[bool] = None, _allow_revalidate: bool = True, _allow_autobegin: bool = True, ): """Construct a new Connection.""" self.engine = engine self.dialect = dialect = engine.dialect if connection is None: try: > self._dbapi_connection = engine.raw_connection() /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection return self.pool.connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect return _ConnectionFairy._checkout(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout rec = pool._do_get() /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get return self._create_connection() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection return _ConnectionRecord(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ self.__connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect return dialect.connect(*cargs, **cparams) /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect return self.loaded_dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' connection_factory = None, cursor_factory = None kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 46963 failed: FATAL: sorry, too many clients already /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: self = method = > def setup_method(self, method): self.metadata = sa.MetaData() self.engine = sa.create_engine(self.engine_uri) # self.engine.echo = True > self.connection = self.engine.connect() tests/__init__.py:135: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect return self._connection_cls(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ Connection._handle_dbapi_exception_noconnection( /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection raise sqlalchemy_exception.with_traceback(exc_info[2]) from e /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ self._dbapi_connection = engine.raw_connection() /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection return self.pool.connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect return _ConnectionFairy._checkout(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout rec = pool._do_get() /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get return self._create_connection() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection return _ConnectionRecord(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ self.__connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect return dialect.connect(*cargs, **cparams) /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect return self.loaded_dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' connection_factory = None, cursor_factory = None kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 46963 failed: FATAL: sorry, too many clients already E E (Background on this error at: https://sqlalche.me/e/20/e3q8) /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError ___ ERROR at setup of TestClassic.test_attribute_accessor_for_unknown_locale ___ self = engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) connection = None, _has_events = None, _allow_revalidate = True _allow_autobegin = True def __init__( self, engine: Engine, connection: Optional[PoolProxiedConnection] = None, _has_events: Optional[bool] = None, _allow_revalidate: bool = True, _allow_autobegin: bool = True, ): """Construct a new Connection.""" self.engine = engine self.dialect = dialect = engine.dialect if connection is None: try: > self._dbapi_connection = engine.raw_connection() /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection return self.pool.connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect return _ConnectionFairy._checkout(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout rec = pool._do_get() /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get return self._create_connection() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection return _ConnectionRecord(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ self.__connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect return dialect.connect(*cargs, **cparams) /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect return self.loaded_dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' connection_factory = None, cursor_factory = None kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 46963 failed: FATAL: sorry, too many clients already /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: self = method = > def setup_method(self, method): self.metadata = sa.MetaData() self.engine = sa.create_engine(self.engine_uri) # self.engine.echo = True > self.connection = self.engine.connect() tests/__init__.py:135: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect return self._connection_cls(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ Connection._handle_dbapi_exception_noconnection( /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection raise sqlalchemy_exception.with_traceback(exc_info[2]) from e /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ self._dbapi_connection = engine.raw_connection() /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection return self.pool.connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect return _ConnectionFairy._checkout(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout rec = pool._do_get() /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get return self._create_connection() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection return _ConnectionRecord(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ self.__connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect return dialect.connect(*cargs, **cparams) /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect return self.loaded_dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' connection_factory = None, cursor_factory = None kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 46963 failed: FATAL: sorry, too many clients already E E (Background on this error at: https://sqlalche.me/e/20/e3q8) /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError ____________ ERROR at setup of TestClassic.test_proxy_not_contains _____________ self = engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) connection = None, _has_events = None, _allow_revalidate = True _allow_autobegin = True def __init__( self, engine: Engine, connection: Optional[PoolProxiedConnection] = None, _has_events: Optional[bool] = None, _allow_revalidate: bool = True, _allow_autobegin: bool = True, ): """Construct a new Connection.""" self.engine = engine self.dialect = dialect = engine.dialect if connection is None: try: > self._dbapi_connection = engine.raw_connection() /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection return self.pool.connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect return _ConnectionFairy._checkout(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout rec = pool._do_get() /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get return self._create_connection() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection return _ConnectionRecord(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ self.__connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect return dialect.connect(*cargs, **cparams) /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect return self.loaded_dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' connection_factory = None, cursor_factory = None kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 46963 failed: FATAL: sorry, too many clients already /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: self = method = > def setup_method(self, method): self.metadata = sa.MetaData() self.engine = sa.create_engine(self.engine_uri) # self.engine.echo = True > self.connection = self.engine.connect() tests/__init__.py:135: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect return self._connection_cls(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ Connection._handle_dbapi_exception_noconnection( /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection raise sqlalchemy_exception.with_traceback(exc_info[2]) from e /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ self._dbapi_connection = engine.raw_connection() /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection return self.pool.connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect return _ConnectionFairy._checkout(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout rec = pool._do_get() /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get return self._create_connection() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection return _ConnectionRecord(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ self.__connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect return dialect.connect(*cargs, **cparams) /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect return self.loaded_dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' connection_factory = None, cursor_factory = None kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 46963 failed: FATAL: sorry, too many clients already E E (Background on this error at: https://sqlalche.me/e/20/e3q8) /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError ___________________ ERROR at setup of TestClassic.test_items ___________________ self = engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) connection = None, _has_events = None, _allow_revalidate = True _allow_autobegin = True def __init__( self, engine: Engine, connection: Optional[PoolProxiedConnection] = None, _has_events: Optional[bool] = None, _allow_revalidate: bool = True, _allow_autobegin: bool = True, ): """Construct a new Connection.""" self.engine = engine self.dialect = dialect = engine.dialect if connection is None: try: > self._dbapi_connection = engine.raw_connection() /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection return self.pool.connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect return _ConnectionFairy._checkout(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout rec = pool._do_get() /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get return self._create_connection() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection return _ConnectionRecord(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ self.__connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect return dialect.connect(*cargs, **cparams) /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect return self.loaded_dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' connection_factory = None, cursor_factory = None kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 46963 failed: FATAL: sorry, too many clients already /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: self = method = > def setup_method(self, method): self.metadata = sa.MetaData() self.engine = sa.create_engine(self.engine_uri) # self.engine.echo = True > self.connection = self.engine.connect() tests/__init__.py:135: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect return self._connection_cls(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ Connection._handle_dbapi_exception_noconnection( /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection raise sqlalchemy_exception.with_traceback(exc_info[2]) from e /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ self._dbapi_connection = engine.raw_connection() /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection return self.pool.connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect return _ConnectionFairy._checkout(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout rec = pool._do_get() /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get return self._create_connection() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection return _ConnectionRecord(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ self.__connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect return dialect.connect(*cargs, **cparams) /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect return self.loaded_dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' connection_factory = None, cursor_factory = None kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 46963 failed: FATAL: sorry, too many clients already E E (Background on this error at: https://sqlalche.me/e/20/e3q8) /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError _________________ ERROR at setup of TestClassic.test_iteritems _________________ self = engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) connection = None, _has_events = None, _allow_revalidate = True _allow_autobegin = True def __init__( self, engine: Engine, connection: Optional[PoolProxiedConnection] = None, _has_events: Optional[bool] = None, _allow_revalidate: bool = True, _allow_autobegin: bool = True, ): """Construct a new Connection.""" self.engine = engine self.dialect = dialect = engine.dialect if connection is None: try: > self._dbapi_connection = engine.raw_connection() /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection return self.pool.connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect return _ConnectionFairy._checkout(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout rec = pool._do_get() /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get return self._create_connection() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection return _ConnectionRecord(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ self.__connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect return dialect.connect(*cargs, **cparams) /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect return self.loaded_dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' connection_factory = None, cursor_factory = None kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 46963 failed: FATAL: sorry, too many clients already /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: self = method = > def setup_method(self, method): self.metadata = sa.MetaData() self.engine = sa.create_engine(self.engine_uri) # self.engine.echo = True > self.connection = self.engine.connect() tests/__init__.py:135: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect return self._connection_cls(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ Connection._handle_dbapi_exception_noconnection( /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection raise sqlalchemy_exception.with_traceback(exc_info[2]) from e /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ self._dbapi_connection = engine.raw_connection() /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection return self.pool.connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect return _ConnectionFairy._checkout(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout rec = pool._do_get() /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get return self._create_connection() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection return _ConnectionRecord(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ self.__connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect return dialect.connect(*cargs, **cparams) /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect return self.loaded_dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' connection_factory = None, cursor_factory = None kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 46963 failed: FATAL: sorry, too many clients already E E (Background on this error at: https://sqlalche.me/e/20/e3q8) /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError _________________ ERROR at setup of TestClassic.test_set_item __________________ self = engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) connection = None, _has_events = None, _allow_revalidate = True _allow_autobegin = True def __init__( self, engine: Engine, connection: Optional[PoolProxiedConnection] = None, _has_events: Optional[bool] = None, _allow_revalidate: bool = True, _allow_autobegin: bool = True, ): """Construct a new Connection.""" self.engine = engine self.dialect = dialect = engine.dialect if connection is None: try: > self._dbapi_connection = engine.raw_connection() /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection return self.pool.connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect return _ConnectionFairy._checkout(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout rec = pool._do_get() /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get return self._create_connection() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection return _ConnectionRecord(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ self.__connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect return dialect.connect(*cargs, **cparams) /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect return self.loaded_dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' connection_factory = None, cursor_factory = None kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 46963 failed: FATAL: sorry, too many clients already /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: self = method = > def setup_method(self, method): self.metadata = sa.MetaData() self.engine = sa.create_engine(self.engine_uri) # self.engine.echo = True > self.connection = self.engine.connect() tests/__init__.py:135: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect return self._connection_cls(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ Connection._handle_dbapi_exception_noconnection( /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection raise sqlalchemy_exception.with_traceback(exc_info[2]) from e /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ self._dbapi_connection = engine.raw_connection() /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection return self.pool.connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect return _ConnectionFairy._checkout(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout rec = pool._do_get() /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get return self._create_connection() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection return _ConnectionRecord(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ self.__connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect return dialect.connect(*cargs, **cparams) /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect return self.loaded_dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' connection_factory = None, cursor_factory = None kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 46963 failed: FATAL: sorry, too many clients already E E (Background on this error at: https://sqlalche.me/e/20/e3q8) /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError ___________________ ERROR at setup of TestClassic.test_repr ____________________ self = engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) connection = None, _has_events = None, _allow_revalidate = True _allow_autobegin = True def __init__( self, engine: Engine, connection: Optional[PoolProxiedConnection] = None, _has_events: Optional[bool] = None, _allow_revalidate: bool = True, _allow_autobegin: bool = True, ): """Construct a new Connection.""" self.engine = engine self.dialect = dialect = engine.dialect if connection is None: try: > self._dbapi_connection = engine.raw_connection() /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection return self.pool.connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect return _ConnectionFairy._checkout(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout rec = pool._do_get() /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get return self._create_connection() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection return _ConnectionRecord(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ self.__connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect return dialect.connect(*cargs, **cparams) /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect return self.loaded_dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' connection_factory = None, cursor_factory = None kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 46963 failed: FATAL: sorry, too many clients already /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: self = method = > def setup_method(self, method): self.metadata = sa.MetaData() self.engine = sa.create_engine(self.engine_uri) # self.engine.echo = True > self.connection = self.engine.connect() tests/__init__.py:135: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect return self._connection_cls(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ Connection._handle_dbapi_exception_noconnection( /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection raise sqlalchemy_exception.with_traceback(exc_info[2]) from e /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ self._dbapi_connection = engine.raw_connection() /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection return self.pool.connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect return _ConnectionFairy._checkout(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout rec = pool._do_get() /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get return self._create_connection() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection return _ConnectionRecord(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ self.__connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect return dialect.connect(*cargs, **cparams) /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect return self.loaded_dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' connection_factory = None, cursor_factory = None kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 46963 failed: FATAL: sorry, too many clients already E E (Background on this error at: https://sqlalche.me/e/20/e3q8) /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError ___________________ ERROR at setup of TestClassic.test_iter ____________________ self = engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) connection = None, _has_events = None, _allow_revalidate = True _allow_autobegin = True def __init__( self, engine: Engine, connection: Optional[PoolProxiedConnection] = None, _has_events: Optional[bool] = None, _allow_revalidate: bool = True, _allow_autobegin: bool = True, ): """Construct a new Connection.""" self.engine = engine self.dialect = dialect = engine.dialect if connection is None: try: > self._dbapi_connection = engine.raw_connection() /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection return self.pool.connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect return _ConnectionFairy._checkout(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout rec = pool._do_get() /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get return self._create_connection() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection return _ConnectionRecord(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ self.__connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect return dialect.connect(*cargs, **cparams) /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect return self.loaded_dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' connection_factory = None, cursor_factory = None kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 46963 failed: FATAL: sorry, too many clients already /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: self = method = > def setup_method(self, method): self.metadata = sa.MetaData() self.engine = sa.create_engine(self.engine_uri) # self.engine.echo = True > self.connection = self.engine.connect() tests/__init__.py:135: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect return self._connection_cls(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ Connection._handle_dbapi_exception_noconnection( /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection raise sqlalchemy_exception.with_traceback(exc_info[2]) from e /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ self._dbapi_connection = engine.raw_connection() /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection return self.pool.connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect return _ConnectionFairy._checkout(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout rec = pool._do_get() /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get return self._create_connection() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection return _ConnectionRecord(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ self.__connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect return dialect.connect(*cargs, **cparams) /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect return self.loaded_dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' connection_factory = None, cursor_factory = None kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 46963 failed: FATAL: sorry, too many clients already E E (Background on this error at: https://sqlalche.me/e/20/e3q8) /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError __________________ ERROR at setup of TestClassic.test_values ___________________ self = engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) connection = None, _has_events = None, _allow_revalidate = True _allow_autobegin = True def __init__( self, engine: Engine, connection: Optional[PoolProxiedConnection] = None, _has_events: Optional[bool] = None, _allow_revalidate: bool = True, _allow_autobegin: bool = True, ): """Construct a new Connection.""" self.engine = engine self.dialect = dialect = engine.dialect if connection is None: try: > self._dbapi_connection = engine.raw_connection() /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection return self.pool.connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect return _ConnectionFairy._checkout(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout rec = pool._do_get() /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get return self._create_connection() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection return _ConnectionRecord(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ self.__connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect return dialect.connect(*cargs, **cparams) /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect return self.loaded_dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' connection_factory = None, cursor_factory = None kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 46963 failed: FATAL: sorry, too many clients already /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: self = method = > def setup_method(self, method): self.metadata = sa.MetaData() self.engine = sa.create_engine(self.engine_uri) # self.engine.echo = True > self.connection = self.engine.connect() tests/__init__.py:135: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect return self._connection_cls(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ Connection._handle_dbapi_exception_noconnection( /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection raise sqlalchemy_exception.with_traceback(exc_info[2]) from e /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ self._dbapi_connection = engine.raw_connection() /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection return self.pool.connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect return _ConnectionFairy._checkout(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout rec = pool._do_get() /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get return self._create_connection() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection return _ConnectionRecord(self) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ self.__connect() /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect with util.safe_reraise(): /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ raise exc_value.with_traceback(exc_tb) /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect return dialect.connect(*cargs, **cparams) /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect return self.loaded_dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' connection_factory = None, cursor_factory = None kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 46963 failed: FATAL: sorry, too many clients already E E (Background on this error at: https://sqlalche.me/e/20/e3q8) /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError =================================== FAILURES =================================== ___________ TestDeclarative.test_does_not_generate_hybrid_properties ___________ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: > return getattr(class_, '_translation_%s' % locale) E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' sqlalchemy_i18n/comparators.py:13: AttributeError During handling of the above exception, another exception occurred: self = def test_does_not_generate_hybrid_properties(self): > self.Article() tests/test_hybrid_property_exclusion.py:15: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ :4: in __init__ ??? /usr/lib/python3/dist-packages/sqlalchemy/orm/state.py:566: in _initialize_instance manager.dispatch.init(self, args, kwargs) /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:497: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4396: in _event_on_init instrumenting_mapper._check_configure() /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2388: in _check_configure _configure_registries({self.registry}, cascade=True) /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ fn(*args, **kw) /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap fn(*arg, **kw) sqlalchemy_i18n/manager.py:110: in configure_translatable_classes RelationshipBuilder(self, cls)() sqlalchemy_i18n/builders.py:228: in __call__ self.assign_translations() sqlalchemy_i18n/builders.py:186: in assign_translations mapper.add_property('_translations', sa.orm.relationship( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property prop = self._configure_property( /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property prop.post_instrument_class(self) /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class self.strategy.init_class_attribute(mapper) /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute _register_attribute( /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute desc = attributes.register_attribute_impl( /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ if hasattr(obj, "_slots_dispatch"): /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ return getattr(self.comparator, key) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = locale = '_slots_dispatch' def __getattr__(self, locale): class_ = self._parentmapper.class_ try: return getattr(class_, '_translation_%s' % locale) except AttributeError: > raise UnknownLocaleError(locale, class_) E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] sqlalchemy_i18n/comparators.py:15: UnknownLocaleError =============================== warnings summary =============================== sqlalchemy_i18n/translatable.py:62 /build/reproducible-path/sqlalchemy-i18n-1.1.0/sqlalchemy_i18n/translatable.py:62: SADeprecationWarning: The `sqlalchemy.orm.mapper()` symbol is deprecated and will be removed in a future release. For the mapper-wide event target, use the 'sqlalchemy.orm.Mapper' class. @sa.event.listens_for(sa.orm.mapper, 'expire') sqlalchemy_i18n/__init__.py:41 /build/reproducible-path/sqlalchemy-i18n-1.1.0/sqlalchemy_i18n/__init__.py:41: SADeprecationWarning: The `sqlalchemy.orm.mapper()` symbol is deprecated and will be removed in a future release. For the mapper-wide event target, use the 'sqlalchemy.orm.Mapper' class. sa.event.listen( sqlalchemy_i18n/__init__.py:44 /build/reproducible-path/sqlalchemy-i18n-1.1.0/sqlalchemy_i18n/__init__.py:44: SADeprecationWarning: The `sqlalchemy.orm.mapper()` symbol is deprecated and will be removed in a future release. For the mapper-wide event target, use the 'sqlalchemy.orm.Mapper' class. sa.event.listen( tests/test_common_base_class.py: 1 warning tests/test_comparator.py: 2 warnings tests/test_composite_primary_key.py: 1 warning tests/test_configuration.py: 2 warnings tests/test_current_translation_property.py: 3 warnings tests/test_current_translation_property_with_locale.py: 1 warning tests/test_custom_base_class.py: 1 warning tests/test_fallback_locale_as_callable.py: 2 warnings tests/test_fallback_locale_without_class_default.py: 2 warnings tests/test_fallback_translation.py: 3 warnings tests/test_find_translations.py: 2 warnings tests/test_hybrid_property_as_dynamic_source_locale.py: 1 warning tests/test_hybrid_property_exclusion.py: 1 warning tests/test_join_expressions.py: 4 warnings tests/test_joined_loading.py: 5 warnings tests/test_joined_table_inheritance.py: 8 warnings tests/test_property_collision.py: 1 warning tests/test_relationships.py: 1 warning tests/test_translatable.py: 8 warnings tests/test_translation_auto_creation.py: 1 warning tests/test_translation_auto_creation_with_non_nullables.py: 1 warning tests/test_translation_mapping.py: 4 warnings /build/reproducible-path/sqlalchemy-i18n-1.1.0/tests/__init__.py:52: MovedIn20Warning: The ``declarative_base()`` function is now available as sqlalchemy.orm.declarative_base(). (deprecated since: 2.0) (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9) self.Model = declarative_base() tests/test_common_base_class.py: 2 warnings tests/test_comparator.py: 2 warnings tests/test_composite_primary_key.py: 1 warning tests/test_configuration.py: 2 warnings tests/test_current_translation_property.py: 3 warnings tests/test_current_translation_property_with_locale.py: 1 warning tests/test_custom_base_class.py: 1 warning tests/test_fallback_locale_as_callable.py: 2 warnings tests/test_fallback_locale_without_class_default.py: 2 warnings tests/test_fallback_translation.py: 3 warnings tests/test_find_translations.py: 2 warnings tests/test_hybrid_property_as_dynamic_source_locale.py: 1 warning tests/test_hybrid_property_exclusion.py: 1 warning tests/test_join_expressions.py: 4 warnings tests/test_joined_loading.py: 5 warnings tests/test_joined_table_inheritance.py: 8 warnings tests/test_property_collision.py: 1 warning tests/test_relationships.py: 1 warning tests/test_translatable.py: 8 warnings tests/test_translation_auto_creation.py: 1 warning tests/test_translation_auto_creation_with_non_nullables.py: 1 warning tests/test_translation_mapping.py: 4 warnings /build/reproducible-path/sqlalchemy-i18n-1.1.0/sqlalchemy_i18n/manager.py:36: MovedIn20Warning: The ``has_inherited_table()`` function is now available as sqlalchemy.orm.has_inherited_table(). (deprecated since: 2.0) (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9) if has_inherited_table(cls): -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/test_hybrid_property_exclusion.py::TestDeclarative::test_does_not_generate_hybrid_properties ERROR tests/test_common_base_class.py::TestDeclarative::test_translatable_dict_copied_to_each_child_class ERROR tests/test_common_base_class.py::TestClassic::test_translatable_dict_copied_to_each_child_class ERROR tests/test_comparator.py::TestDeclarative::test_attribute_accessor_for_unknown_locale ERROR tests/test_comparator.py::TestDeclarative::test_attribute_accessors - s... ERROR tests/test_comparator.py::TestClassic::test_attribute_accessor_for_unknown_locale ERROR tests/test_comparator.py::TestClassic::test_attribute_accessors - sqlal... ERROR tests/test_composite_primary_key.py::TestDeclarative::test_relationships ERROR tests/test_composite_primary_key.py::TestClassic::test_relationships - ... ERROR tests/test_configuration.py::TestTranslationBaseCustomization::test_customize_foreign_key_args ERROR tests/test_configuration.py::TestTranslationBaseCustomization::test_customize_relationships_args ERROR tests/test_current_translation_property.py::TestDeclarative::test_as_object_property ERROR tests/test_current_translation_property.py::TestDeclarative::test_as_class_property ERROR tests/test_current_translation_property.py::TestDeclarative::test_setter ERROR tests/test_current_translation_property.py::TestClassic::test_as_object_property ERROR tests/test_current_translation_property.py::TestClassic::test_as_class_property ERROR tests/test_current_translation_property.py::TestClassic::test_setter - ... ERROR tests/test_current_translation_property_with_locale.py::TestDeclarative::test_converts_locale_object_to_unicode ERROR tests/test_current_translation_property_with_locale.py::TestClassic::test_converts_locale_object_to_unicode ERROR tests/test_custom_base_class.py::TestDeclarative::test_translatable_dict_copied_to_each_child_class ERROR tests/test_fallback_locale_as_callable.py::TestDeclarative::test_hybrid_properties_support_callable_fallback_locales ERROR tests/test_fallback_locale_as_callable.py::TestDeclarative::test_locale_fallback ERROR tests/test_fallback_locale_as_callable.py::TestClassic::test_hybrid_properties_support_callable_fallback_locales ERROR tests/test_fallback_locale_as_callable.py::TestClassic::test_locale_fallback ERROR tests/test_fallback_locale_without_class_default.py::TestDeclarative::test_hybrid_properties_support_callable_fallback_locales ERROR tests/test_fallback_locale_without_class_default.py::TestDeclarative::test_locale_fallback ERROR tests/test_fallback_locale_without_class_default.py::TestClassic::test_hybrid_properties_support_callable_fallback_locales ERROR tests/test_fallback_locale_without_class_default.py::TestClassic::test_locale_fallback ERROR tests/test_fallback_translation.py::TestDeclarative::test_as_object_property_with_force_locale ERROR tests/test_fallback_translation.py::TestDeclarative::test_as_class_property ERROR tests/test_fallback_translation.py::TestDeclarative::test_setter - sqla... ERROR tests/test_fallback_translation.py::TestClassic::test_as_object_property_with_force_locale ERROR tests/test_fallback_translation.py::TestClassic::test_as_class_property ERROR tests/test_fallback_translation.py::TestClassic::test_setter - sqlalche... ERROR tests/test_find_translations.py::TestDeclarative::test_with_full_confidence ERROR tests/test_find_translations.py::TestDeclarative::test_with_varying_confidence ERROR tests/test_find_translations.py::TestClassic::test_with_full_confidence ERROR tests/test_find_translations.py::TestClassic::test_with_varying_confidence ERROR tests/test_hybrid_property_as_dynamic_source_locale.py::TestDeclarative::test_joinedload_for_current_translation ERROR tests/test_hybrid_property_as_dynamic_source_locale.py::TestClassic::test_joinedload_for_current_translation ERROR tests/test_hybrid_property_exclusion.py::TestClassic::test_does_not_generate_hybrid_properties ERROR tests/test_join_expressions.py::TestDeclarative::test_current_translation_as_expression ERROR tests/test_join_expressions.py::TestDeclarative::test_order_by_translation ERROR tests/test_join_expressions.py::TestDeclarative::test_fallback_locale_as_expression ERROR tests/test_join_expressions.py::TestDeclarative::test_querying - sqlalc... ERROR tests/test_join_expressions.py::TestClassic::test_current_translation_as_expression ERROR tests/test_join_expressions.py::TestClassic::test_order_by_translation ERROR tests/test_join_expressions.py::TestClassic::test_fallback_locale_as_expression ERROR tests/test_join_expressions.py::TestClassic::test_querying - sqlalchemy... ERROR tests/test_joined_loading.py::TestDeclarative::test_joinedload_for_current_translation ERROR tests/test_joined_loading.py::TestDeclarative::test_contains_eager_for_current_translation ERROR tests/test_joined_loading.py::TestDeclarative::test_joinedload_for_single_translation ERROR tests/test_joined_loading.py::TestDeclarative::test_joinedload_for_attr_accessor ERROR tests/test_joined_loading.py::TestDeclarative::test_joinedload_for_all_translations ERROR tests/test_joined_loading.py::TestClassic::test_joinedload_for_current_translation ERROR tests/test_joined_loading.py::TestClassic::test_contains_eager_for_current_translation ERROR tests/test_joined_loading.py::TestClassic::test_joinedload_for_single_translation ERROR tests/test_joined_loading.py::TestClassic::test_joinedload_for_attr_accessor ERROR tests/test_joined_loading.py::TestClassic::test_joinedload_for_all_translations ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_auto_creates_relations ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_auto_creates_current_translation ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_translatable_attributes ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_inherits_child_properties ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_translated_columns ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_property_delegators ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_table_name ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_inherits_parent_table ERROR tests/test_joined_table_inheritance.py::TestClassic::test_auto_creates_relations ERROR tests/test_joined_table_inheritance.py::TestClassic::test_auto_creates_current_translation ERROR tests/test_joined_table_inheritance.py::TestClassic::test_translatable_attributes ERROR tests/test_joined_table_inheritance.py::TestClassic::test_inherits_child_properties ERROR tests/test_joined_table_inheritance.py::TestClassic::test_translated_columns ERROR tests/test_joined_table_inheritance.py::TestClassic::test_property_delegators ERROR tests/test_joined_table_inheritance.py::TestClassic::test_table_name - ... ERROR tests/test_joined_table_inheritance.py::TestClassic::test_inherits_parent_table ERROR tests/test_relationships.py::TestDeclarative::test_nullify_relation - s... ERROR tests/test_relationships.py::TestClassic::test_nullify_relation - sqlal... ERROR tests/test_translatable.py::TestDeclarative::test_auto_creates_relations ERROR tests/test_translatable.py::TestDeclarative::test_translatable_attributes ERROR tests/test_translatable.py::TestDeclarative::test_relationship_consistency ERROR tests/test_translatable.py::TestDeclarative::test_property_delegators ERROR tests/test_translatable.py::TestDeclarative::test_commit_session - sqla... ERROR tests/test_translatable.py::TestDeclarative::test_delete - sqlalchemy_i... ERROR tests/test_translatable.py::TestDeclarative::test_translated_columns - ... ERROR tests/test_translatable.py::TestDeclarative::test_appends_locale_column_to_translation_table ERROR tests/test_translatable.py::TestClassic::test_auto_creates_relations - ... ERROR tests/test_translatable.py::TestClassic::test_translatable_attributes ERROR tests/test_translatable.py::TestClassic::test_relationship_consistency ERROR tests/test_translatable.py::TestClassic::test_property_delegators - sql... ERROR tests/test_translatable.py::TestClassic::test_commit_session - sqlalche... ERROR tests/test_translatable.py::TestClassic::test_delete - sqlalchemy.exc.I... ERROR tests/test_translatable.py::TestClassic::test_translated_columns - sqla... ERROR tests/test_translatable.py::TestClassic::test_appends_locale_column_to_translation_table ERROR tests/test_translation_auto_creation.py::TestDeclarative::test_auto_creates_translation_objects ERROR tests/test_translation_auto_creation.py::TestClassic::test_auto_creates_translation_objects ERROR tests/test_translation_auto_creation_with_non_nullables.py::TestDeclarative::test_auto_sets_nullables_as_empty_strings ERROR tests/test_translation_auto_creation_with_non_nullables.py::TestClassic::test_auto_sets_nullables_as_empty_strings ERROR tests/test_translation_mapping.py::TestDeclarative::test_proxy_contains ERROR tests/test_translation_mapping.py::TestDeclarative::test_translation_mapping_attribute_getter ERROR tests/test_translation_mapping.py::TestDeclarative::test_attribute_accessor_for_unknown_locale ERROR tests/test_translation_mapping.py::TestDeclarative::test_proxy_not_contains ERROR tests/test_translation_mapping.py::TestDeclarative::test_items - sqlalc... ERROR tests/test_translation_mapping.py::TestDeclarative::test_iteritems - sq... ERROR tests/test_translation_mapping.py::TestDeclarative::test_set_item - sql... ERROR tests/test_translation_mapping.py::TestDeclarative::test_repr - sqlalch... ERROR tests/test_translation_mapping.py::TestDeclarative::test_iter - sqlalch... ERROR tests/test_translation_mapping.py::TestDeclarative::test_values - sqlal... ERROR tests/test_translation_mapping.py::TestClassic::test_proxy_contains - s... ERROR tests/test_translation_mapping.py::TestClassic::test_translation_mapping_attribute_getter ERROR tests/test_translation_mapping.py::TestClassic::test_attribute_accessor_for_unknown_locale ERROR tests/test_translation_mapping.py::TestClassic::test_proxy_not_contains ERROR tests/test_translation_mapping.py::TestClassic::test_items - sqlalchemy... ERROR tests/test_translation_mapping.py::TestClassic::test_iteritems - sqlalc...2025-12-18 08:40:31.704 /USR/SHARE/ZONEINFO/ETC/GMT [1919561] LOG: received smart shutdown request 2025-12-18 08:40:36.801 /USR/SHARE/ZONEINFO/ETC/GMT [1925150] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.802 /USR/SHARE/ZONEINFO/ETC/GMT [1925210] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.803 /USR/SHARE/ZONEINFO/ETC/GMT [1925064] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.803 /USR/SHARE/ZONEINFO/ETC/GMT [1923979] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.803 /USR/SHARE/ZONEINFO/ETC/GMT [1925053] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.803 /USR/SHARE/ZONEINFO/ETC/GMT [1925132] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.803 /USR/SHARE/ZONEINFO/ETC/GMT [1925063] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.803 /USR/SHARE/ZONEINFO/ETC/GMT [1925024] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.803 /USR/SHARE/ZONEINFO/ETC/GMT [1922163] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.803 /USR/SHARE/ZONEINFO/ETC/GMT [1924094] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.804 /USR/SHARE/ZONEINFO/ETC/GMT [1922990] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.804 /USR/SHARE/ZONEINFO/ETC/GMT [1925163] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.805 /USR/SHARE/ZONEINFO/ETC/GMT [1924341] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.807 /USR/SHARE/ZONEINFO/ETC/GMT [1920083] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.807 /USR/SHARE/ZONEINFO/ETC/GMT [1920649] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.807 /USR/SHARE/ZONEINFO/ETC/GMT [1922243] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.807 /USR/SHARE/ZONEINFO/ETC/GMT [1923562] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.807 /USR/SHARE/ZONEINFO/ETC/GMT [1925023] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.807 /USR/SHARE/ZONEINFO/ETC/GMT [1922137] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.807 /USR/SHARE/ZONEINFO/ETC/GMT [1920337] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.808 /USR/SHARE/ZONEINFO/ETC/GMT [1920221] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.808 /USR/SHARE/ZONEINFO/ETC/GMT [1925131] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.808 /USR/SHARE/ZONEINFO/ETC/GMT [1923949] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.808 /USR/SHARE/ZONEINFO/ETC/GMT [1925082] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.810 /USR/SHARE/ZONEINFO/ETC/GMT [1920057] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.811 /USR/SHARE/ZONEINFO/ETC/GMT [1923561] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.811 /USR/SHARE/ZONEINFO/ETC/GMT [1920538] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.811 /USR/SHARE/ZONEINFO/ETC/GMT [1921342] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.811 /USR/SHARE/ZONEINFO/ETC/GMT [1923235] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.811 /USR/SHARE/ZONEINFO/ETC/GMT [1920239] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.811 /USR/SHARE/ZONEINFO/ETC/GMT [1925059] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.811 /USR/SHARE/ZONEINFO/ETC/GMT [1920176] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.811 /USR/SHARE/ZONEINFO/ETC/GMT [1925025] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.811 /USR/SHARE/ZONEINFO/ETC/GMT [1920947] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.811 /USR/SHARE/ZONEINFO/ETC/GMT [1920020] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.813 /USR/SHARE/ZONEINFO/ETC/GMT [1920051] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.814 /USR/SHARE/ZONEINFO/ETC/GMT [1922736] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.814 /USR/SHARE/ZONEINFO/ETC/GMT [1920231] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.814 /USR/SHARE/ZONEINFO/ETC/GMT [1923558] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.814 /USR/SHARE/ZONEINFO/ETC/GMT [1924883] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.814 /USR/SHARE/ZONEINFO/ETC/GMT [1924603] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.814 /USR/SHARE/ZONEINFO/ETC/GMT [1919973] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.814 /USR/SHARE/ZONEINFO/ETC/GMT [1920713] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.815 /USR/SHARE/ZONEINFO/ETC/GMT [1920887] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.815 /USR/SHARE/ZONEINFO/ETC/GMT [1923597] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.816 /USR/SHARE/ZONEINFO/ETC/GMT [1919813] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.817 /USR/SHARE/ZONEINFO/ETC/GMT [1919962] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.817 /USR/SHARE/ZONEINFO/ETC/GMT [1919887] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.817 /USR/SHARE/ZONEINFO/ETC/GMT [1923548] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.817 /USR/SHARE/ZONEINFO/ETC/GMT [1923292] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.817 /USR/SHARE/ZONEINFO/ETC/GMT [1920617] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.818 /USR/SHARE/ZONEINFO/ETC/GMT [1923062] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.818 /USR/SHARE/ZONEINFO/ETC/GMT [1920616] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.819 /USR/SHARE/ZONEINFO/ETC/GMT [1919809] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.820 /USR/SHARE/ZONEINFO/ETC/GMT [1919768] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.820 /USR/SHARE/ZONEINFO/ETC/GMT [1923544] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.820 /USR/SHARE/ZONEINFO/ETC/GMT [1923160] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.820 /USR/SHARE/ZONEINFO/ETC/GMT [1920100] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.821 /USR/SHARE/ZONEINFO/ETC/GMT [1920908] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.821 /USR/SHARE/ZONEINFO/ETC/GMT [1920384] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.823 /USR/SHARE/ZONEINFO/ETC/GMT [1920905] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.823 /USR/SHARE/ZONEINFO/ETC/GMT [1919767] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.823 /USR/SHARE/ZONEINFO/ETC/GMT [1923534] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.824 /USR/SHARE/ZONEINFO/ETC/GMT [1919961] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.824 /USR/SHARE/ZONEINFO/ETC/GMT [1920898] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.824 /USR/SHARE/ZONEINFO/ETC/GMT [1920383] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.824 /USR/SHARE/ZONEINFO/ETC/GMT [1922372] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.826 /USR/SHARE/ZONEINFO/ETC/GMT [1920326] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.826 /USR/SHARE/ZONEINFO/ETC/GMT [1919861] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.827 /USR/SHARE/ZONEINFO/ETC/GMT [1919763] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.827 /USR/SHARE/ZONEINFO/ETC/GMT [1920290] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.827 /USR/SHARE/ZONEINFO/ETC/GMT [1920330] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.827 /USR/SHARE/ZONEINFO/ETC/GMT [1920801] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.829 /USR/SHARE/ZONEINFO/ETC/GMT [1920120] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.830 /USR/SHARE/ZONEINFO/ETC/GMT [1919978] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.830 /USR/SHARE/ZONEINFO/ETC/GMT [1920262] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.830 /USR/SHARE/ZONEINFO/ETC/GMT [1920321] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.830 /USR/SHARE/ZONEINFO/ETC/GMT [1919701] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.831 /USR/SHARE/ZONEINFO/ETC/GMT [1919953] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.832 /USR/SHARE/ZONEINFO/ETC/GMT [1920021] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.833 /USR/SHARE/ZONEINFO/ETC/GMT [1920366] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.833 /USR/SHARE/ZONEINFO/ETC/GMT [1919651] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.834 /USR/SHARE/ZONEINFO/ETC/GMT [1919671] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.834 /USR/SHARE/ZONEINFO/ETC/GMT [1919931] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.835 /USR/SHARE/ZONEINFO/ETC/GMT [1919673] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.836 /USR/SHARE/ZONEINFO/ETC/GMT [1920395] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.839 /USR/SHARE/ZONEINFO/ETC/GMT [1920903] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.841 /USR/SHARE/ZONEINFO/ETC/GMT [1921023] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.844 /USR/SHARE/ZONEINFO/ETC/GMT [1921732] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.846 /USR/SHARE/ZONEINFO/ETC/GMT [1922112] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.848 /USR/SHARE/ZONEINFO/ETC/GMT [1922189] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.850 /USR/SHARE/ZONEINFO/ETC/GMT [1923404] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.853 /USR/SHARE/ZONEINFO/ETC/GMT [1923560] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.855 /USR/SHARE/ZONEINFO/ETC/GMT [1923565] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.858 /USR/SHARE/ZONEINFO/ETC/GMT [1923569] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.861 /USR/SHARE/ZONEINFO/ETC/GMT [1923594] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.863 /USR/SHARE/ZONEINFO/ETC/GMT [1923719] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.863 /USR/SHARE/ZONEINFO/ETC/GMT [1925014] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.866 /USR/SHARE/ZONEINFO/ETC/GMT [1925060] FATAL: terminating connection due to unexpected postmaster exit 2025-12-18 08:40:36.866 /USR/SHARE/ZONEINFO/ETC/GMT [1925083] FATAL: terminating connection due to unexpected postmaster exit ERROR tests/test_translation_mapping.py::TestClassic::test_set_item - sqlalch... ERROR tests/test_translation_mapping.py::TestClassic::test_repr - sqlalchemy.... ERROR tests/test_translation_mapping.py::TestClassic::test_iter - sqlalchemy.... ERROR tests/test_translation_mapping.py::TestClassic::test_values - sqlalchem... ============ 1 failed, 2 passed, 114 warnings, 116 errors in 25.92s ============ stopping server clean up make[1]: Leaving directory '/build/reproducible-path/sqlalchemy-i18n-1.1.0' create-stamp debian/debhelper-build-stamp dh_testroot -O--buildsystem=pybuild dh_prep -O--buildsystem=pybuild dh_auto_install --destdir=debian/python3-sqlalchemy-i18n/ -O--buildsystem=pybuild I: pybuild base:311: /usr/bin/python3.13 setup.py install --root /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n running install /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` directly. Instead, use pypa/build, pypa/installer or other standards-based tools. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. ******************************************************************************** !! self.initialize_options() running build running build_py running egg_info writing SQLAlchemy_i18n.egg-info/PKG-INFO writing dependency_links to SQLAlchemy_i18n.egg-info/dependency_links.txt writing requirements to SQLAlchemy_i18n.egg-info/requires.txt writing top-level names to SQLAlchemy_i18n.egg-info/top_level.txt reading manifest file 'SQLAlchemy_i18n.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*.pyc' found under directory 'docs' warning: no previously-included files found matching 'docs/_themes/.git' adding license file 'LICENSE' writing manifest file 'SQLAlchemy_i18n.egg-info/SOURCES.txt' running install_lib creating /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.13/dist-packages creating /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.13/dist-packages/sqlalchemy_i18n copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.13_sqlalchemy-i18n/build/sqlalchemy_i18n/__init__.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.13/dist-packages/sqlalchemy_i18n copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.13_sqlalchemy-i18n/build/sqlalchemy_i18n/builders.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.13/dist-packages/sqlalchemy_i18n copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.13_sqlalchemy-i18n/build/sqlalchemy_i18n/comparators.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.13/dist-packages/sqlalchemy_i18n copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.13_sqlalchemy-i18n/build/sqlalchemy_i18n/exc.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.13/dist-packages/sqlalchemy_i18n copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.13_sqlalchemy-i18n/build/sqlalchemy_i18n/expressions.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.13/dist-packages/sqlalchemy_i18n copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.13_sqlalchemy-i18n/build/sqlalchemy_i18n/manager.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.13/dist-packages/sqlalchemy_i18n copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.13_sqlalchemy-i18n/build/sqlalchemy_i18n/translatable.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.13/dist-packages/sqlalchemy_i18n copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.13_sqlalchemy-i18n/build/sqlalchemy_i18n/utils.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.13/dist-packages/sqlalchemy_i18n byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.13/dist-packages/sqlalchemy_i18n/__init__.py to __init__.cpython-313.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.13/dist-packages/sqlalchemy_i18n/builders.py to builders.cpython-313.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.13/dist-packages/sqlalchemy_i18n/comparators.py to comparators.cpython-313.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.13/dist-packages/sqlalchemy_i18n/exc.py to exc.cpython-313.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.13/dist-packages/sqlalchemy_i18n/expressions.py to expressions.cpython-313.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.13/dist-packages/sqlalchemy_i18n/manager.py to manager.cpython-313.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.13/dist-packages/sqlalchemy_i18n/translatable.py to translatable.cpython-313.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.13/dist-packages/sqlalchemy_i18n/utils.py to utils.cpython-313.pyc running install_egg_info Copying SQLAlchemy_i18n.egg-info to /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.13/dist-packages/SQLAlchemy_i18n-1.1.0.egg-info Skipping SOURCES.txt running install_scripts I: pybuild base:311: /usr/bin/python3 setup.py install --root /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n running install /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` directly. Instead, use pypa/build, pypa/installer or other standards-based tools. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. ******************************************************************************** !! self.initialize_options() running build running build_py running egg_info writing SQLAlchemy_i18n.egg-info/PKG-INFO writing dependency_links to SQLAlchemy_i18n.egg-info/dependency_links.txt writing requirements to SQLAlchemy_i18n.egg-info/requires.txt writing top-level names to SQLAlchemy_i18n.egg-info/top_level.txt reading manifest file 'SQLAlchemy_i18n.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*.pyc' found under directory 'docs' warning: no previously-included files found matching 'docs/_themes/.git' adding license file 'LICENSE' writing manifest file 'SQLAlchemy_i18n.egg-info/SOURCES.txt' running install_lib creating /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages creating /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/build creating /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/build/sqlalchemy_i18n copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/build/sqlalchemy_i18n/__init__.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/build/sqlalchemy_i18n copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/build/sqlalchemy_i18n/builders.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/build/sqlalchemy_i18n copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/build/sqlalchemy_i18n/comparators.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/build/sqlalchemy_i18n copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/build/sqlalchemy_i18n/exc.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/build/sqlalchemy_i18n copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/build/sqlalchemy_i18n/expressions.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/build/sqlalchemy_i18n copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/build/sqlalchemy_i18n/manager.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/build/sqlalchemy_i18n copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/build/sqlalchemy_i18n/translatable.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/build/sqlalchemy_i18n copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/build/sqlalchemy_i18n/utils.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/build/sqlalchemy_i18n creating /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/tests/test_translation_mapping.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/tests/test_translation_auto_creation_with_non_nullables.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/tests/test_translation_auto_creation.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/tests/test_translatable.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/tests/test_relationships.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/tests/test_property_collision.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/tests/test_joined_table_inheritance.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/tests/test_joined_loading.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/tests/test_join_expressions.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/tests/test_hybrid_property_exclusion.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/tests/test_hybrid_property_as_dynamic_source_locale.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/tests/test_find_translations.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/tests/test_fallback_translation.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/tests/test_fallback_locale_without_class_default.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/tests/test_fallback_locale_as_callable.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/tests/test_expressions.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/tests/test_custom_base_class.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/tests/test_current_translation_property_with_locale.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/tests/test_current_translation_property.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/tests/test_configuration.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/tests/test_composite_primary_key.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/tests/test_comparator.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/tests/test_common_base_class.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/tests/__init__.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests creating /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/sqlalchemy_i18n copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/sqlalchemy_i18n/__init__.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/sqlalchemy_i18n copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/sqlalchemy_i18n/builders.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/sqlalchemy_i18n copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/sqlalchemy_i18n/comparators.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/sqlalchemy_i18n copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/sqlalchemy_i18n/exc.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/sqlalchemy_i18n copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/sqlalchemy_i18n/expressions.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/sqlalchemy_i18n copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/sqlalchemy_i18n/manager.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/sqlalchemy_i18n copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/sqlalchemy_i18n/translatable.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/sqlalchemy_i18n copying /build/reproducible-path/sqlalchemy-i18n-1.1.0/.pybuild/cpython3_3.12_sqlalchemy-i18n/build/sqlalchemy_i18n/utils.py -> /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/sqlalchemy_i18n byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/build/sqlalchemy_i18n/__init__.py to __init__.cpython-312.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/build/sqlalchemy_i18n/builders.py to builders.cpython-312.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/build/sqlalchemy_i18n/comparators.py to comparators.cpython-312.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/build/sqlalchemy_i18n/exc.py to exc.cpython-312.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/build/sqlalchemy_i18n/expressions.py to expressions.cpython-312.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/build/sqlalchemy_i18n/manager.py to manager.cpython-312.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/build/sqlalchemy_i18n/translatable.py to translatable.cpython-312.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/build/sqlalchemy_i18n/utils.py to utils.cpython-312.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests/test_translation_mapping.py to test_translation_mapping.cpython-312.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests/test_translation_auto_creation_with_non_nullables.py to test_translation_auto_creation_with_non_nullables.cpython-312.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests/test_translation_auto_creation.py to test_translation_auto_creation.cpython-312.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests/test_translatable.py to test_translatable.cpython-312.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests/test_relationships.py to test_relationships.cpython-312.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests/test_property_collision.py to test_property_collision.cpython-312.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests/test_joined_table_inheritance.py to test_joined_table_inheritance.cpython-312.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests/test_joined_loading.py to test_joined_loading.cpython-312.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests/test_join_expressions.py to test_join_expressions.cpython-312.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests/test_hybrid_property_exclusion.py to test_hybrid_property_exclusion.cpython-312.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests/test_hybrid_property_as_dynamic_source_locale.py to test_hybrid_property_as_dynamic_source_locale.cpython-312.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests/test_find_translations.py to test_find_translations.cpython-312.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests/test_fallback_translation.py to test_fallback_translation.cpython-312.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests/test_fallback_locale_without_class_default.py to test_fallback_locale_without_class_default.cpython-312.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests/test_fallback_locale_as_callable.py to test_fallback_locale_as_callable.cpython-312.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests/test_expressions.py to test_expressions.cpython-312.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests/test_custom_base_class.py to test_custom_base_class.cpython-312.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests/test_current_translation_property_with_locale.py to test_current_translation_property_with_locale.cpython-312.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests/test_current_translation_property.py to test_current_translation_property.cpython-312.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests/test_configuration.py to test_configuration.cpython-312.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests/test_composite_primary_key.py to test_composite_primary_key.cpython-312.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests/test_comparator.py to test_comparator.cpython-312.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests/test_common_base_class.py to test_common_base_class.cpython-312.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/tests/__init__.py to __init__.cpython-312.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/sqlalchemy_i18n/__init__.py to __init__.cpython-312.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/sqlalchemy_i18n/builders.py to builders.cpython-312.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/sqlalchemy_i18n/comparators.py to comparators.cpython-312.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/sqlalchemy_i18n/exc.py to exc.cpython-312.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/sqlalchemy_i18n/expressions.py to expressions.cpython-312.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/sqlalchemy_i18n/manager.py to manager.cpython-312.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/sqlalchemy_i18n/translatable.py to translatable.cpython-312.pyc byte-compiling /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/sqlalchemy_i18n/utils.py to utils.cpython-312.pyc running install_egg_info Copying SQLAlchemy_i18n.egg-info to /build/reproducible-path/sqlalchemy-i18n-1.1.0/debian/python3-sqlalchemy-i18n/usr/lib/python3.12/dist-packages/SQLAlchemy_i18n-1.1.0.egg-info Skipping SOURCES.txt running install_scripts dh_installdocs -O--buildsystem=pybuild dh_sphinxdoc -O--buildsystem=pybuild dh_installchangelogs -O--buildsystem=pybuild dh_python3 -O--buildsystem=pybuild dh_installsystemduser -O--buildsystem=pybuild dh_perl -O--buildsystem=pybuild dh_link -O--buildsystem=pybuild dh_strip_nondeterminism -O--buildsystem=pybuild debian/rules override_dh_compress make[1]: Entering directory '/build/reproducible-path/sqlalchemy-i18n-1.1.0' dh_compress -X.js -X.html make[1]: Leaving directory '/build/reproducible-path/sqlalchemy-i18n-1.1.0' dh_fixperms -O--buildsystem=pybuild dh_missing -O--buildsystem=pybuild dh_installdeb -O--buildsystem=pybuild dh_gencontrol -O--buildsystem=pybuild dpkg-gencontrol: warning: package python3-sqlalchemy-i18n: substitution variable ${sphinxdoc:Built-Using} unused, but is defined dh_md5sums -O--buildsystem=pybuild dh_builddeb -O--buildsystem=pybuild dpkg-deb: building package 'python3-sqlalchemy-i18n' in '../python3-sqlalchemy-i18n_1.1.0-2_all.deb'. dpkg-genbuildinfo --build=binary -O../sqlalchemy-i18n_1.1.0-2_arm64.buildinfo dpkg-genchanges --build=binary -O../sqlalchemy-i18n_1.1.0-2_arm64.changes dpkg-genchanges: info: binary-only upload (no source code included) dpkg-source --after-build . dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration I: user script /srv/workspace/pbuilder/1889894/tmp/hooks/B01_cleanup starting I: user script /srv/workspace/pbuilder/1889894/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env I: removing directory /srv/workspace/pbuilder/1889894 and its subdirectories I: Current time: Thu Dec 18 08:40:46 +14 2025 I: pbuilder-time-stamp: 1765996846