0s autopkgtest [18:10:53]: starting date and time: 2024-11-14 18:10:53+0000 0s autopkgtest [18:10:53]: git checkout: 6f3be7a8 Fix armhf LXD image generation for plucky 0s autopkgtest [18:10:53]: host juju-7f2275-prod-proposed-migration-environment-15; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.xuxqs54k/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:sqlalchemy --apt-upgrade sqlalchemy-i18n --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=sqlalchemy/2.0.32+ds1-1ubuntu3 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-ppc64el --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-15@bos03-ppc64el-11.secgroup --name adt-plucky-ppc64el-sqlalchemy-i18n-20241114-181053-juju-7f2275-prod-proposed-migration-environment-15-ccc368ed-38bd-4e19-a3be-bed0466c101b --image adt/ubuntu-plucky-ppc64el-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-15 --net-id=net_prod-proposed-migration-ppc64el -e TERM=linux -e ''"'"'http_proxy=http://squid.internal:3128'"'"'' -e ''"'"'https_proxy=http://squid.internal:3128'"'"'' -e ''"'"'no_proxy=127.0.0.1,127.0.1.1,login.ubuntu.com,localhost,localdomain,novalocal,internal,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,keyserver.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,10.24.0.0/24,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com'"'"'' --mirror=http://ftpmaster.internal/ubuntu/ 77s autopkgtest [18:12:10]: testbed dpkg architecture: ppc64el 78s autopkgtest [18:12:11]: testbed apt version: 2.9.8 78s autopkgtest [18:12:11]: @@@@@@@@@@@@@@@@@@@@ test bed setup 79s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [73.9 kB] 79s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [7016 B] 79s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [14.0 kB] 79s Get:4 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [103 kB] 79s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [933 kB] 79s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el Packages [113 kB] 79s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/universe ppc64el Packages [688 kB] 80s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse ppc64el Packages [7096 B] 80s Fetched 1940 kB in 1s (1506 kB/s) 80s Reading package lists... 83s Reading package lists... 83s Building dependency tree... 83s Reading state information... 83s Calculating upgrade... 84s The following packages will be upgraded: 84s bpfcc-tools bpftrace libbpfcc libcap-ng0 libgnutls30t64 libjson-glib-1.0-0 84s libjson-glib-1.0-common libnewt0.52 libutempter0 pastebinit python3-bpfcc 84s python3-newt python3-systemd whiptail 84s 14 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 84s Need to get 4678 kB of archives. 84s After this operation, 423 kB of additional disk space will be used. 84s Get:1 http://ftpmaster.internal/ubuntu plucky/main ppc64el libcap-ng0 ppc64el 0.8.5-3build1 [16.3 kB] 84s Get:2 http://ftpmaster.internal/ubuntu plucky/main ppc64el libgnutls30t64 ppc64el 3.8.8-2ubuntu1 [1072 kB] 84s Get:3 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-newt ppc64el 0.52.24-2ubuntu4 [21.8 kB] 84s Get:4 http://ftpmaster.internal/ubuntu plucky/main ppc64el libnewt0.52 ppc64el 0.52.24-2ubuntu4 [62.1 kB] 84s Get:5 http://ftpmaster.internal/ubuntu plucky/main ppc64el whiptail ppc64el 0.52.24-2ubuntu4 [19.5 kB] 84s Get:6 http://ftpmaster.internal/ubuntu plucky/main ppc64el libbpfcc ppc64el 0.30.0+ds-1ubuntu5 [696 kB] 85s Get:7 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-bpfcc all 0.30.0+ds-1ubuntu5 [40.4 kB] 85s Get:8 http://ftpmaster.internal/ubuntu plucky/main ppc64el bpfcc-tools all 0.30.0+ds-1ubuntu5 [697 kB] 85s Get:9 http://ftpmaster.internal/ubuntu plucky/main ppc64el bpftrace ppc64el 0.21.2-2ubuntu2 [1898 kB] 85s Get:10 http://ftpmaster.internal/ubuntu plucky/main ppc64el libjson-glib-1.0-common all 1.10.0+ds-3 [5586 B] 85s Get:11 http://ftpmaster.internal/ubuntu plucky/main ppc64el libjson-glib-1.0-0 ppc64el 1.10.0+ds-3 [76.0 kB] 85s Get:12 http://ftpmaster.internal/ubuntu plucky/main ppc64el libutempter0 ppc64el 1.2.1-4 [9850 B] 85s Get:13 http://ftpmaster.internal/ubuntu plucky/main ppc64el pastebinit all 1.7.1-1 [14.9 kB] 85s Get:14 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-systemd ppc64el 235-1build5 [48.7 kB] 86s Fetched 4678 kB in 1s (3213 kB/s) 86s (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 ... 73767 files and directories currently installed.) 86s Preparing to unpack .../libcap-ng0_0.8.5-3build1_ppc64el.deb ... 86s Unpacking libcap-ng0:ppc64el (0.8.5-3build1) over (0.8.5-1) ... 86s Setting up libcap-ng0:ppc64el (0.8.5-3build1) ... 86s (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 ... 73767 files and directories currently installed.) 86s Preparing to unpack .../libgnutls30t64_3.8.8-2ubuntu1_ppc64el.deb ... 86s Unpacking libgnutls30t64:ppc64el (3.8.8-2ubuntu1) over (3.8.6-2ubuntu1) ... 86s Setting up libgnutls30t64:ppc64el (3.8.8-2ubuntu1) ... 86s (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 ... 73767 files and directories currently installed.) 86s Preparing to unpack .../00-python3-newt_0.52.24-2ubuntu4_ppc64el.deb ... 86s Unpacking python3-newt:ppc64el (0.52.24-2ubuntu4) over (0.52.24-2ubuntu3) ... 86s Preparing to unpack .../01-libnewt0.52_0.52.24-2ubuntu4_ppc64el.deb ... 86s Unpacking libnewt0.52:ppc64el (0.52.24-2ubuntu4) over (0.52.24-2ubuntu3) ... 86s Preparing to unpack .../02-whiptail_0.52.24-2ubuntu4_ppc64el.deb ... 86s Unpacking whiptail (0.52.24-2ubuntu4) over (0.52.24-2ubuntu3) ... 86s Preparing to unpack .../03-libbpfcc_0.30.0+ds-1ubuntu5_ppc64el.deb ... 86s Unpacking libbpfcc:ppc64el (0.30.0+ds-1ubuntu5) over (0.30.0+ds-1ubuntu4) ... 87s Preparing to unpack .../04-python3-bpfcc_0.30.0+ds-1ubuntu5_all.deb ... 87s Unpacking python3-bpfcc (0.30.0+ds-1ubuntu5) over (0.30.0+ds-1ubuntu4) ... 87s Preparing to unpack .../05-bpfcc-tools_0.30.0+ds-1ubuntu5_all.deb ... 87s Unpacking bpfcc-tools (0.30.0+ds-1ubuntu5) over (0.30.0+ds-1ubuntu4) ... 87s Preparing to unpack .../06-bpftrace_0.21.2-2ubuntu2_ppc64el.deb ... 87s Unpacking bpftrace (0.21.2-2ubuntu2) over (0.21.2-2) ... 87s Preparing to unpack .../07-libjson-glib-1.0-common_1.10.0+ds-3_all.deb ... 87s Unpacking libjson-glib-1.0-common (1.10.0+ds-3) over (1.10.0+ds-2) ... 87s Preparing to unpack .../08-libjson-glib-1.0-0_1.10.0+ds-3_ppc64el.deb ... 87s Unpacking libjson-glib-1.0-0:ppc64el (1.10.0+ds-3) over (1.10.0+ds-2) ... 87s Preparing to unpack .../09-libutempter0_1.2.1-4_ppc64el.deb ... 87s Unpacking libutempter0:ppc64el (1.2.1-4) over (1.2.1-3build1) ... 87s Preparing to unpack .../10-pastebinit_1.7.1-1_all.deb ... 87s Unpacking pastebinit (1.7.1-1) over (1.7.0-1) ... 87s Preparing to unpack .../11-python3-systemd_235-1build5_ppc64el.deb ... 87s Unpacking python3-systemd (235-1build5) over (235-1build4) ... 87s Setting up libnewt0.52:ppc64el (0.52.24-2ubuntu4) ... 87s Setting up pastebinit (1.7.1-1) ... 87s Setting up python3-newt:ppc64el (0.52.24-2ubuntu4) ... 88s Setting up libutempter0:ppc64el (1.2.1-4) ... 88s Setting up whiptail (0.52.24-2ubuntu4) ... 88s Setting up libjson-glib-1.0-common (1.10.0+ds-3) ... 88s Setting up libbpfcc:ppc64el (0.30.0+ds-1ubuntu5) ... 88s Setting up python3-bpfcc (0.30.0+ds-1ubuntu5) ... 88s Setting up python3-systemd (235-1build5) ... 88s Setting up bpftrace (0.21.2-2ubuntu2) ... 88s Setting up libjson-glib-1.0-0:ppc64el (1.10.0+ds-3) ... 88s Setting up bpfcc-tools (0.30.0+ds-1ubuntu5) ... 88s Processing triggers for man-db (2.12.1-3) ... 89s Processing triggers for libc-bin (2.40-1ubuntu3) ... 89s Reading package lists... 90s Building dependency tree... 90s Reading state information... 90s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 90s Hit:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease 90s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 91s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 91s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 92s Reading package lists... 92s Reading package lists... 93s Building dependency tree... 93s Reading state information... 93s Calculating upgrade... 93s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 93s Reading package lists... 93s Building dependency tree... 93s Reading state information... 94s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 96s autopkgtest [18:12:29]: testbed running kernel: Linux 6.11.0-8-generic #8-Ubuntu SMP Mon Sep 16 13:49:23 UTC 2024 97s autopkgtest [18:12:30]: @@@@@@@@@@@@@@@@@@@@ apt-source sqlalchemy-i18n 98s Get:1 http://ftpmaster.internal/ubuntu plucky/universe sqlalchemy-i18n 1.1.0-1build1 (dsc) [2462 B] 98s Get:2 http://ftpmaster.internal/ubuntu plucky/universe sqlalchemy-i18n 1.1.0-1build1 (tar) [28.2 kB] 98s Get:3 http://ftpmaster.internal/ubuntu plucky/universe sqlalchemy-i18n 1.1.0-1build1 (diff) [4212 B] 99s gpgv: Signature made Wed Jan 18 23:54:36 2023 UTC 99s gpgv: using RSA key 439884E6862A429C290DF63B033C4CA276024834 99s gpgv: issuer "athos.ribeiro@canonical.com" 99s gpgv: Can't check signature: No public key 99s dpkg-source: warning: cannot verify inline signature for ./sqlalchemy-i18n_1.1.0-1build1.dsc: no acceptable signature found 99s autopkgtest [18:12:32]: testing package sqlalchemy-i18n version 1.1.0-1build1 99s autopkgtest [18:12:32]: build not needed 99s autopkgtest [18:12:32]: test setup-db-and-run-tests.py: preparing testbed 103s Reading package lists... 103s Building dependency tree... 103s Reading state information... 103s Starting pkgProblemResolver with broken count: 0 103s Starting 2 pkgProblemResolver with broken count: 0 103s Done 103s The following additional packages will be installed: 103s libjs-jquery libjs-sphinxdoc libjs-underscore libjson-perl libpq5 libxslt1.1 103s postgresql postgresql-16 postgresql-client-16 postgresql-client-common 103s postgresql-common python3-arrow python3-dateutil python3-greenlet 103s python3-iniconfig python3-packaging python3-pluggy python3-psycopg2 103s python3-pytest python3-six python3-sqlalchemy python3-sqlalchemy-i18n 103s python3-sqlalchemy-utils ssl-cert 103s Suggested packages: 103s postgresql-doc postgresql-doc-16 python-arrow-doc python-greenlet-dev 103s python-greenlet-doc python-psycopg2-doc python-sqlalchemy-doc 103s python3-asyncpg python3-pg8000 python3-psycopg2cffi python3-aiosqlite 103s python3-mariadb-connector python3-mysqldb python3-mysql.connector 103s python3-pyodbc python3-pymssql python3-cx-oracle python3-oracledb 103s python-sqlalchemy-utils-doc python3-infinity python3-intervals 103s Recommended packages: 103s javascript-common libjson-xs-perl python3-sqlalchemy-ext 103s The following NEW packages will be installed: 103s autopkgtest-satdep libjs-jquery libjs-sphinxdoc libjs-underscore 103s libjson-perl libpq5 libxslt1.1 postgresql postgresql-16 postgresql-client-16 103s postgresql-client-common postgresql-common python3-arrow python3-dateutil 103s python3-greenlet python3-iniconfig python3-packaging python3-pluggy 103s python3-psycopg2 python3-pytest python3-six python3-sqlalchemy 103s python3-sqlalchemy-i18n python3-sqlalchemy-utils ssl-cert 103s 0 upgraded, 25 newly installed, 0 to remove and 0 not upgraded. 103s Need to get 21.5 MB/21.5 MB of archives. 103s After this operation, 77.9 MB of additional disk space will be used. 103s Get:1 /tmp/autopkgtest.CbTGFV/1-autopkgtest-satdep.deb autopkgtest-satdep ppc64el 0 [748 B] 104s Get:2 http://ftpmaster.internal/ubuntu plucky/main ppc64el libjson-perl all 4.10000-1 [81.9 kB] 104s Get:3 http://ftpmaster.internal/ubuntu plucky/main ppc64el postgresql-client-common all 262 [36.7 kB] 104s Get:4 http://ftpmaster.internal/ubuntu plucky/main ppc64el ssl-cert all 1.1.2ubuntu2 [18.0 kB] 104s Get:5 http://ftpmaster.internal/ubuntu plucky/main ppc64el postgresql-common all 262 [162 kB] 104s Get:6 http://ftpmaster.internal/ubuntu plucky/main ppc64el libjs-jquery all 3.6.1+dfsg+~3.5.14-1 [328 kB] 104s Get:7 http://ftpmaster.internal/ubuntu plucky/main ppc64el libjs-underscore all 1.13.4~dfsg+~1.11.4-3 [118 kB] 104s Get:8 http://ftpmaster.internal/ubuntu plucky/main ppc64el libjs-sphinxdoc all 7.4.7-4 [158 kB] 104s Get:9 http://ftpmaster.internal/ubuntu plucky/main ppc64el libpq5 ppc64el 17.0-1 [280 kB] 104s Get:10 http://ftpmaster.internal/ubuntu plucky/main ppc64el libxslt1.1 ppc64el 1.1.39-0exp1ubuntu1 [191 kB] 104s Get:11 http://ftpmaster.internal/ubuntu plucky/main ppc64el postgresql-client-16 ppc64el 16.4-3 [1400 kB] 104s Get:12 http://ftpmaster.internal/ubuntu plucky/main ppc64el postgresql-16 ppc64el 16.4-3 [16.6 MB] 106s Get:13 http://ftpmaster.internal/ubuntu plucky/main ppc64el postgresql all 16+262 [11.8 kB] 106s Get:14 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-six all 1.16.0-7 [13.1 kB] 106s Get:15 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-dateutil all 2.9.0-2 [80.3 kB] 106s Get:16 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-arrow all 1.3.0-1.1ubuntu1 [56.1 kB] 106s Get:17 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-iniconfig all 1.1.1-2 [6024 B] 106s Get:18 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-packaging all 24.1-1 [41.4 kB] 106s Get:19 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-pluggy all 1.5.0-1 [21.0 kB] 106s Get:20 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-psycopg2 ppc64el 2.9.9-2 [149 kB] 106s Get:21 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-pytest all 8.3.3-1 [251 kB] 106s Get:22 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-greenlet ppc64el 3.0.3-0ubuntu6 [164 kB] 106s Get:23 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el python3-sqlalchemy all 2.0.32+ds1-1ubuntu3 [1206 kB] 106s Get:24 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-sqlalchemy-utils all 0.41.1-0ubuntu1 [59.4 kB] 106s Get:25 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-sqlalchemy-i18n all 1.1.0-1build1 [26.7 kB] 107s Preconfiguring packages ... 107s Fetched 21.5 MB in 3s (7297 kB/s) 107s Selecting previously unselected package libjson-perl. 107s (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 ... 73773 files and directories currently installed.) 107s Preparing to unpack .../00-libjson-perl_4.10000-1_all.deb ... 107s Unpacking libjson-perl (4.10000-1) ... 107s Selecting previously unselected package postgresql-client-common. 107s Preparing to unpack .../01-postgresql-client-common_262_all.deb ... 107s Unpacking postgresql-client-common (262) ... 107s Selecting previously unselected package ssl-cert. 107s Preparing to unpack .../02-ssl-cert_1.1.2ubuntu2_all.deb ... 107s Unpacking ssl-cert (1.1.2ubuntu2) ... 107s Selecting previously unselected package postgresql-common. 107s Preparing to unpack .../03-postgresql-common_262_all.deb ... 107s Adding 'diversion of /usr/bin/pg_config to /usr/bin/pg_config.libpq-dev by postgresql-common' 107s Unpacking postgresql-common (262) ... 107s Selecting previously unselected package libjs-jquery. 107s Preparing to unpack .../04-libjs-jquery_3.6.1+dfsg+~3.5.14-1_all.deb ... 107s Unpacking libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 107s Selecting previously unselected package libjs-underscore. 107s Preparing to unpack .../05-libjs-underscore_1.13.4~dfsg+~1.11.4-3_all.deb ... 107s Unpacking libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 107s Selecting previously unselected package libjs-sphinxdoc. 107s Preparing to unpack .../06-libjs-sphinxdoc_7.4.7-4_all.deb ... 107s Unpacking libjs-sphinxdoc (7.4.7-4) ... 107s Selecting previously unselected package libpq5:ppc64el. 107s Preparing to unpack .../07-libpq5_17.0-1_ppc64el.deb ... 107s Unpacking libpq5:ppc64el (17.0-1) ... 107s Selecting previously unselected package libxslt1.1:ppc64el. 107s Preparing to unpack .../08-libxslt1.1_1.1.39-0exp1ubuntu1_ppc64el.deb ... 107s Unpacking libxslt1.1:ppc64el (1.1.39-0exp1ubuntu1) ... 107s Selecting previously unselected package postgresql-client-16. 107s Preparing to unpack .../09-postgresql-client-16_16.4-3_ppc64el.deb ... 107s Unpacking postgresql-client-16 (16.4-3) ... 107s Selecting previously unselected package postgresql-16. 107s Preparing to unpack .../10-postgresql-16_16.4-3_ppc64el.deb ... 107s Unpacking postgresql-16 (16.4-3) ... 108s Selecting previously unselected package postgresql. 108s Preparing to unpack .../11-postgresql_16+262_all.deb ... 108s Unpacking postgresql (16+262) ... 108s Selecting previously unselected package python3-six. 108s Preparing to unpack .../12-python3-six_1.16.0-7_all.deb ... 108s Unpacking python3-six (1.16.0-7) ... 108s Selecting previously unselected package python3-dateutil. 108s Preparing to unpack .../13-python3-dateutil_2.9.0-2_all.deb ... 108s Unpacking python3-dateutil (2.9.0-2) ... 108s Selecting previously unselected package python3-arrow. 108s Preparing to unpack .../14-python3-arrow_1.3.0-1.1ubuntu1_all.deb ... 108s Unpacking python3-arrow (1.3.0-1.1ubuntu1) ... 108s Selecting previously unselected package python3-iniconfig. 108s Preparing to unpack .../15-python3-iniconfig_1.1.1-2_all.deb ... 108s Unpacking python3-iniconfig (1.1.1-2) ... 108s Selecting previously unselected package python3-packaging. 108s Preparing to unpack .../16-python3-packaging_24.1-1_all.deb ... 108s Unpacking python3-packaging (24.1-1) ... 108s Selecting previously unselected package python3-pluggy. 108s Preparing to unpack .../17-python3-pluggy_1.5.0-1_all.deb ... 108s Unpacking python3-pluggy (1.5.0-1) ... 108s Selecting previously unselected package python3-psycopg2. 108s Preparing to unpack .../18-python3-psycopg2_2.9.9-2_ppc64el.deb ... 108s Unpacking python3-psycopg2 (2.9.9-2) ... 108s Selecting previously unselected package python3-pytest. 108s Preparing to unpack .../19-python3-pytest_8.3.3-1_all.deb ... 108s Unpacking python3-pytest (8.3.3-1) ... 108s Selecting previously unselected package python3-greenlet. 108s Preparing to unpack .../20-python3-greenlet_3.0.3-0ubuntu6_ppc64el.deb ... 108s Unpacking python3-greenlet (3.0.3-0ubuntu6) ... 108s Selecting previously unselected package python3-sqlalchemy. 108s Preparing to unpack .../21-python3-sqlalchemy_2.0.32+ds1-1ubuntu3_all.deb ... 108s Unpacking python3-sqlalchemy (2.0.32+ds1-1ubuntu3) ... 108s Selecting previously unselected package python3-sqlalchemy-utils. 108s Preparing to unpack .../22-python3-sqlalchemy-utils_0.41.1-0ubuntu1_all.deb ... 108s Unpacking python3-sqlalchemy-utils (0.41.1-0ubuntu1) ... 108s Selecting previously unselected package python3-sqlalchemy-i18n. 108s Preparing to unpack .../23-python3-sqlalchemy-i18n_1.1.0-1build1_all.deb ... 108s Unpacking python3-sqlalchemy-i18n (1.1.0-1build1) ... 108s Selecting previously unselected package autopkgtest-satdep. 108s Preparing to unpack .../24-1-autopkgtest-satdep.deb ... 108s Unpacking autopkgtest-satdep (0) ... 108s Setting up postgresql-client-common (262) ... 108s Setting up python3-iniconfig (1.1.1-2) ... 109s Setting up libpq5:ppc64el (17.0-1) ... 109s Setting up python3-six (1.16.0-7) ... 109s Setting up python3-packaging (24.1-1) ... 109s Setting up ssl-cert (1.1.2ubuntu2) ... 110s Created symlink '/etc/systemd/system/multi-user.target.wants/ssl-cert.service' → '/usr/lib/systemd/system/ssl-cert.service'. 110s Setting up python3-greenlet (3.0.3-0ubuntu6) ... 110s Setting up python3-psycopg2 (2.9.9-2) ... 110s Setting up python3-pluggy (1.5.0-1) ... 111s Setting up libjson-perl (4.10000-1) ... 111s Setting up libxslt1.1:ppc64el (1.1.39-0exp1ubuntu1) ... 111s Setting up python3-dateutil (2.9.0-2) ... 111s Setting up libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 111s Setting up libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 111s Setting up python3-arrow (1.3.0-1.1ubuntu1) ... 111s Setting up python3-pytest (8.3.3-1) ... 112s Setting up postgresql-client-16 (16.4-3) ... 112s update-alternatives: using /usr/share/postgresql/16/man/man1/psql.1.gz to provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto mode 113s Setting up python3-sqlalchemy (2.0.32+ds1-1ubuntu3) ... 114s Setting up postgresql-common (262) ... 115s 115s Creating config file /etc/postgresql-common/createcluster.conf with new version 117s Building PostgreSQL dictionaries from installed myspell/hunspell packages... 117s Removing obsolete dictionary files: 117s Created symlink '/etc/systemd/system/multi-user.target.wants/postgresql.service' → '/usr/lib/systemd/system/postgresql.service'. 117s Setting up libjs-sphinxdoc (7.4.7-4) ... 117s Setting up python3-sqlalchemy-utils (0.41.1-0ubuntu1) ... 118s Setting up python3-sqlalchemy-i18n (1.1.0-1build1) ... 118s Setting up postgresql-16 (16.4-3) ... 118s Creating new PostgreSQL cluster 16/main ... 118s /usr/lib/postgresql/16/bin/initdb -D /var/lib/postgresql/16/main --auth-local peer --auth-host scram-sha-256 --no-instructions 118s The files belonging to this database system will be owned by user "postgres". 118s This user must also own the server process. 118s 118s The database cluster will be initialized with locale "C.UTF-8". 118s The default database encoding has accordingly been set to "UTF8". 118s The default text search configuration will be set to "english". 118s 118s Data page checksums are disabled. 118s 118s fixing permissions on existing directory /var/lib/postgresql/16/main ... ok 118s creating subdirectories ... ok 118s selecting dynamic shared memory implementation ... posix 118s selecting default max_connections ... 100 118s selecting default shared_buffers ... 128MB 118s selecting default time zone ... Etc/UTC 118s creating configuration files ... ok 119s running bootstrap script ... ok 119s performing post-bootstrap initialization ... ok 119s syncing data to disk ... ok 124s Setting up postgresql (16+262) ... 124s Setting up autopkgtest-satdep (0) ... 124s Processing triggers for man-db (2.12.1-3) ... 125s Processing triggers for libc-bin (2.40-1ubuntu3) ... 127s (Reading database ... 76557 files and directories currently installed.) 127s Removing autopkgtest-satdep (0) ... 128s autopkgtest [18:13:01]: test setup-db-and-run-tests.py: [----------------------- 129s The files belonging to this database system will be owned by user "ubuntu". 129s This user must also own the server process. 129s 129s The database cluster will be initialized with this locale configuration: 129s provider: libc 129s LC_COLLATE: C.UTF-8 129s LC_CTYPE: C.UTF-8 129s LC_MESSAGES: C 129s LC_MONETARY: C.UTF-8 129s LC_NUMERIC: C.UTF-8 129s LC_TIME: C.UTF-8 129s The default database encoding has accordingly been set to "UTF8". 129s The default text search configuration will be set to "english". 129s 129s Data page checksums are disabled. 129s 129s creating directory /tmp/tmp_3p87oo9/data ... ok 129s creating subdirectories ... ok 129s selecting dynamic shared memory implementation ... posix 129s selecting default max_connections ... 100 129s selecting default shared_buffers ... 128MB 129s selecting default time zone ... Etc/UTC 129s creating configuration files ... ok 129s running bootstrap script ... ok 130s performing post-bootstrap initialization ... ok 130s syncing data to disk ... ok 130s 130s Success. You can now start the database server using: 130s 130s /usr/lib/postgresql/16/bin/pg_ctl -D /tmp/tmp_3p87oo9/data -l logfile start 130s 130s 2024-11-14 18:13:03.362 UTC [4758] LOG: starting PostgreSQL 16.4 (Ubuntu 16.4-3) on powerpc64le-unknown-linux-gnu, compiled by gcc (Ubuntu 14.2.0-7ubuntu1) 14.2.0, 64-bit 130s 2024-11-14 18:13:03.362 UTC [4758] LOG: listening on IPv6 address "::1", port 50991 130s 2024-11-14 18:13:03.362 UTC [4758] LOG: listening on IPv4 address "127.0.0.1", port 50991 130s 2024-11-14 18:13:03.363 UTC [4758] LOG: listening on Unix socket "/tmp/tmp_3p87oo9/tmp/.s.PGSQL.50991" 130s 2024-11-14 18:13:03.365 UTC [4761] LOG: database system was shut down at 2024-11-14 18:13:03 UTC 130s 2024-11-14 18:13:03.368 UTC [4758] LOG: database system is ready to accept connections 131s running initdb 131s starting server 131s ============================= test session starts ============================== 131s platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 131s rootdir: /tmp/autopkgtest.CbTGFV/build.1ix/src 131s plugins: typeguard-4.4.1 131s collected 119 items 131s 131s tests/test_common_base_class.py EE [ 1%] 132s tests/test_comparator.py EEEE [ 5%] 134s tests/test_composite_primary_key.py EE [ 6%] 134s tests/test_configuration.py EE [ 8%] 135s tests/test_current_translation_property.py EEEEEE [ 13%] 135s tests/test_current_translation_property_with_locale.py EE [ 15%] 135s tests/test_custom_base_class.py E [ 15%] 135s tests/test_expressions.py . [ 16%] 136s tests/test_fallback_locale_as_callable.py EEEE [ 20%] 137s tests/test_fallback_locale_without_class_default.py EEEE [ 23%] 138s tests/test_fallback_translation.py EEEEEE [ 28%] 139s tests/test_find_translations.py EEEE [ 31%] 140s tests/test_hybrid_property_as_dynamic_source_locale.py EE [ 33%] 140s tests/test_hybrid_property_exclusion.py FE [ 35%] 142s tests/test_join_expressions.py EEEEEEEE [ 42%] 144s tests/test_joined_loading.py EEEEEEEEEE [ 50%] 148s tests/test_joined_table_inheritance.py EEEEEEEEEEEEEEEE [ 63%] 148s tests/test_property_collision.py . [ 64%] 148s tests/test_relationships.py EE [ 66%] 152s tests/test_translatable.py EEEEEEEEEEEEEEEE [ 79%] 152s tests/test_translation_auto_creation.py EE [ 81%] 153s tests/test_translation_auto_creation_with_non_nullables.py EE [ 83%] 155s tests/test_translation_mapping.py EEEE2024-11-14 18:13:28.120 UTC [4868] FATAL: sorry, too many clients already 155s E2024-11-14 18:13:28.795 UTC [4869] FATAL: sorry, too many clients already 156s E2024-11-14 18:13:29.341 UTC [4870] FATAL: sorry, too many clients already 156s E2024-11-14 18:13:29.861 UTC [4871] FATAL: sorry, too many clients already 157s E2024-11-14 18:13:30.472 UTC [4872] FATAL: sorry, too many clients already 158s E2024-11-14 18:13:31.326 UTC [4873] FATAL: sorry, too many clients already 158s E2024-11-14 18:13:31.855 UTC [4874] FATAL: sorry, too many clients already 159s E2024-11-14 18:13:32.343 UTC [4875] FATAL: sorry, too many clients already 159s E2024-11-14 18:13:32.826 UTC [4876] FATAL: sorry, too many clients already 160s E2024-11-14 18:13:33.338 UTC [4877] FATAL: sorry, too many clients already 160s E2024-11-14 18:13:33.820 UTC [4878] FATAL: sorry, too many clients already 161s E2024-11-14 18:13:34.302 UTC [4879] FATAL: sorry, too many clients already 161s E2024-11-14 18:13:34.709 UTC [4880] FATAL: sorry, too many clients already 162s E2024-11-14 18:13:35.168 UTC [4881] FATAL: sorry, too many clients already 162s E2024-11-14 18:13:35.602 UTC [4882] FATAL: sorry, too many clients already 163s E2024-11-14 18:13:36.023 UTC [4883] FATAL: sorry, too many clients already 163s E [100%] 163s 163s ==================================== ERRORS ==================================== 163s _ ERROR at setup of TestDeclarative.test_translatable_dict_copied_to_each_child_class _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'TextItem' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s _ ERROR at setup of TestClassic.test_translatable_dict_copied_to_each_child_class _ 163s 163s self = 163s 163s def create_mappers(self): 163s > sa.orm.mapper(self.TextItem, self.textitems) 163s 163s tests/test_common_base_class.py:105: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.TextItem'>, Table('textitems', MetaData(), Column('id', Integer(), table=, primary_key=True, nullable=False), schema=None)) 163s kw = {} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s _ ERROR at setup of TestDeclarative.test_attribute_accessor_for_unknown_locale _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s __________ ERROR at setup of TestDeclarative.test_attribute_accessors __________ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s ___ ERROR at setup of TestClassic.test_attribute_accessor_for_unknown_locale ___ 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.metadata = sa.MetaData() 163s 163s self.engine = sa.create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s 163s self.create_tables() 163s self.create_models() 163s > self.create_mappers() 163s 163s tests/__init__.py:140: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:213: in create_mappers 163s sa.orm.mapper(self.Article, self.article) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 163s kw = {} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s ____________ ERROR at setup of TestClassic.test_attribute_accessors ____________ 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.metadata = sa.MetaData() 163s 163s self.engine = sa.create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s 163s self.create_tables() 163s self.create_models() 163s > self.create_mappers() 163s 163s tests/__init__.py:140: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:213: in create_mappers 163s sa.orm.mapper(self.Article, self.article) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 163s kw = {} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s _____________ ERROR at setup of TestDeclarative.test_relationships _____________ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s _______________ ERROR at setup of TestClassic.test_relationships _______________ 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.metadata = sa.MetaData() 163s 163s self.engine = sa.create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s 163s self.create_tables() 163s self.create_models() 163s > self.create_mappers() 163s 163s tests/__init__.py:140: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:213: in create_mappers 163s sa.orm.mapper(self.Article, self.article) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.Article'>, Table('article', MetaData(), C...y_key=True, nullable=False), Column('id2', Integer(), table=
, primary_key=True, nullable=False), schema=None)) 163s kw = {} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s _ ERROR at setup of TestTranslationBaseCustomization.test_customize_foreign_key_args _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['fi', 'en'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s _ ERROR at setup of TestTranslationBaseCustomization.test_customize_relationships_args _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['fi', 'en'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s __________ ERROR at setup of TestDeclarative.test_as_object_property ___________ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['fi', 'en'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s ___________ ERROR at setup of TestDeclarative.test_as_class_property ___________ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s ________________ ERROR at setup of TestDeclarative.test_setter _________________ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s ____________ ERROR at setup of TestClassic.test_as_object_property _____________ 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.metadata = sa.MetaData() 163s 163s self.engine = sa.create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s 163s self.create_tables() 163s self.create_models() 163s > self.create_mappers() 163s 163s tests/__init__.py:140: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:213: in create_mappers 163s sa.orm.mapper(self.Article, self.article) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 163s kw = {} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s _____________ ERROR at setup of TestClassic.test_as_class_property _____________ 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.metadata = sa.MetaData() 163s 163s self.engine = sa.create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s 163s self.create_tables() 163s self.create_models() 163s > self.create_mappers() 163s 163s tests/__init__.py:140: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:213: in create_mappers 163s sa.orm.mapper(self.Article, self.article) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 163s kw = {} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s __________________ ERROR at setup of TestClassic.test_setter ___________________ 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.metadata = sa.MetaData() 163s 163s self.engine = sa.create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s 163s self.create_tables() 163s self.create_models() 163s > self.create_mappers() 163s 163s tests/__init__.py:140: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:213: in create_mappers 163s sa.orm.mapper(self.Article, self.article) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 163s kw = {} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s ___ ERROR at setup of TestDeclarative.test_converts_locale_object_to_unicode ___ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s _____ ERROR at setup of TestClassic.test_converts_locale_object_to_unicode _____ 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.metadata = sa.MetaData() 163s 163s self.engine = sa.create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s 163s self.create_tables() 163s self.create_models() 163s > self.create_mappers() 163s 163s tests/__init__.py:140: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:213: in create_mappers 163s sa.orm.mapper(self.Article, self.article) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.Article'>, Table('arti...able=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 163s kw = {} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s _ ERROR at setup of TestDeclarative.test_translatable_dict_copied_to_each_child_class _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s _ ERROR at setup of TestDeclarative.test_hybrid_properties_support_callable_fallback_locales _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s ____________ ERROR at setup of TestDeclarative.test_locale_fallback ____________ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s _ ERROR at setup of TestClassic.test_hybrid_properties_support_callable_fallback_locales _ 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.metadata = sa.MetaData() 163s 163s self.engine = sa.create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s 163s self.create_tables() 163s self.create_models() 163s > self.create_mappers() 163s 163s tests/__init__.py:140: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:213: in create_mappers 163s sa.orm.mapper(self.Article, self.article) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.Article'>, Table('article', MetaDat...able=False), Column('locale', CHAR(length=2), table=
, default=ScalarElementColumnDefault('en')), schema=None)) 163s kw = {} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s ______________ ERROR at setup of TestClassic.test_locale_fallback ______________ 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.metadata = sa.MetaData() 163s 163s self.engine = sa.create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s 163s self.create_tables() 163s self.create_models() 163s > self.create_mappers() 163s 163s tests/__init__.py:140: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:213: in create_mappers 163s sa.orm.mapper(self.Article, self.article) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.Article'>, Table('article', MetaDat...able=False), Column('locale', CHAR(length=2), table=
, default=ScalarElementColumnDefault('en')), schema=None)) 163s kw = {} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s _ ERROR at setup of TestDeclarative.test_hybrid_properties_support_callable_fallback_locales _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s ____________ ERROR at setup of TestDeclarative.test_locale_fallback ____________ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s _ ERROR at setup of TestClassic.test_hybrid_properties_support_callable_fallback_locales _ 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.metadata = sa.MetaData() 163s 163s self.engine = sa.create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s 163s self.create_tables() 163s self.create_models() 163s > self.create_mappers() 163s 163s tests/__init__.py:140: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:213: in create_mappers 163s sa.orm.mapper(self.Article, self.article) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.Article'>, Table('article...able=False), Column('locale', CHAR(length=2), table=
, default=ScalarElementColumnDefault('en')), schema=None)) 163s kw = {} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s ______________ ERROR at setup of TestClassic.test_locale_fallback ______________ 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.metadata = sa.MetaData() 163s 163s self.engine = sa.create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s 163s self.create_tables() 163s self.create_models() 163s > self.create_mappers() 163s 163s tests/__init__.py:140: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:213: in create_mappers 163s sa.orm.mapper(self.Article, self.article) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.Article'>, Table('article...able=False), Column('locale', CHAR(length=2), table=
, default=ScalarElementColumnDefault('en')), schema=None)) 163s kw = {} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s _ ERROR at setup of TestDeclarative.test_as_object_property_with_force_locale __ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s ___________ ERROR at setup of TestDeclarative.test_as_class_property ___________ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s ________________ ERROR at setup of TestDeclarative.test_setter _________________ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s ___ ERROR at setup of TestClassic.test_as_object_property_with_force_locale ____ 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.metadata = sa.MetaData() 163s 163s self.engine = sa.create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s 163s self.create_tables() 163s self.create_models() 163s > self.create_mappers() 163s 163s tests/__init__.py:140: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:213: in create_mappers 163s sa.orm.mapper(self.Article, self.article) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 163s kw = {} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s _____________ ERROR at setup of TestClassic.test_as_class_property _____________ 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.metadata = sa.MetaData() 163s 163s self.engine = sa.create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s 163s self.create_tables() 163s self.create_models() 163s > self.create_mappers() 163s 163s tests/__init__.py:140: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:213: in create_mappers 163s sa.orm.mapper(self.Article, self.article) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 163s kw = {} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s __________________ ERROR at setup of TestClassic.test_setter ___________________ 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.metadata = sa.MetaData() 163s 163s self.engine = sa.create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s 163s self.create_tables() 163s self.create_models() 163s > self.create_mappers() 163s 163s tests/__init__.py:140: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:213: in create_mappers 163s sa.orm.mapper(self.Article, self.article) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 163s kw = {} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s _________ ERROR at setup of TestDeclarative.test_with_full_confidence __________ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s ________ ERROR at setup of TestDeclarative.test_with_varying_confidence ________ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi', 'sv'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s ___________ ERROR at setup of TestClassic.test_with_full_confidence ____________ 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.metadata = sa.MetaData() 163s 163s self.engine = sa.create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s 163s self.create_tables() 163s self.create_models() 163s > self.create_mappers() 163s 163s tests/__init__.py:140: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:213: in create_mappers 163s sa.orm.mapper(self.Article, self.article) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 163s kw = {} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s __________ ERROR at setup of TestClassic.test_with_varying_confidence __________ 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.metadata = sa.MetaData() 163s 163s self.engine = sa.create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s 163s self.create_tables() 163s self.create_models() 163s > self.create_mappers() 163s 163s tests/__init__.py:140: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:213: in create_mappers 163s sa.orm.mapper(self.Article, self.article) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 163s kw = {} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s __ ERROR at setup of TestDeclarative.test_joinedload_for_current_translation ___ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s > DeclarativeTestCase.setup_method(self, method) 163s 163s tests/test_hybrid_property_as_dynamic_source_locale.py:25: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:57: in setup_method 163s sa.orm.configure_mappers() 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi', 'sv'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s ____ ERROR at setup of TestClassic.test_joinedload_for_current_translation _____ 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s > ClassicTestCase.setup_method(self, method) 163s 163s tests/test_hybrid_property_as_dynamic_source_locale.py:61: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:140: in setup_method 163s self.create_mappers() 163s tests/__init__.py:213: in create_mappers 163s sa.orm.mapper(self.Article, self.article) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.Article'>, Table('arti...
), Column('_locale', CHAR(length=2), table=
, default=ScalarElementColumnDefault('en')), schema=None)) 163s kw = {} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s ____ ERROR at setup of TestClassic.test_does_not_generate_hybrid_properties ____ 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.metadata = sa.MetaData() 163s 163s self.engine = sa.create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s 163s self.create_tables() 163s self.create_models() 163s > self.create_mappers() 163s 163s tests/__init__.py:140: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:213: in create_mappers 163s sa.orm.mapper(self.Article, self.article) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.Article'>, Table('article', MetaData(...e=
, default=ScalarElementColumnDefault('en')), Column('word_count', Integer(), table=
), schema=None)) 163s kw = {} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s ___ ERROR at setup of TestDeclarative.test_current_translation_as_expression ___ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s _________ ERROR at setup of TestDeclarative.test_order_by_translation __________ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s _____ ERROR at setup of TestDeclarative.test_fallback_locale_as_expression _____ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s _______________ ERROR at setup of TestDeclarative.test_querying ________________ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s _____ ERROR at setup of TestClassic.test_current_translation_as_expression _____ 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.metadata = sa.MetaData() 163s 163s self.engine = sa.create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s 163s self.create_tables() 163s self.create_models() 163s > self.create_mappers() 163s 163s tests/__init__.py:140: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:213: in create_mappers 163s sa.orm.mapper(self.Article, self.article) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 163s kw = {} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s ___________ ERROR at setup of TestClassic.test_order_by_translation ____________ 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.metadata = sa.MetaData() 163s 163s self.engine = sa.create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s 163s self.create_tables() 163s self.create_models() 163s > self.create_mappers() 163s 163s tests/__init__.py:140: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:213: in create_mappers 163s sa.orm.mapper(self.Article, self.article) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 163s kw = {} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s _______ ERROR at setup of TestClassic.test_fallback_locale_as_expression _______ 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.metadata = sa.MetaData() 163s 163s self.engine = sa.create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s 163s self.create_tables() 163s self.create_models() 163s > self.create_mappers() 163s 163s tests/__init__.py:140: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:213: in create_mappers 163s sa.orm.mapper(self.Article, self.article) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 163s kw = {} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s _________________ ERROR at setup of TestClassic.test_querying __________________ 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.metadata = sa.MetaData() 163s 163s self.engine = sa.create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s 163s self.create_tables() 163s self.create_models() 163s > self.create_mappers() 163s 163s tests/__init__.py:140: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:213: in create_mappers 163s sa.orm.mapper(self.Article, self.article) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 163s kw = {} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s __ ERROR at setup of TestDeclarative.test_joinedload_for_current_translation ___ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s > DeclarativeTestCase.setup_method(self, method) 163s 163s tests/test_joined_loading.py:59: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:57: in setup_method 163s sa.orm.configure_mappers() 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s _ ERROR at setup of TestDeclarative.test_contains_eager_for_current_translation _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s > DeclarativeTestCase.setup_method(self, method) 163s 163s tests/test_joined_loading.py:59: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:57: in setup_method 163s sa.orm.configure_mappers() 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s ___ ERROR at setup of TestDeclarative.test_joinedload_for_single_translation ___ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s > DeclarativeTestCase.setup_method(self, method) 163s 163s tests/test_joined_loading.py:59: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:57: in setup_method 163s sa.orm.configure_mappers() 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s _____ ERROR at setup of TestDeclarative.test_joinedload_for_attr_accessor ______ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s > DeclarativeTestCase.setup_method(self, method) 163s 163s tests/test_joined_loading.py:59: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:57: in setup_method 163s sa.orm.configure_mappers() 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s ____ ERROR at setup of TestDeclarative.test_joinedload_for_all_translations ____ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s > DeclarativeTestCase.setup_method(self, method) 163s 163s tests/test_joined_loading.py:59: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:57: in setup_method 163s sa.orm.configure_mappers() 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s ____ ERROR at setup of TestClassic.test_joinedload_for_current_translation _____ 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s > ClassicTestCase.setup_method(self, method) 163s 163s tests/test_joined_loading.py:71: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:140: in setup_method 163s self.create_mappers() 163s tests/__init__.py:213: in create_mappers 163s sa.orm.mapper(self.Article, self.article) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 163s kw = {} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s __ ERROR at setup of TestClassic.test_contains_eager_for_current_translation ___ 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s > ClassicTestCase.setup_method(self, method) 163s 163s tests/test_joined_loading.py:71: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:140: in setup_method 163s self.create_mappers() 163s tests/__init__.py:213: in create_mappers 163s sa.orm.mapper(self.Article, self.article) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 163s kw = {} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s _____ ERROR at setup of TestClassic.test_joinedload_for_single_translation _____ 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s > ClassicTestCase.setup_method(self, method) 163s 163s tests/test_joined_loading.py:71: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:140: in setup_method 163s self.create_mappers() 163s tests/__init__.py:213: in create_mappers 163s sa.orm.mapper(self.Article, self.article) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 163s kw = {} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s _______ ERROR at setup of TestClassic.test_joinedload_for_attr_accessor ________ 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s > ClassicTestCase.setup_method(self, method) 163s 163s tests/test_joined_loading.py:71: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:140: in setup_method 163s self.create_mappers() 163s tests/__init__.py:213: in create_mappers 163s sa.orm.mapper(self.Article, self.article) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 163s kw = {} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s ______ ERROR at setup of TestClassic.test_joinedload_for_all_translations ______ 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s > ClassicTestCase.setup_method(self, method) 163s 163s tests/test_joined_loading.py:71: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:140: in setup_method 163s self.create_mappers() 163s tests/__init__.py:213: in create_mappers 163s sa.orm.mapper(self.Article, self.article) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 163s kw = {} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s ________ ERROR at setup of TestDeclarative.test_auto_creates_relations _________ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 163s mapper._adapt_inherited_property(key, prop, init) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 163s self._configure_property(key, prop, init=False, setparent=False) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 163s prop.instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 163s attributes.register_descriptor( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 163s descriptor = InstrumentedAttribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 163s self.dispatch._update(base[key].dispatch) 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s ___ ERROR at setup of TestDeclarative.test_auto_creates_current_translation ____ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 163s mapper._adapt_inherited_property(key, prop, init) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 163s self._configure_property(key, prop, init=False, setparent=False) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 163s prop.instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 163s attributes.register_descriptor( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 163s descriptor = InstrumentedAttribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 163s self.dispatch._update(base[key].dispatch) 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s ________ ERROR at setup of TestDeclarative.test_translatable_attributes ________ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 163s mapper._adapt_inherited_property(key, prop, init) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 163s self._configure_property(key, prop, init=False, setparent=False) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 163s prop.instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 163s attributes.register_descriptor( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 163s descriptor = InstrumentedAttribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 163s self.dispatch._update(base[key].dispatch) 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s _______ ERROR at setup of TestDeclarative.test_inherits_child_properties _______ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 163s mapper._adapt_inherited_property(key, prop, init) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 163s self._configure_property(key, prop, init=False, setparent=False) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 163s prop.instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 163s attributes.register_descriptor( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 163s descriptor = InstrumentedAttribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 163s self.dispatch._update(base[key].dispatch) 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s __________ ERROR at setup of TestDeclarative.test_translated_columns ___________ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 163s mapper._adapt_inherited_property(key, prop, init) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 163s self._configure_property(key, prop, init=False, setparent=False) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 163s prop.instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 163s attributes.register_descriptor( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 163s descriptor = InstrumentedAttribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 163s self.dispatch._update(base[key].dispatch) 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s __________ ERROR at setup of TestDeclarative.test_property_delegators __________ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 163s mapper._adapt_inherited_property(key, prop, init) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 163s self._configure_property(key, prop, init=False, setparent=False) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 163s prop.instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 163s attributes.register_descriptor( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 163s descriptor = InstrumentedAttribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 163s self.dispatch._update(base[key].dispatch) 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s ______________ ERROR at setup of TestDeclarative.test_table_name _______________ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 163s mapper._adapt_inherited_property(key, prop, init) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 163s self._configure_property(key, prop, init=False, setparent=False) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 163s prop.instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 163s attributes.register_descriptor( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 163s descriptor = InstrumentedAttribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 163s self.dispatch._update(base[key].dispatch) 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s _________ ERROR at setup of TestDeclarative.test_inherits_parent_table _________ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 163s mapper._adapt_inherited_property(key, prop, init) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 163s self._configure_property(key, prop, init=False, setparent=False) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 163s prop.instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 163s attributes.register_descriptor( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 163s descriptor = InstrumentedAttribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 163s self.dispatch._update(base[key].dispatch) 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s __________ ERROR at setup of TestClassic.test_auto_creates_relations ___________ 163s 163s self = 163s 163s def create_mappers(self): 163s > sa.orm.mapper(self.TextItem, self.text_item, 163s polymorphic_on=self.text_item.c.discriminator) 163s 163s tests/test_joined_table_inheritance.py:155: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 163s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s _____ ERROR at setup of TestClassic.test_auto_creates_current_translation ______ 163s 163s self = 163s 163s def create_mappers(self): 163s > sa.orm.mapper(self.TextItem, self.text_item, 163s polymorphic_on=self.text_item.c.discriminator) 163s 163s tests/test_joined_table_inheritance.py:155: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 163s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s __________ ERROR at setup of TestClassic.test_translatable_attributes __________ 163s 163s self = 163s 163s def create_mappers(self): 163s > sa.orm.mapper(self.TextItem, self.text_item, 163s polymorphic_on=self.text_item.c.discriminator) 163s 163s tests/test_joined_table_inheritance.py:155: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 163s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s _________ ERROR at setup of TestClassic.test_inherits_child_properties _________ 163s 163s self = 163s 163s def create_mappers(self): 163s > sa.orm.mapper(self.TextItem, self.text_item, 163s polymorphic_on=self.text_item.c.discriminator) 163s 163s tests/test_joined_table_inheritance.py:155: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 163s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s ____________ ERROR at setup of TestClassic.test_translated_columns _____________ 163s 163s self = 163s 163s def create_mappers(self): 163s > sa.orm.mapper(self.TextItem, self.text_item, 163s polymorphic_on=self.text_item.c.discriminator) 163s 163s tests/test_joined_table_inheritance.py:155: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 163s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s ____________ ERROR at setup of TestClassic.test_property_delegators ____________ 163s 163s self = 163s 163s def create_mappers(self): 163s > sa.orm.mapper(self.TextItem, self.text_item, 163s polymorphic_on=self.text_item.c.discriminator) 163s 163s tests/test_joined_table_inheritance.py:155: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 163s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s ________________ ERROR at setup of TestClassic.test_table_name _________________ 163s 163s self = 163s 163s def create_mappers(self): 163s > sa.orm.mapper(self.TextItem, self.text_item, 163s polymorphic_on=self.text_item.c.discriminator) 163s 163s tests/test_joined_table_inheritance.py:155: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 163s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s ___________ ERROR at setup of TestClassic.test_inherits_parent_table ___________ 163s 163s self = 163s 163s def create_mappers(self): 163s > sa.orm.mapper(self.TextItem, self.text_item, 163s polymorphic_on=self.text_item.c.discriminator) 163s 163s tests/test_joined_table_inheritance.py:155: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 163s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s ___________ ERROR at setup of TestDeclarative.test_nullify_relation ____________ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Category' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s _____________ ERROR at setup of TestClassic.test_nullify_relation ______________ 163s 163s self = 163s 163s def create_mappers(self): 163s > sa.orm.mapper(self.Article, self.article) 163s 163s tests/test_relationships.py:101: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.Article'>, Table('article', MetaData(), Column('i...), table=
, primary_key=True, nullable=False), Column('content', UnicodeText(), table=
), schema=None)) 163s kw = {} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s ________ ERROR at setup of TestDeclarative.test_auto_creates_relations _________ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s ________ ERROR at setup of TestDeclarative.test_translatable_attributes ________ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s _______ ERROR at setup of TestDeclarative.test_relationship_consistency ________ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s __________ ERROR at setup of TestDeclarative.test_property_delegators __________ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s ____________ ERROR at setup of TestDeclarative.test_commit_session _____________ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s ________________ ERROR at setup of TestDeclarative.test_delete _________________ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s __________ ERROR at setup of TestDeclarative.test_translated_columns ___________ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s _ ERROR at setup of TestDeclarative.test_appends_locale_column_to_translation_table _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s __________ ERROR at setup of TestClassic.test_auto_creates_relations ___________ 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.metadata = sa.MetaData() 163s 163s self.engine = sa.create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s 163s self.create_tables() 163s self.create_models() 163s > self.create_mappers() 163s 163s tests/__init__.py:140: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:213: in create_mappers 163s sa.orm.mapper(self.Article, self.article) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 163s kw = {} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s __________ ERROR at setup of TestClassic.test_translatable_attributes __________ 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.metadata = sa.MetaData() 163s 163s self.engine = sa.create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s 163s self.create_tables() 163s self.create_models() 163s > self.create_mappers() 163s 163s tests/__init__.py:140: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:213: in create_mappers 163s sa.orm.mapper(self.Article, self.article) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 163s kw = {} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s _________ ERROR at setup of TestClassic.test_relationship_consistency __________ 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.metadata = sa.MetaData() 163s 163s self.engine = sa.create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s 163s self.create_tables() 163s self.create_models() 163s > self.create_mappers() 163s 163s tests/__init__.py:140: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:213: in create_mappers 163s sa.orm.mapper(self.Article, self.article) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 163s kw = {} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s ____________ ERROR at setup of TestClassic.test_property_delegators ____________ 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.metadata = sa.MetaData() 163s 163s self.engine = sa.create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s 163s self.create_tables() 163s self.create_models() 163s > self.create_mappers() 163s 163s tests/__init__.py:140: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:213: in create_mappers 163s sa.orm.mapper(self.Article, self.article) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 163s kw = {} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s ______________ ERROR at setup of TestClassic.test_commit_session _______________ 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.metadata = sa.MetaData() 163s 163s self.engine = sa.create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s 163s self.create_tables() 163s self.create_models() 163s > self.create_mappers() 163s 163s tests/__init__.py:140: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:213: in create_mappers 163s sa.orm.mapper(self.Article, self.article) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 163s kw = {} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s __________________ ERROR at setup of TestClassic.test_delete ___________________ 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.metadata = sa.MetaData() 163s 163s self.engine = sa.create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s 163s self.create_tables() 163s self.create_models() 163s > self.create_mappers() 163s 163s tests/__init__.py:140: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:213: in create_mappers 163s sa.orm.mapper(self.Article, self.article) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 163s kw = {} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s ____________ ERROR at setup of TestClassic.test_translated_columns _____________ 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.metadata = sa.MetaData() 163s 163s self.engine = sa.create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s 163s self.create_tables() 163s self.create_models() 163s > self.create_mappers() 163s 163s tests/__init__.py:140: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:213: in create_mappers 163s sa.orm.mapper(self.Article, self.article) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 163s kw = {} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s _ ERROR at setup of TestClassic.test_appends_locale_column_to_translation_table _ 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.metadata = sa.MetaData() 163s 163s self.engine = sa.create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s 163s self.create_tables() 163s self.create_models() 163s > self.create_mappers() 163s 163s tests/__init__.py:140: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:213: in create_mappers 163s sa.orm.mapper(self.Article, self.article) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 163s kw = {} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s ___ ERROR at setup of TestDeclarative.test_auto_creates_translation_objects ____ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s > DeclarativeTestCase.setup_method(self, method) 163s 163s tests/test_translation_auto_creation.py:21: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:57: in setup_method 163s sa.orm.configure_mappers() 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s _____ ERROR at setup of TestClassic.test_auto_creates_translation_objects ______ 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s > ClassicTestCase.setup_method(self, method) 163s 163s tests/test_translation_auto_creation.py:31: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:140: in setup_method 163s self.create_mappers() 163s tests/__init__.py:213: in create_mappers 163s sa.orm.mapper(self.Article, self.article) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 163s kw = {} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s _ ERROR at setup of TestDeclarative.test_auto_sets_nullables_as_empty_strings __ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'ExtendedArticle' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s > DeclarativeTestCase.setup_method(self, method) 163s 163s tests/test_translation_auto_creation_with_non_nullables.py:26: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:57: in setup_method 163s sa.orm.configure_mappers() 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 163s mapper._adapt_inherited_property(key, prop, init) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 163s self._configure_property(key, prop, init=False, setparent=False) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 163s prop.instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 163s attributes.register_descriptor( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 163s descriptor = InstrumentedAttribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 163s self.dispatch._update(base[key].dispatch) 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s ___ ERROR at setup of TestClassic.test_auto_sets_nullables_as_empty_strings ____ 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s > ClassicTestCase.setup_method(self, method) 163s 163s tests/test_translation_auto_creation_with_non_nullables.py:75: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s tests/__init__.py:140: in setup_method 163s self.create_mappers() 163s tests/test_translation_auto_creation_with_non_nullables.py:135: in create_mappers 163s sa.orm.mapper(self.Article, self.article, 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s arg = (.Article'>, Table('...ription', UnicodeText(), table=
), Column('discriminator', Unicode(length=255), table=
), schema=None)) 163s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=
)} 163s 163s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 163s """Placeholder for the now-removed ``mapper()`` function. 163s 163s Classical mappings should be performed using the 163s :meth:`_orm.registry.map_imperatively` method. 163s 163s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 163s of using the ``mapper()`` function as a target for ORM event listeners, 163s which failed to be marked as deprecated in the 1.4 series. 163s 163s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 163s class as the target. 163s 163s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 163s symbol remains temporarily as a placeholder for the event listening 163s use case. 163s 163s """ 163s > raise InvalidRequestError( 163s "The 'sqlalchemy.orm.mapper()' function is removed as of " 163s "SQLAlchemy 2.0. Use the " 163s "'sqlalchemy.orm.registry.map_imperatively()` " 163s "method of the ``sqlalchemy.orm.registry`` class to perform " 163s "classical mapping." 163s ) 163s 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. 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 163s ____________ ERROR at setup of TestDeclarative.test_proxy_contains _____________ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s _ ERROR at setup of TestDeclarative.test_translation_mapping_attribute_getter __ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s _ ERROR at setup of TestDeclarative.test_attribute_accessor_for_unknown_locale _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s __________ ERROR at setup of TestDeclarative.test_proxy_not_contains ___________ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s self.connection = self.engine.connect() 163s self.connection.query_count = 0 163s self.Model = declarative_base() 163s 163s self.create_models() 163s 163s if self.configure_mappers: 163s > sa.orm.configure_mappers() 163s 163s tests/__init__.py:57: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 163s _configure_registries(_all_registries(), cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s _________________ ERROR at setup of TestDeclarative.test_items _________________ 163s 163s self = 163s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 163s connection = None, _has_events = None, _allow_revalidate = True 163s _allow_autobegin = True 163s 163s def __init__( 163s self, 163s engine: Engine, 163s connection: Optional[PoolProxiedConnection] = None, 163s _has_events: Optional[bool] = None, 163s _allow_revalidate: bool = True, 163s _allow_autobegin: bool = True, 163s ): 163s """Construct a new Connection.""" 163s self.engine = engine 163s self.dialect = dialect = engine.dialect 163s 163s if connection is None: 163s try: 163s > self._dbapi_connection = engine.raw_connection() 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 163s return self.pool.connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 163s return _ConnectionFairy._checkout(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 163s fairy = _ConnectionRecord.checkout(pool) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 163s rec = pool._do_get() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 163s return self._create_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 163s return _ConnectionRecord(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 163s self.__connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 163s self.dbapi_connection = connection = pool._invoke_creator(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 163s return dialect.connect(*cargs, **cparams) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 163s return self.loaded_dbapi.connect(*cargs, **cparams) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 163s connection_factory = None, cursor_factory = None 163s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 163s kwasync = {} 163s 163s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 163s """ 163s Create a new database connection. 163s 163s The connection parameters can be specified as a string: 163s 163s conn = psycopg2.connect("dbname=test user=postgres password=secret") 163s 163s or using a set of keyword arguments: 163s 163s conn = psycopg2.connect(database="test", user="postgres", password="secret") 163s 163s Or as a mix of both. The basic connection parameters are: 163s 163s - *dbname*: the database name 163s - *database*: the database name (only as keyword argument) 163s - *user*: user name used to authenticate 163s - *password*: password used to authenticate 163s - *host*: database host address (defaults to UNIX socket if not provided) 163s - *port*: connection port number (defaults to 5432 if not provided) 163s 163s Using the *connection_factory* parameter a different class or connections 163s factory can be specified. It should be a callable object taking a dsn 163s argument. 163s 163s Using the *cursor_factory* parameter, a new default cursor factory will be 163s used by cursor(). 163s 163s Using *async*=True an asynchronous connection will be created. *async_* is 163s a valid alias (for Python versions where ``async`` is a keyword). 163s 163s Any other keyword parameter will be passed to the underlying client 163s library: the list of supported parameters depends on the library version. 163s 163s """ 163s kwasync = {} 163s if 'async' in kwargs: 163s kwasync['async'] = kwargs.pop('async') 163s if 'async_' in kwargs: 163s kwasync['async_'] = kwargs.pop('async_') 163s 163s dsn = _ext.make_dsn(dsn, **kwargs) 163s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 163s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 50991 failed: FATAL: sorry, too many clients already 163s 163s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 163s 163s The above exception was the direct cause of the following exception: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s > self.connection = self.engine.connect() 163s 163s tests/__init__.py:50: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 163s return self._connection_cls(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 163s Connection._handle_dbapi_exception_noconnection( 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 163s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 163s self._dbapi_connection = engine.raw_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 163s return self.pool.connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 163s return _ConnectionFairy._checkout(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 163s fairy = _ConnectionRecord.checkout(pool) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 163s rec = pool._do_get() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 163s return self._create_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 163s return _ConnectionRecord(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 163s self.__connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 163s self.dbapi_connection = connection = pool._invoke_creator(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 163s return dialect.connect(*cargs, **cparams) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 163s return self.loaded_dbapi.connect(*cargs, **cparams) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 163s connection_factory = None, cursor_factory = None 163s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 163s kwasync = {} 163s 163s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 163s """ 163s Create a new database connection. 163s 163s The connection parameters can be specified as a string: 163s 163s conn = psycopg2.connect("dbname=test user=postgres password=secret") 163s 163s or using a set of keyword arguments: 163s 163s conn = psycopg2.connect(database="test", user="postgres", password="secret") 163s 163s Or as a mix of both. The basic connection parameters are: 163s 163s - *dbname*: the database name 163s - *database*: the database name (only as keyword argument) 163s - *user*: user name used to authenticate 163s - *password*: password used to authenticate 163s - *host*: database host address (defaults to UNIX socket if not provided) 163s - *port*: connection port number (defaults to 5432 if not provided) 163s 163s Using the *connection_factory* parameter a different class or connections 163s factory can be specified. It should be a callable object taking a dsn 163s argument. 163s 163s Using the *cursor_factory* parameter, a new default cursor factory will be 163s used by cursor(). 163s 163s Using *async*=True an asynchronous connection will be created. *async_* is 163s a valid alias (for Python versions where ``async`` is a keyword). 163s 163s Any other keyword parameter will be passed to the underlying client 163s library: the list of supported parameters depends on the library version. 163s 163s """ 163s kwasync = {} 163s if 'async' in kwargs: 163s kwasync['async'] = kwargs.pop('async') 163s if 'async_' in kwargs: 163s kwasync['async_'] = kwargs.pop('async_') 163s 163s dsn = _ext.make_dsn(dsn, **kwargs) 163s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 163s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 50991 failed: FATAL: sorry, too many clients already 163s E 163s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 163s 163s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 163s _______________ ERROR at setup of TestDeclarative.test_iteritems _______________ 163s 163s self = 163s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 163s connection = None, _has_events = None, _allow_revalidate = True 163s _allow_autobegin = True 163s 163s def __init__( 163s self, 163s engine: Engine, 163s connection: Optional[PoolProxiedConnection] = None, 163s _has_events: Optional[bool] = None, 163s _allow_revalidate: bool = True, 163s _allow_autobegin: bool = True, 163s ): 163s """Construct a new Connection.""" 163s self.engine = engine 163s self.dialect = dialect = engine.dialect 163s 163s if connection is None: 163s try: 163s > self._dbapi_connection = engine.raw_connection() 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 163s return self.pool.connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 163s return _ConnectionFairy._checkout(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 163s fairy = _ConnectionRecord.checkout(pool) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 163s rec = pool._do_get() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 163s return self._create_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 163s return _ConnectionRecord(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 163s self.__connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 163s self.dbapi_connection = connection = pool._invoke_creator(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 163s return dialect.connect(*cargs, **cparams) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 163s return self.loaded_dbapi.connect(*cargs, **cparams) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 163s connection_factory = None, cursor_factory = None 163s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 163s kwasync = {} 163s 163s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 163s """ 163s Create a new database connection. 163s 163s The connection parameters can be specified as a string: 163s 163s conn = psycopg2.connect("dbname=test user=postgres password=secret") 163s 163s or using a set of keyword arguments: 163s 163s conn = psycopg2.connect(database="test", user="postgres", password="secret") 163s 163s Or as a mix of both. The basic connection parameters are: 163s 163s - *dbname*: the database name 163s - *database*: the database name (only as keyword argument) 163s - *user*: user name used to authenticate 163s - *password*: password used to authenticate 163s - *host*: database host address (defaults to UNIX socket if not provided) 163s - *port*: connection port number (defaults to 5432 if not provided) 163s 163s Using the *connection_factory* parameter a different class or connections 163s factory can be specified. It should be a callable object taking a dsn 163s argument. 163s 163s Using the *cursor_factory* parameter, a new default cursor factory will be 163s used by cursor(). 163s 163s Using *async*=True an asynchronous connection will be created. *async_* is 163s a valid alias (for Python versions where ``async`` is a keyword). 163s 163s Any other keyword parameter will be passed to the underlying client 163s library: the list of supported parameters depends on the library version. 163s 163s """ 163s kwasync = {} 163s if 'async' in kwargs: 163s kwasync['async'] = kwargs.pop('async') 163s if 'async_' in kwargs: 163s kwasync['async_'] = kwargs.pop('async_') 163s 163s dsn = _ext.make_dsn(dsn, **kwargs) 163s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 163s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 50991 failed: FATAL: sorry, too many clients already 163s 163s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 163s 163s The above exception was the direct cause of the following exception: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s > self.connection = self.engine.connect() 163s 163s tests/__init__.py:50: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 163s return self._connection_cls(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 163s Connection._handle_dbapi_exception_noconnection( 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 163s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 163s self._dbapi_connection = engine.raw_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 163s return self.pool.connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 163s return _ConnectionFairy._checkout(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 163s fairy = _ConnectionRecord.checkout(pool) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 163s rec = pool._do_get() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 163s return self._create_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 163s return _ConnectionRecord(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 163s self.__connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 163s self.dbapi_connection = connection = pool._invoke_creator(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 163s return dialect.connect(*cargs, **cparams) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 163s return self.loaded_dbapi.connect(*cargs, **cparams) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 163s connection_factory = None, cursor_factory = None 163s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 163s kwasync = {} 163s 163s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 163s """ 163s Create a new database connection. 163s 163s The connection parameters can be specified as a string: 163s 163s conn = psycopg2.connect("dbname=test user=postgres password=secret") 163s 163s or using a set of keyword arguments: 163s 163s conn = psycopg2.connect(database="test", user="postgres", password="secret") 163s 163s Or as a mix of both. The basic connection parameters are: 163s 163s - *dbname*: the database name 163s - *database*: the database name (only as keyword argument) 163s - *user*: user name used to authenticate 163s - *password*: password used to authenticate 163s - *host*: database host address (defaults to UNIX socket if not provided) 163s - *port*: connection port number (defaults to 5432 if not provided) 163s 163s Using the *connection_factory* parameter a different class or connections 163s factory can be specified. It should be a callable object taking a dsn 163s argument. 163s 163s Using the *cursor_factory* parameter, a new default cursor factory will be 163s used by cursor(). 163s 163s Using *async*=True an asynchronous connection will be created. *async_* is 163s a valid alias (for Python versions where ``async`` is a keyword). 163s 163s Any other keyword parameter will be passed to the underlying client 163s library: the list of supported parameters depends on the library version. 163s 163s """ 163s kwasync = {} 163s if 'async' in kwargs: 163s kwasync['async'] = kwargs.pop('async') 163s if 'async_' in kwargs: 163s kwasync['async_'] = kwargs.pop('async_') 163s 163s dsn = _ext.make_dsn(dsn, **kwargs) 163s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 163s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 50991 failed: FATAL: sorry, too many clients already 163s E 163s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 163s 163s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 163s _______________ ERROR at setup of TestDeclarative.test_set_item ________________ 163s 163s self = 163s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 163s connection = None, _has_events = None, _allow_revalidate = True 163s _allow_autobegin = True 163s 163s def __init__( 163s self, 163s engine: Engine, 163s connection: Optional[PoolProxiedConnection] = None, 163s _has_events: Optional[bool] = None, 163s _allow_revalidate: bool = True, 163s _allow_autobegin: bool = True, 163s ): 163s """Construct a new Connection.""" 163s self.engine = engine 163s self.dialect = dialect = engine.dialect 163s 163s if connection is None: 163s try: 163s > self._dbapi_connection = engine.raw_connection() 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 163s return self.pool.connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 163s return _ConnectionFairy._checkout(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 163s fairy = _ConnectionRecord.checkout(pool) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 163s rec = pool._do_get() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 163s return self._create_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 163s return _ConnectionRecord(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 163s self.__connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 163s self.dbapi_connection = connection = pool._invoke_creator(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 163s return dialect.connect(*cargs, **cparams) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 163s return self.loaded_dbapi.connect(*cargs, **cparams) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 163s connection_factory = None, cursor_factory = None 163s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 163s kwasync = {} 163s 163s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 163s """ 163s Create a new database connection. 163s 163s The connection parameters can be specified as a string: 163s 163s conn = psycopg2.connect("dbname=test user=postgres password=secret") 163s 163s or using a set of keyword arguments: 163s 163s conn = psycopg2.connect(database="test", user="postgres", password="secret") 163s 163s Or as a mix of both. The basic connection parameters are: 163s 163s - *dbname*: the database name 163s - *database*: the database name (only as keyword argument) 163s - *user*: user name used to authenticate 163s - *password*: password used to authenticate 163s - *host*: database host address (defaults to UNIX socket if not provided) 163s - *port*: connection port number (defaults to 5432 if not provided) 163s 163s Using the *connection_factory* parameter a different class or connections 163s factory can be specified. It should be a callable object taking a dsn 163s argument. 163s 163s Using the *cursor_factory* parameter, a new default cursor factory will be 163s used by cursor(). 163s 163s Using *async*=True an asynchronous connection will be created. *async_* is 163s a valid alias (for Python versions where ``async`` is a keyword). 163s 163s Any other keyword parameter will be passed to the underlying client 163s library: the list of supported parameters depends on the library version. 163s 163s """ 163s kwasync = {} 163s if 'async' in kwargs: 163s kwasync['async'] = kwargs.pop('async') 163s if 'async_' in kwargs: 163s kwasync['async_'] = kwargs.pop('async_') 163s 163s dsn = _ext.make_dsn(dsn, **kwargs) 163s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 163s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 50991 failed: FATAL: sorry, too many clients already 163s 163s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 163s 163s The above exception was the direct cause of the following exception: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s > self.connection = self.engine.connect() 163s 163s tests/__init__.py:50: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 163s return self._connection_cls(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 163s Connection._handle_dbapi_exception_noconnection( 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 163s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 163s self._dbapi_connection = engine.raw_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 163s return self.pool.connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 163s return _ConnectionFairy._checkout(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 163s fairy = _ConnectionRecord.checkout(pool) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 163s rec = pool._do_get() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 163s return self._create_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 163s return _ConnectionRecord(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 163s self.__connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 163s self.dbapi_connection = connection = pool._invoke_creator(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 163s return dialect.connect(*cargs, **cparams) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 163s return self.loaded_dbapi.connect(*cargs, **cparams) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 163s connection_factory = None, cursor_factory = None 163s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 163s kwasync = {} 163s 163s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 163s """ 163s Create a new database connection. 163s 163s The connection parameters can be specified as a string: 163s 163s conn = psycopg2.connect("dbname=test user=postgres password=secret") 163s 163s or using a set of keyword arguments: 163s 163s conn = psycopg2.connect(database="test", user="postgres", password="secret") 163s 163s Or as a mix of both. The basic connection parameters are: 163s 163s - *dbname*: the database name 163s - *database*: the database name (only as keyword argument) 163s - *user*: user name used to authenticate 163s - *password*: password used to authenticate 163s - *host*: database host address (defaults to UNIX socket if not provided) 163s - *port*: connection port number (defaults to 5432 if not provided) 163s 163s Using the *connection_factory* parameter a different class or connections 163s factory can be specified. It should be a callable object taking a dsn 163s argument. 163s 163s Using the *cursor_factory* parameter, a new default cursor factory will be 163s used by cursor(). 163s 163s Using *async*=True an asynchronous connection will be created. *async_* is 163s a valid alias (for Python versions where ``async`` is a keyword). 163s 163s Any other keyword parameter will be passed to the underlying client 163s library: the list of supported parameters depends on the library version. 163s 163s """ 163s kwasync = {} 163s if 'async' in kwargs: 163s kwasync['async'] = kwargs.pop('async') 163s if 'async_' in kwargs: 163s kwasync['async_'] = kwargs.pop('async_') 163s 163s dsn = _ext.make_dsn(dsn, **kwargs) 163s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 163s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 50991 failed: FATAL: sorry, too many clients already 163s E 163s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 163s 163s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 163s _________________ ERROR at setup of TestDeclarative.test_repr __________________ 163s 163s self = 163s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 163s connection = None, _has_events = None, _allow_revalidate = True 163s _allow_autobegin = True 163s 163s def __init__( 163s self, 163s engine: Engine, 163s connection: Optional[PoolProxiedConnection] = None, 163s _has_events: Optional[bool] = None, 163s _allow_revalidate: bool = True, 163s _allow_autobegin: bool = True, 163s ): 163s """Construct a new Connection.""" 163s self.engine = engine 163s self.dialect = dialect = engine.dialect 163s 163s if connection is None: 163s try: 163s > self._dbapi_connection = engine.raw_connection() 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 163s return self.pool.connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 163s return _ConnectionFairy._checkout(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 163s fairy = _ConnectionRecord.checkout(pool) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 163s rec = pool._do_get() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 163s return self._create_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 163s return _ConnectionRecord(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 163s self.__connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 163s self.dbapi_connection = connection = pool._invoke_creator(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 163s return dialect.connect(*cargs, **cparams) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 163s return self.loaded_dbapi.connect(*cargs, **cparams) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 163s connection_factory = None, cursor_factory = None 163s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 163s kwasync = {} 163s 163s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 163s """ 163s Create a new database connection. 163s 163s The connection parameters can be specified as a string: 163s 163s conn = psycopg2.connect("dbname=test user=postgres password=secret") 163s 163s or using a set of keyword arguments: 163s 163s conn = psycopg2.connect(database="test", user="postgres", password="secret") 163s 163s Or as a mix of both. The basic connection parameters are: 163s 163s - *dbname*: the database name 163s - *database*: the database name (only as keyword argument) 163s - *user*: user name used to authenticate 163s - *password*: password used to authenticate 163s - *host*: database host address (defaults to UNIX socket if not provided) 163s - *port*: connection port number (defaults to 5432 if not provided) 163s 163s Using the *connection_factory* parameter a different class or connections 163s factory can be specified. It should be a callable object taking a dsn 163s argument. 163s 163s Using the *cursor_factory* parameter, a new default cursor factory will be 163s used by cursor(). 163s 163s Using *async*=True an asynchronous connection will be created. *async_* is 163s a valid alias (for Python versions where ``async`` is a keyword). 163s 163s Any other keyword parameter will be passed to the underlying client 163s library: the list of supported parameters depends on the library version. 163s 163s """ 163s kwasync = {} 163s if 'async' in kwargs: 163s kwasync['async'] = kwargs.pop('async') 163s if 'async_' in kwargs: 163s kwasync['async_'] = kwargs.pop('async_') 163s 163s dsn = _ext.make_dsn(dsn, **kwargs) 163s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 163s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 50991 failed: FATAL: sorry, too many clients already 163s 163s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 163s 163s The above exception was the direct cause of the following exception: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s > self.connection = self.engine.connect() 163s 163s tests/__init__.py:50: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 163s return self._connection_cls(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 163s Connection._handle_dbapi_exception_noconnection( 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 163s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 163s self._dbapi_connection = engine.raw_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 163s return self.pool.connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 163s return _ConnectionFairy._checkout(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 163s fairy = _ConnectionRecord.checkout(pool) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 163s rec = pool._do_get() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 163s return self._create_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 163s return _ConnectionRecord(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 163s self.__connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 163s self.dbapi_connection = connection = pool._invoke_creator(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 163s return dialect.connect(*cargs, **cparams) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 163s return self.loaded_dbapi.connect(*cargs, **cparams) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 163s connection_factory = None, cursor_factory = None 163s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 163s kwasync = {} 163s 163s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 163s """ 163s Create a new database connection. 163s 163s The connection parameters can be specified as a string: 163s 163s conn = psycopg2.connect("dbname=test user=postgres password=secret") 163s 163s or using a set of keyword arguments: 163s 163s conn = psycopg2.connect(database="test", user="postgres", password="secret") 163s 163s Or as a mix of both. The basic connection parameters are: 163s 163s - *dbname*: the database name 163s - *database*: the database name (only as keyword argument) 163s - *user*: user name used to authenticate 163s - *password*: password used to authenticate 163s - *host*: database host address (defaults to UNIX socket if not provided) 163s - *port*: connection port number (defaults to 5432 if not provided) 163s 163s Using the *connection_factory* parameter a different class or connections 163s factory can be specified. It should be a callable object taking a dsn 163s argument. 163s 163s Using the *cursor_factory* parameter, a new default cursor factory will be 163s used by cursor(). 163s 163s Using *async*=True an asynchronous connection will be created. *async_* is 163s a valid alias (for Python versions where ``async`` is a keyword). 163s 163s Any other keyword parameter will be passed to the underlying client 163s library: the list of supported parameters depends on the library version. 163s 163s """ 163s kwasync = {} 163s if 'async' in kwargs: 163s kwasync['async'] = kwargs.pop('async') 163s if 'async_' in kwargs: 163s kwasync['async_'] = kwargs.pop('async_') 163s 163s dsn = _ext.make_dsn(dsn, **kwargs) 163s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 163s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 50991 failed: FATAL: sorry, too many clients already 163s E 163s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 163s 163s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 163s _________________ ERROR at setup of TestDeclarative.test_iter __________________ 163s 163s self = 163s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 163s connection = None, _has_events = None, _allow_revalidate = True 163s _allow_autobegin = True 163s 163s def __init__( 163s self, 163s engine: Engine, 163s connection: Optional[PoolProxiedConnection] = None, 163s _has_events: Optional[bool] = None, 163s _allow_revalidate: bool = True, 163s _allow_autobegin: bool = True, 163s ): 163s """Construct a new Connection.""" 163s self.engine = engine 163s self.dialect = dialect = engine.dialect 163s 163s if connection is None: 163s try: 163s > self._dbapi_connection = engine.raw_connection() 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 163s return self.pool.connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 163s return _ConnectionFairy._checkout(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 163s fairy = _ConnectionRecord.checkout(pool) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 163s rec = pool._do_get() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 163s return self._create_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 163s return _ConnectionRecord(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 163s self.__connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 163s self.dbapi_connection = connection = pool._invoke_creator(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 163s return dialect.connect(*cargs, **cparams) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 163s return self.loaded_dbapi.connect(*cargs, **cparams) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 163s connection_factory = None, cursor_factory = None 163s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 163s kwasync = {} 163s 163s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 163s """ 163s Create a new database connection. 163s 163s The connection parameters can be specified as a string: 163s 163s conn = psycopg2.connect("dbname=test user=postgres password=secret") 163s 163s or using a set of keyword arguments: 163s 163s conn = psycopg2.connect(database="test", user="postgres", password="secret") 163s 163s Or as a mix of both. The basic connection parameters are: 163s 163s - *dbname*: the database name 163s - *database*: the database name (only as keyword argument) 163s - *user*: user name used to authenticate 163s - *password*: password used to authenticate 163s - *host*: database host address (defaults to UNIX socket if not provided) 163s - *port*: connection port number (defaults to 5432 if not provided) 163s 163s Using the *connection_factory* parameter a different class or connections 163s factory can be specified. It should be a callable object taking a dsn 163s argument. 163s 163s Using the *cursor_factory* parameter, a new default cursor factory will be 163s used by cursor(). 163s 163s Using *async*=True an asynchronous connection will be created. *async_* is 163s a valid alias (for Python versions where ``async`` is a keyword). 163s 163s Any other keyword parameter will be passed to the underlying client 163s library: the list of supported parameters depends on the library version. 163s 163s """ 163s kwasync = {} 163s if 'async' in kwargs: 163s kwasync['async'] = kwargs.pop('async') 163s if 'async_' in kwargs: 163s kwasync['async_'] = kwargs.pop('async_') 163s 163s dsn = _ext.make_dsn(dsn, **kwargs) 163s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 163s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 50991 failed: FATAL: sorry, too many clients already 163s 163s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 163s 163s The above exception was the direct cause of the following exception: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s > self.connection = self.engine.connect() 163s 163s tests/__init__.py:50: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 163s return self._connection_cls(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 163s Connection._handle_dbapi_exception_noconnection( 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 163s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 163s self._dbapi_connection = engine.raw_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 163s return self.pool.connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 163s return _ConnectionFairy._checkout(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 163s fairy = _ConnectionRecord.checkout(pool) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 163s rec = pool._do_get() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 163s return self._create_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 163s return _ConnectionRecord(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 163s self.__connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 163s self.dbapi_connection = connection = pool._invoke_creator(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 163s return dialect.connect(*cargs, **cparams) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 163s return self.loaded_dbapi.connect(*cargs, **cparams) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 163s connection_factory = None, cursor_factory = None 163s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 163s kwasync = {} 163s 163s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 163s """ 163s Create a new database connection. 163s 163s The connection parameters can be specified as a string: 163s 163s conn = psycopg2.connect("dbname=test user=postgres password=secret") 163s 163s or using a set of keyword arguments: 163s 163s conn = psycopg2.connect(database="test", user="postgres", password="secret") 163s 163s Or as a mix of both. The basic connection parameters are: 163s 163s - *dbname*: the database name 163s - *database*: the database name (only as keyword argument) 163s - *user*: user name used to authenticate 163s - *password*: password used to authenticate 163s - *host*: database host address (defaults to UNIX socket if not provided) 163s - *port*: connection port number (defaults to 5432 if not provided) 163s 163s Using the *connection_factory* parameter a different class or connections 163s factory can be specified. It should be a callable object taking a dsn 163s argument. 163s 163s Using the *cursor_factory* parameter, a new default cursor factory will be 163s used by cursor(). 163s 163s Using *async*=True an asynchronous connection will be created. *async_* is 163s a valid alias (for Python versions where ``async`` is a keyword). 163s 163s Any other keyword parameter will be passed to the underlying client 163s library: the list of supported parameters depends on the library version. 163s 163s """ 163s kwasync = {} 163s if 'async' in kwargs: 163s kwasync['async'] = kwargs.pop('async') 163s if 'async_' in kwargs: 163s kwasync['async_'] = kwargs.pop('async_') 163s 163s dsn = _ext.make_dsn(dsn, **kwargs) 163s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 163s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 50991 failed: FATAL: sorry, too many clients already 163s E 163s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 163s 163s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 163s ________________ ERROR at setup of TestDeclarative.test_values _________________ 163s 163s self = 163s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 163s connection = None, _has_events = None, _allow_revalidate = True 163s _allow_autobegin = True 163s 163s def __init__( 163s self, 163s engine: Engine, 163s connection: Optional[PoolProxiedConnection] = None, 163s _has_events: Optional[bool] = None, 163s _allow_revalidate: bool = True, 163s _allow_autobegin: bool = True, 163s ): 163s """Construct a new Connection.""" 163s self.engine = engine 163s self.dialect = dialect = engine.dialect 163s 163s if connection is None: 163s try: 163s > self._dbapi_connection = engine.raw_connection() 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 163s return self.pool.connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 163s return _ConnectionFairy._checkout(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 163s fairy = _ConnectionRecord.checkout(pool) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 163s rec = pool._do_get() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 163s return self._create_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 163s return _ConnectionRecord(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 163s self.__connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 163s self.dbapi_connection = connection = pool._invoke_creator(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 163s return dialect.connect(*cargs, **cparams) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 163s return self.loaded_dbapi.connect(*cargs, **cparams) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 163s connection_factory = None, cursor_factory = None 163s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 163s kwasync = {} 163s 163s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 163s """ 163s Create a new database connection. 163s 163s The connection parameters can be specified as a string: 163s 163s conn = psycopg2.connect("dbname=test user=postgres password=secret") 163s 163s or using a set of keyword arguments: 163s 163s conn = psycopg2.connect(database="test", user="postgres", password="secret") 163s 163s Or as a mix of both. The basic connection parameters are: 163s 163s - *dbname*: the database name 163s - *database*: the database name (only as keyword argument) 163s - *user*: user name used to authenticate 163s - *password*: password used to authenticate 163s - *host*: database host address (defaults to UNIX socket if not provided) 163s - *port*: connection port number (defaults to 5432 if not provided) 163s 163s Using the *connection_factory* parameter a different class or connections 163s factory can be specified. It should be a callable object taking a dsn 163s argument. 163s 163s Using the *cursor_factory* parameter, a new default cursor factory will be 163s used by cursor(). 163s 163s Using *async*=True an asynchronous connection will be created. *async_* is 163s a valid alias (for Python versions where ``async`` is a keyword). 163s 163s Any other keyword parameter will be passed to the underlying client 163s library: the list of supported parameters depends on the library version. 163s 163s """ 163s kwasync = {} 163s if 'async' in kwargs: 163s kwasync['async'] = kwargs.pop('async') 163s if 'async_' in kwargs: 163s kwasync['async_'] = kwargs.pop('async_') 163s 163s dsn = _ext.make_dsn(dsn, **kwargs) 163s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 163s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 50991 failed: FATAL: sorry, too many clients already 163s 163s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 163s 163s The above exception was the direct cause of the following exception: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.engine = create_engine(self.engine_uri) 163s # self.engine.echo = True 163s > self.connection = self.engine.connect() 163s 163s tests/__init__.py:50: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 163s return self._connection_cls(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 163s Connection._handle_dbapi_exception_noconnection( 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 163s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 163s self._dbapi_connection = engine.raw_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 163s return self.pool.connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 163s return _ConnectionFairy._checkout(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 163s fairy = _ConnectionRecord.checkout(pool) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 163s rec = pool._do_get() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 163s return self._create_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 163s return _ConnectionRecord(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 163s self.__connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 163s self.dbapi_connection = connection = pool._invoke_creator(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 163s return dialect.connect(*cargs, **cparams) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 163s return self.loaded_dbapi.connect(*cargs, **cparams) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 163s connection_factory = None, cursor_factory = None 163s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 163s kwasync = {} 163s 163s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 163s """ 163s Create a new database connection. 163s 163s The connection parameters can be specified as a string: 163s 163s conn = psycopg2.connect("dbname=test user=postgres password=secret") 163s 163s or using a set of keyword arguments: 163s 163s conn = psycopg2.connect(database="test", user="postgres", password="secret") 163s 163s Or as a mix of both. The basic connection parameters are: 163s 163s - *dbname*: the database name 163s - *database*: the database name (only as keyword argument) 163s - *user*: user name used to authenticate 163s - *password*: password used to authenticate 163s - *host*: database host address (defaults to UNIX socket if not provided) 163s - *port*: connection port number (defaults to 5432 if not provided) 163s 163s Using the *connection_factory* parameter a different class or connections 163s factory can be specified. It should be a callable object taking a dsn 163s argument. 163s 163s Using the *cursor_factory* parameter, a new default cursor factory will be 163s used by cursor(). 163s 163s Using *async*=True an asynchronous connection will be created. *async_* is 163s a valid alias (for Python versions where ``async`` is a keyword). 163s 163s Any other keyword parameter will be passed to the underlying client 163s library: the list of supported parameters depends on the library version. 163s 163s """ 163s kwasync = {} 163s if 'async' in kwargs: 163s kwasync['async'] = kwargs.pop('async') 163s if 'async_' in kwargs: 163s kwasync['async_'] = kwargs.pop('async_') 163s 163s dsn = _ext.make_dsn(dsn, **kwargs) 163s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 163s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 50991 failed: FATAL: sorry, too many clients already 163s E 163s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 163s 163s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 163s ______________ ERROR at setup of TestClassic.test_proxy_contains _______________ 163s 163s self = 163s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 163s connection = None, _has_events = None, _allow_revalidate = True 163s _allow_autobegin = True 163s 163s def __init__( 163s self, 163s engine: Engine, 163s connection: Optional[PoolProxiedConnection] = None, 163s _has_events: Optional[bool] = None, 163s _allow_revalidate: bool = True, 163s _allow_autobegin: bool = True, 163s ): 163s """Construct a new Connection.""" 163s self.engine = engine 163s self.dialect = dialect = engine.dialect 163s 163s if connection is None: 163s try: 163s > self._dbapi_connection = engine.raw_connection() 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 163s return self.pool.connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 163s return _ConnectionFairy._checkout(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 163s fairy = _ConnectionRecord.checkout(pool) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 163s rec = pool._do_get() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 163s return self._create_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 163s return _ConnectionRecord(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 163s self.__connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 163s self.dbapi_connection = connection = pool._invoke_creator(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 163s return dialect.connect(*cargs, **cparams) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 163s return self.loaded_dbapi.connect(*cargs, **cparams) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 163s connection_factory = None, cursor_factory = None 163s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 163s kwasync = {} 163s 163s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 163s """ 163s Create a new database connection. 163s 163s The connection parameters can be specified as a string: 163s 163s conn = psycopg2.connect("dbname=test user=postgres password=secret") 163s 163s or using a set of keyword arguments: 163s 163s conn = psycopg2.connect(database="test", user="postgres", password="secret") 163s 163s Or as a mix of both. The basic connection parameters are: 163s 163s - *dbname*: the database name 163s - *database*: the database name (only as keyword argument) 163s - *user*: user name used to authenticate 163s - *password*: password used to authenticate 163s - *host*: database host address (defaults to UNIX socket if not provided) 163s - *port*: connection port number (defaults to 5432 if not provided) 163s 163s Using the *connection_factory* parameter a different class or connections 163s factory can be specified. It should be a callable object taking a dsn 163s argument. 163s 163s Using the *cursor_factory* parameter, a new default cursor factory will be 163s used by cursor(). 163s 163s Using *async*=True an asynchronous connection will be created. *async_* is 163s a valid alias (for Python versions where ``async`` is a keyword). 163s 163s Any other keyword parameter will be passed to the underlying client 163s library: the list of supported parameters depends on the library version. 163s 163s """ 163s kwasync = {} 163s if 'async' in kwargs: 163s kwasync['async'] = kwargs.pop('async') 163s if 'async_' in kwargs: 163s kwasync['async_'] = kwargs.pop('async_') 163s 163s dsn = _ext.make_dsn(dsn, **kwargs) 163s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 163s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 50991 failed: FATAL: sorry, too many clients already 163s 163s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 163s 163s The above exception was the direct cause of the following exception: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.metadata = sa.MetaData() 163s 163s self.engine = sa.create_engine(self.engine_uri) 163s # self.engine.echo = True 163s > self.connection = self.engine.connect() 163s 163s tests/__init__.py:135: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 163s return self._connection_cls(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 163s Connection._handle_dbapi_exception_noconnection( 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 163s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 163s self._dbapi_connection = engine.raw_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 163s return self.pool.connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 163s return _ConnectionFairy._checkout(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 163s fairy = _ConnectionRecord.checkout(pool) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 163s rec = pool._do_get() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 163s return self._create_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 163s return _ConnectionRecord(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 163s self.__connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 163s self.dbapi_connection = connection = pool._invoke_creator(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 163s return dialect.connect(*cargs, **cparams) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 163s return self.loaded_dbapi.connect(*cargs, **cparams) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 163s connection_factory = None, cursor_factory = None 163s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 163s kwasync = {} 163s 163s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 163s """ 163s Create a new database connection. 163s 163s The connection parameters can be specified as a string: 163s 163s conn = psycopg2.connect("dbname=test user=postgres password=secret") 163s 163s or using a set of keyword arguments: 163s 163s conn = psycopg2.connect(database="test", user="postgres", password="secret") 163s 163s Or as a mix of both. The basic connection parameters are: 163s 163s - *dbname*: the database name 163s - *database*: the database name (only as keyword argument) 163s - *user*: user name used to authenticate 163s - *password*: password used to authenticate 163s - *host*: database host address (defaults to UNIX socket if not provided) 163s - *port*: connection port number (defaults to 5432 if not provided) 163s 163s Using the *connection_factory* parameter a different class or connections 163s factory can be specified. It should be a callable object taking a dsn 163s argument. 163s 163s Using the *cursor_factory* parameter, a new default cursor factory will be 163s used by cursor(). 163s 163s Using *async*=True an asynchronous connection will be created. *async_* is 163s a valid alias (for Python versions where ``async`` is a keyword). 163s 163s Any other keyword parameter will be passed to the underlying client 163s library: the list of supported parameters depends on the library version. 163s 163s """ 163s kwasync = {} 163s if 'async' in kwargs: 163s kwasync['async'] = kwargs.pop('async') 163s if 'async_' in kwargs: 163s kwasync['async_'] = kwargs.pop('async_') 163s 163s dsn = _ext.make_dsn(dsn, **kwargs) 163s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 163s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 50991 failed: FATAL: sorry, too many clients already 163s E 163s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 163s 163s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 163s ___ ERROR at setup of TestClassic.test_translation_mapping_attribute_getter ____ 163s 163s self = 163s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 163s connection = None, _has_events = None, _allow_revalidate = True 163s _allow_autobegin = True 163s 163s def __init__( 163s self, 163s engine: Engine, 163s connection: Optional[PoolProxiedConnection] = None, 163s _has_events: Optional[bool] = None, 163s _allow_revalidate: bool = True, 163s _allow_autobegin: bool = True, 163s ): 163s """Construct a new Connection.""" 163s self.engine = engine 163s self.dialect = dialect = engine.dialect 163s 163s if connection is None: 163s try: 163s > self._dbapi_connection = engine.raw_connection() 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 163s return self.pool.connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 163s return _ConnectionFairy._checkout(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 163s fairy = _ConnectionRecord.checkout(pool) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 163s rec = pool._do_get() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 163s return self._create_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 163s return _ConnectionRecord(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 163s self.__connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 163s self.dbapi_connection = connection = pool._invoke_creator(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 163s return dialect.connect(*cargs, **cparams) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 163s return self.loaded_dbapi.connect(*cargs, **cparams) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 163s connection_factory = None, cursor_factory = None 163s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 163s kwasync = {} 163s 163s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 163s """ 163s Create a new database connection. 163s 163s The connection parameters can be specified as a string: 163s 163s conn = psycopg2.connect("dbname=test user=postgres password=secret") 163s 163s or using a set of keyword arguments: 163s 163s conn = psycopg2.connect(database="test", user="postgres", password="secret") 163s 163s Or as a mix of both. The basic connection parameters are: 163s 163s - *dbname*: the database name 163s - *database*: the database name (only as keyword argument) 163s - *user*: user name used to authenticate 163s - *password*: password used to authenticate 163s - *host*: database host address (defaults to UNIX socket if not provided) 163s - *port*: connection port number (defaults to 5432 if not provided) 163s 163s Using the *connection_factory* parameter a different class or connections 163s factory can be specified. It should be a callable object taking a dsn 163s argument. 163s 163s Using the *cursor_factory* parameter, a new default cursor factory will be 163s used by cursor(). 163s 163s Using *async*=True an asynchronous connection will be created. *async_* is 163s a valid alias (for Python versions where ``async`` is a keyword). 163s 163s Any other keyword parameter will be passed to the underlying client 163s library: the list of supported parameters depends on the library version. 163s 163s """ 163s kwasync = {} 163s if 'async' in kwargs: 163s kwasync['async'] = kwargs.pop('async') 163s if 'async_' in kwargs: 163s kwasync['async_'] = kwargs.pop('async_') 163s 163s dsn = _ext.make_dsn(dsn, **kwargs) 163s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 163s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 50991 failed: FATAL: sorry, too many clients already 163s 163s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 163s 163s The above exception was the direct cause of the following exception: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.metadata = sa.MetaData() 163s 163s self.engine = sa.create_engine(self.engine_uri) 163s # self.engine.echo = True 163s > self.connection = self.engine.connect() 163s 163s tests/__init__.py:135: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 163s return self._connection_cls(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 163s Connection._handle_dbapi_exception_noconnection( 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 163s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 163s self._dbapi_connection = engine.raw_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 163s return self.pool.connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 163s return _ConnectionFairy._checkout(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 163s fairy = _ConnectionRecord.checkout(pool) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 163s rec = pool._do_get() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 163s return self._create_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 163s return _ConnectionRecord(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 163s self.__connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 163s self.dbapi_connection = connection = pool._invoke_creator(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 163s return dialect.connect(*cargs, **cparams) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 163s return self.loaded_dbapi.connect(*cargs, **cparams) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 163s connection_factory = None, cursor_factory = None 163s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 163s kwasync = {} 163s 163s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 163s """ 163s Create a new database connection. 163s 163s The connection parameters can be specified as a string: 163s 163s conn = psycopg2.connect("dbname=test user=postgres password=secret") 163s 163s or using a set of keyword arguments: 163s 163s conn = psycopg2.connect(database="test", user="postgres", password="secret") 163s 163s Or as a mix of both. The basic connection parameters are: 163s 163s - *dbname*: the database name 163s - *database*: the database name (only as keyword argument) 163s - *user*: user name used to authenticate 163s - *password*: password used to authenticate 163s - *host*: database host address (defaults to UNIX socket if not provided) 163s - *port*: connection port number (defaults to 5432 if not provided) 163s 163s Using the *connection_factory* parameter a different class or connections 163s factory can be specified. It should be a callable object taking a dsn 163s argument. 163s 163s Using the *cursor_factory* parameter, a new default cursor factory will be 163s used by cursor(). 163s 163s Using *async*=True an asynchronous connection will be created. *async_* is 163s a valid alias (for Python versions where ``async`` is a keyword). 163s 163s Any other keyword parameter will be passed to the underlying client 163s library: the list of supported parameters depends on the library version. 163s 163s """ 163s kwasync = {} 163s if 'async' in kwargs: 163s kwasync['async'] = kwargs.pop('async') 163s if 'async_' in kwargs: 163s kwasync['async_'] = kwargs.pop('async_') 163s 163s dsn = _ext.make_dsn(dsn, **kwargs) 163s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 163s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 50991 failed: FATAL: sorry, too many clients already 163s E 163s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 163s 163s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 163s ___ ERROR at setup of TestClassic.test_attribute_accessor_for_unknown_locale ___ 163s 163s self = 163s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 163s connection = None, _has_events = None, _allow_revalidate = True 163s _allow_autobegin = True 163s 163s def __init__( 163s self, 163s engine: Engine, 163s connection: Optional[PoolProxiedConnection] = None, 163s _has_events: Optional[bool] = None, 163s _allow_revalidate: bool = True, 163s _allow_autobegin: bool = True, 163s ): 163s """Construct a new Connection.""" 163s self.engine = engine 163s self.dialect = dialect = engine.dialect 163s 163s if connection is None: 163s try: 163s > self._dbapi_connection = engine.raw_connection() 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 163s return self.pool.connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 163s return _ConnectionFairy._checkout(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 163s fairy = _ConnectionRecord.checkout(pool) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 163s rec = pool._do_get() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 163s return self._create_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 163s return _ConnectionRecord(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 163s self.__connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 163s self.dbapi_connection = connection = pool._invoke_creator(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 163s return dialect.connect(*cargs, **cparams) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 163s return self.loaded_dbapi.connect(*cargs, **cparams) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 163s connection_factory = None, cursor_factory = None 163s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 163s kwasync = {} 163s 163s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 163s """ 163s Create a new database connection. 163s 163s The connection parameters can be specified as a string: 163s 163s conn = psycopg2.connect("dbname=test user=postgres password=secret") 163s 163s or using a set of keyword arguments: 163s 163s conn = psycopg2.connect(database="test", user="postgres", password="secret") 163s 163s Or as a mix of both. The basic connection parameters are: 163s 163s - *dbname*: the database name 163s - *database*: the database name (only as keyword argument) 163s - *user*: user name used to authenticate 163s - *password*: password used to authenticate 163s - *host*: database host address (defaults to UNIX socket if not provided) 163s - *port*: connection port number (defaults to 5432 if not provided) 163s 163s Using the *connection_factory* parameter a different class or connections 163s factory can be specified. It should be a callable object taking a dsn 163s argument. 163s 163s Using the *cursor_factory* parameter, a new default cursor factory will be 163s used by cursor(). 163s 163s Using *async*=True an asynchronous connection will be created. *async_* is 163s a valid alias (for Python versions where ``async`` is a keyword). 163s 163s Any other keyword parameter will be passed to the underlying client 163s library: the list of supported parameters depends on the library version. 163s 163s """ 163s kwasync = {} 163s if 'async' in kwargs: 163s kwasync['async'] = kwargs.pop('async') 163s if 'async_' in kwargs: 163s kwasync['async_'] = kwargs.pop('async_') 163s 163s dsn = _ext.make_dsn(dsn, **kwargs) 163s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 163s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 50991 failed: FATAL: sorry, too many clients already 163s 163s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 163s 163s The above exception was the direct cause of the following exception: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.metadata = sa.MetaData() 163s 163s self.engine = sa.create_engine(self.engine_uri) 163s # self.engine.echo = True 163s > self.connection = self.engine.connect() 163s 163s tests/__init__.py:135: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 163s return self._connection_cls(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 163s Connection._handle_dbapi_exception_noconnection( 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 163s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 163s self._dbapi_connection = engine.raw_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 163s return self.pool.connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 163s return _ConnectionFairy._checkout(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 163s fairy = _ConnectionRecord.checkout(pool) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 163s rec = pool._do_get() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 163s return self._create_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 163s return _ConnectionRecord(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 163s self.__connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 163s self.dbapi_connection = connection = pool._invoke_creator(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 163s return dialect.connect(*cargs, **cparams) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 163s return self.loaded_dbapi.connect(*cargs, **cparams) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 163s connection_factory = None, cursor_factory = None 163s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 163s kwasync = {} 163s 163s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 163s """ 163s Create a new database connection. 163s 163s The connection parameters can be specified as a string: 163s 163s conn = psycopg2.connect("dbname=test user=postgres password=secret") 163s 163s or using a set of keyword arguments: 163s 163s conn = psycopg2.connect(database="test", user="postgres", password="secret") 163s 163s Or as a mix of both. The basic connection parameters are: 163s 163s - *dbname*: the database name 163s - *database*: the database name (only as keyword argument) 163s - *user*: user name used to authenticate 163s - *password*: password used to authenticate 163s - *host*: database host address (defaults to UNIX socket if not provided) 163s - *port*: connection port number (defaults to 5432 if not provided) 163s 163s Using the *connection_factory* parameter a different class or connections 163s factory can be specified. It should be a callable object taking a dsn 163s argument. 163s 163s Using the *cursor_factory* parameter, a new default cursor factory will be 163s used by cursor(). 163s 163s Using *async*=True an asynchronous connection will be created. *async_* is 163s a valid alias (for Python versions where ``async`` is a keyword). 163s 163s Any other keyword parameter will be passed to the underlying client 163s library: the list of supported parameters depends on the library version. 163s 163s """ 163s kwasync = {} 163s if 'async' in kwargs: 163s kwasync['async'] = kwargs.pop('async') 163s if 'async_' in kwargs: 163s kwasync['async_'] = kwargs.pop('async_') 163s 163s dsn = _ext.make_dsn(dsn, **kwargs) 163s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 163s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 50991 failed: FATAL: sorry, too many clients already 163s E 163s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 163s 163s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 163s ____________ ERROR at setup of TestClassic.test_proxy_not_contains _____________ 163s 163s self = 163s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 163s connection = None, _has_events = None, _allow_revalidate = True 163s _allow_autobegin = True 163s 163s def __init__( 163s self, 163s engine: Engine, 163s connection: Optional[PoolProxiedConnection] = None, 163s _has_events: Optional[bool] = None, 163s _allow_revalidate: bool = True, 163s _allow_autobegin: bool = True, 163s ): 163s """Construct a new Connection.""" 163s self.engine = engine 163s self.dialect = dialect = engine.dialect 163s 163s if connection is None: 163s try: 163s > self._dbapi_connection = engine.raw_connection() 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 163s return self.pool.connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 163s return _ConnectionFairy._checkout(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 163s fairy = _ConnectionRecord.checkout(pool) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 163s rec = pool._do_get() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 163s return self._create_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 163s return _ConnectionRecord(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 163s self.__connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 163s self.dbapi_connection = connection = pool._invoke_creator(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 163s return dialect.connect(*cargs, **cparams) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 163s return self.loaded_dbapi.connect(*cargs, **cparams) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 163s connection_factory = None, cursor_factory = None 163s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 163s kwasync = {} 163s 163s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 163s """ 163s Create a new database connection. 163s 163s The connection parameters can be specified as a string: 163s 163s conn = psycopg2.connect("dbname=test user=postgres password=secret") 163s 163s or using a set of keyword arguments: 163s 163s conn = psycopg2.connect(database="test", user="postgres", password="secret") 163s 163s Or as a mix of both. The basic connection parameters are: 163s 163s - *dbname*: the database name 163s - *database*: the database name (only as keyword argument) 163s - *user*: user name used to authenticate 163s - *password*: password used to authenticate 163s - *host*: database host address (defaults to UNIX socket if not provided) 163s - *port*: connection port number (defaults to 5432 if not provided) 163s 163s Using the *connection_factory* parameter a different class or connections 163s factory can be specified. It should be a callable object taking a dsn 163s argument. 163s 163s Using the *cursor_factory* parameter, a new default cursor factory will be 163s used by cursor(). 163s 163s Using *async*=True an asynchronous connection will be created. *async_* is 163s a valid alias (for Python versions where ``async`` is a keyword). 163s 163s Any other keyword parameter will be passed to the underlying client 163s library: the list of supported parameters depends on the library version. 163s 163s """ 163s kwasync = {} 163s if 'async' in kwargs: 163s kwasync['async'] = kwargs.pop('async') 163s if 'async_' in kwargs: 163s kwasync['async_'] = kwargs.pop('async_') 163s 163s dsn = _ext.make_dsn(dsn, **kwargs) 163s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 163s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 50991 failed: FATAL: sorry, too many clients already 163s 163s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 163s 163s The above exception was the direct cause of the following exception: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.metadata = sa.MetaData() 163s 163s self.engine = sa.create_engine(self.engine_uri) 163s # self.engine.echo = True 163s > self.connection = self.engine.connect() 163s 163s tests/__init__.py:135: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 163s return self._connection_cls(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 163s Connection._handle_dbapi_exception_noconnection( 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 163s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 163s self._dbapi_connection = engine.raw_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 163s return self.pool.connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 163s return _ConnectionFairy._checkout(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 163s fairy = _ConnectionRecord.checkout(pool) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 163s rec = pool._do_get() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 163s return self._create_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 163s return _ConnectionRecord(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 163s self.__connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 163s self.dbapi_connection = connection = pool._invoke_creator(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 163s return dialect.connect(*cargs, **cparams) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 163s return self.loaded_dbapi.connect(*cargs, **cparams) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 163s connection_factory = None, cursor_factory = None 163s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 163s kwasync = {} 163s 163s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 163s """ 163s Create a new database connection. 163s 163s The connection parameters can be specified as a string: 163s 163s conn = psycopg2.connect("dbname=test user=postgres password=secret") 163s 163s or using a set of keyword arguments: 163s 163s conn = psycopg2.connect(database="test", user="postgres", password="secret") 163s 163s Or as a mix of both. The basic connection parameters are: 163s 163s - *dbname*: the database name 163s - *database*: the database name (only as keyword argument) 163s - *user*: user name used to authenticate 163s - *password*: password used to authenticate 163s - *host*: database host address (defaults to UNIX socket if not provided) 163s - *port*: connection port number (defaults to 5432 if not provided) 163s 163s Using the *connection_factory* parameter a different class or connections 163s factory can be specified. It should be a callable object taking a dsn 163s argument. 163s 163s Using the *cursor_factory* parameter, a new default cursor factory will be 163s used by cursor(). 163s 163s Using *async*=True an asynchronous connection will be created. *async_* is 163s a valid alias (for Python versions where ``async`` is a keyword). 163s 163s Any other keyword parameter will be passed to the underlying client 163s library: the list of supported parameters depends on the library version. 163s 163s """ 163s kwasync = {} 163s if 'async' in kwargs: 163s kwasync['async'] = kwargs.pop('async') 163s if 'async_' in kwargs: 163s kwasync['async_'] = kwargs.pop('async_') 163s 163s dsn = _ext.make_dsn(dsn, **kwargs) 163s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 163s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 50991 failed: FATAL: sorry, too many clients already 163s E 163s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 163s 163s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 163s ___________________ ERROR at setup of TestClassic.test_items ___________________ 163s 163s self = 163s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 163s connection = None, _has_events = None, _allow_revalidate = True 163s _allow_autobegin = True 163s 163s def __init__( 163s self, 163s engine: Engine, 163s connection: Optional[PoolProxiedConnection] = None, 163s _has_events: Optional[bool] = None, 163s _allow_revalidate: bool = True, 163s _allow_autobegin: bool = True, 163s ): 163s """Construct a new Connection.""" 163s self.engine = engine 163s self.dialect = dialect = engine.dialect 163s 163s if connection is None: 163s try: 163s > self._dbapi_connection = engine.raw_connection() 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 163s return self.pool.connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 163s return _ConnectionFairy._checkout(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 163s fairy = _ConnectionRecord.checkout(pool) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 163s rec = pool._do_get() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 163s return self._create_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 163s return _ConnectionRecord(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 163s self.__connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 163s self.dbapi_connection = connection = pool._invoke_creator(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 163s return dialect.connect(*cargs, **cparams) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 163s return self.loaded_dbapi.connect(*cargs, **cparams) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 163s connection_factory = None, cursor_factory = None 163s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 163s kwasync = {} 163s 163s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 163s """ 163s Create a new database connection. 163s 163s The connection parameters can be specified as a string: 163s 163s conn = psycopg2.connect("dbname=test user=postgres password=secret") 163s 163s or using a set of keyword arguments: 163s 163s conn = psycopg2.connect(database="test", user="postgres", password="secret") 163s 163s Or as a mix of both. The basic connection parameters are: 163s 163s - *dbname*: the database name 163s - *database*: the database name (only as keyword argument) 163s - *user*: user name used to authenticate 163s - *password*: password used to authenticate 163s - *host*: database host address (defaults to UNIX socket if not provided) 163s - *port*: connection port number (defaults to 5432 if not provided) 163s 163s Using the *connection_factory* parameter a different class or connections 163s factory can be specified. It should be a callable object taking a dsn 163s argument. 163s 163s Using the *cursor_factory* parameter, a new default cursor factory will be 163s used by cursor(). 163s 163s Using *async*=True an asynchronous connection will be created. *async_* is 163s a valid alias (for Python versions where ``async`` is a keyword). 163s 163s Any other keyword parameter will be passed to the underlying client 163s library: the list of supported parameters depends on the library version. 163s 163s """ 163s kwasync = {} 163s if 'async' in kwargs: 163s kwasync['async'] = kwargs.pop('async') 163s if 'async_' in kwargs: 163s kwasync['async_'] = kwargs.pop('async_') 163s 163s dsn = _ext.make_dsn(dsn, **kwargs) 163s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 163s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 50991 failed: FATAL: sorry, too many clients already 163s 163s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 163s 163s The above exception was the direct cause of the following exception: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.metadata = sa.MetaData() 163s 163s self.engine = sa.create_engine(self.engine_uri) 163s # self.engine.echo = True 163s > self.connection = self.engine.connect() 163s 163s tests/__init__.py:135: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 163s return self._connection_cls(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 163s Connection._handle_dbapi_exception_noconnection( 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 163s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 163s self._dbapi_connection = engine.raw_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 163s return self.pool.connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 163s return _ConnectionFairy._checkout(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 163s fairy = _ConnectionRecord.checkout(pool) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 163s rec = pool._do_get() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 163s return self._create_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 163s return _ConnectionRecord(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 163s self.__connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 163s self.dbapi_connection = connection = pool._invoke_creator(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 163s return dialect.connect(*cargs, **cparams) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 163s return self.loaded_dbapi.connect(*cargs, **cparams) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 163s connection_factory = None, cursor_factory = None 163s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 163s kwasync = {} 163s 163s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 163s """ 163s Create a new database connection. 163s 163s The connection parameters can be specified as a string: 163s 163s conn = psycopg2.connect("dbname=test user=postgres password=secret") 163s 163s or using a set of keyword arguments: 163s 163s conn = psycopg2.connect(database="test", user="postgres", password="secret") 163s 163s Or as a mix of both. The basic connection parameters are: 163s 163s - *dbname*: the database name 163s - *database*: the database name (only as keyword argument) 163s - *user*: user name used to authenticate 163s - *password*: password used to authenticate 163s - *host*: database host address (defaults to UNIX socket if not provided) 163s - *port*: connection port number (defaults to 5432 if not provided) 163s 163s Using the *connection_factory* parameter a different class or connections 163s factory can be specified. It should be a callable object taking a dsn 163s argument. 163s 163s Using the *cursor_factory* parameter, a new default cursor factory will be 163s used by cursor(). 163s 163s Using *async*=True an asynchronous connection will be created. *async_* is 163s a valid alias (for Python versions where ``async`` is a keyword). 163s 163s Any other keyword parameter will be passed to the underlying client 163s library: the list of supported parameters depends on the library version. 163s 163s """ 163s kwasync = {} 163s if 'async' in kwargs: 163s kwasync['async'] = kwargs.pop('async') 163s if 'async_' in kwargs: 163s kwasync['async_'] = kwargs.pop('async_') 163s 163s dsn = _ext.make_dsn(dsn, **kwargs) 163s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 163s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 50991 failed: FATAL: sorry, too many clients already 163s E 163s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 163s 163s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 163s _________________ ERROR at setup of TestClassic.test_iteritems _________________ 163s 163s self = 163s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 163s connection = None, _has_events = None, _allow_revalidate = True 163s _allow_autobegin = True 163s 163s def __init__( 163s self, 163s engine: Engine, 163s connection: Optional[PoolProxiedConnection] = None, 163s _has_events: Optional[bool] = None, 163s _allow_revalidate: bool = True, 163s _allow_autobegin: bool = True, 163s ): 163s """Construct a new Connection.""" 163s self.engine = engine 163s self.dialect = dialect = engine.dialect 163s 163s if connection is None: 163s try: 163s > self._dbapi_connection = engine.raw_connection() 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 163s return self.pool.connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 163s return _ConnectionFairy._checkout(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 163s fairy = _ConnectionRecord.checkout(pool) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 163s rec = pool._do_get() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 163s return self._create_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 163s return _ConnectionRecord(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 163s self.__connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 163s self.dbapi_connection = connection = pool._invoke_creator(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 163s return dialect.connect(*cargs, **cparams) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 163s return self.loaded_dbapi.connect(*cargs, **cparams) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 163s connection_factory = None, cursor_factory = None 163s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 163s kwasync = {} 163s 163s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 163s """ 163s Create a new database connection. 163s 163s The connection parameters can be specified as a string: 163s 163s conn = psycopg2.connect("dbname=test user=postgres password=secret") 163s 163s or using a set of keyword arguments: 163s 163s conn = psycopg2.connect(database="test", user="postgres", password="secret") 163s 163s Or as a mix of both. The basic connection parameters are: 163s 163s - *dbname*: the database name 163s - *database*: the database name (only as keyword argument) 163s - *user*: user name used to authenticate 163s - *password*: password used to authenticate 163s - *host*: database host address (defaults to UNIX socket if not provided) 163s - *port*: connection port number (defaults to 5432 if not provided) 163s 163s Using the *connection_factory* parameter a different class or connections 163s factory can be specified. It should be a callable object taking a dsn 163s argument. 163s 163s Using the *cursor_factory* parameter, a new default cursor factory will be 163s used by cursor(). 163s 163s Using *async*=True an asynchronous connection will be created. *async_* is 163s a valid alias (for Python versions where ``async`` is a keyword). 163s 163s Any other keyword parameter will be passed to the underlying client 163s library: the list of supported parameters depends on the library version. 163s 163s """ 163s kwasync = {} 163s if 'async' in kwargs: 163s kwasync['async'] = kwargs.pop('async') 163s if 'async_' in kwargs: 163s kwasync['async_'] = kwargs.pop('async_') 163s 163s dsn = _ext.make_dsn(dsn, **kwargs) 163s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 163s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 50991 failed: FATAL: sorry, too many clients already 163s 163s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 163s 163s The above exception was the direct cause of the following exception: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.metadata = sa.MetaData() 163s 163s self.engine = sa.create_engine(self.engine_uri) 163s # self.engine.echo = True 163s > self.connection = self.engine.connect() 163s 163s tests/__init__.py:135: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 163s return self._connection_cls(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 163s Connection._handle_dbapi_exception_noconnection( 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 163s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 163s self._dbapi_connection = engine.raw_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 163s return self.pool.connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 163s return _ConnectionFairy._checkout(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 163s fairy = _ConnectionRecord.checkout(pool) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 163s rec = pool._do_get() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 163s return self._create_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 163s return _ConnectionRecord(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 163s self.__connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 163s self.dbapi_connection = connection = pool._invoke_creator(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 163s return dialect.connect(*cargs, **cparams) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 163s return self.loaded_dbapi.connect(*cargs, **cparams) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 163s connection_factory = None, cursor_factory = None 163s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 163s kwasync = {} 163s 163s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 163s """ 163s Create a new database connection. 163s 163s The connection parameters can be specified as a string: 163s 163s conn = psycopg2.connect("dbname=test user=postgres password=secret") 163s 163s or using a set of keyword arguments: 163s 163s conn = psycopg2.connect(database="test", user="postgres", password="secret") 163s 163s Or as a mix of both. The basic connection parameters are: 163s 163s - *dbname*: the database name 163s - *database*: the database name (only as keyword argument) 163s - *user*: user name used to authenticate 163s - *password*: password used to authenticate 163s - *host*: database host address (defaults to UNIX socket if not provided) 163s - *port*: connection port number (defaults to 5432 if not provided) 163s 163s Using the *connection_factory* parameter a different class or connections 163s factory can be specified. It should be a callable object taking a dsn 163s argument. 163s 163s Using the *cursor_factory* parameter, a new default cursor factory will be 163s used by cursor(). 163s 163s Using *async*=True an asynchronous connection will be created. *async_* is 163s a valid alias (for Python versions where ``async`` is a keyword). 163s 163s Any other keyword parameter will be passed to the underlying client 163s library: the list of supported parameters depends on the library version. 163s 163s """ 163s kwasync = {} 163s if 'async' in kwargs: 163s kwasync['async'] = kwargs.pop('async') 163s if 'async_' in kwargs: 163s kwasync['async_'] = kwargs.pop('async_') 163s 163s dsn = _ext.make_dsn(dsn, **kwargs) 163s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 163s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 50991 failed: FATAL: sorry, too many clients already 163s E 163s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 163s 163s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 163s _________________ ERROR at setup of TestClassic.test_set_item __________________ 163s 163s self = 163s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 163s connection = None, _has_events = None, _allow_revalidate = True 163s _allow_autobegin = True 163s 163s def __init__( 163s self, 163s engine: Engine, 163s connection: Optional[PoolProxiedConnection] = None, 163s _has_events: Optional[bool] = None, 163s _allow_revalidate: bool = True, 163s _allow_autobegin: bool = True, 163s ): 163s """Construct a new Connection.""" 163s self.engine = engine 163s self.dialect = dialect = engine.dialect 163s 163s if connection is None: 163s try: 163s > self._dbapi_connection = engine.raw_connection() 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 163s return self.pool.connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 163s return _ConnectionFairy._checkout(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 163s fairy = _ConnectionRecord.checkout(pool) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 163s rec = pool._do_get() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 163s return self._create_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 163s return _ConnectionRecord(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 163s self.__connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 163s self.dbapi_connection = connection = pool._invoke_creator(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 163s return dialect.connect(*cargs, **cparams) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 163s return self.loaded_dbapi.connect(*cargs, **cparams) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 163s connection_factory = None, cursor_factory = None 163s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 163s kwasync = {} 163s 163s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 163s """ 163s Create a new database connection. 163s 163s The connection parameters can be specified as a string: 163s 163s conn = psycopg2.connect("dbname=test user=postgres password=secret") 163s 163s or using a set of keyword arguments: 163s 163s conn = psycopg2.connect(database="test", user="postgres", password="secret") 163s 163s Or as a mix of both. The basic connection parameters are: 163s 163s - *dbname*: the database name 163s - *database*: the database name (only as keyword argument) 163s - *user*: user name used to authenticate 163s - *password*: password used to authenticate 163s - *host*: database host address (defaults to UNIX socket if not provided) 163s - *port*: connection port number (defaults to 5432 if not provided) 163s 163s Using the *connection_factory* parameter a different class or connections 163s factory can be specified. It should be a callable object taking a dsn 163s argument. 163s 163s Using the *cursor_factory* parameter, a new default cursor factory will be 163s used by cursor(). 163s 163s Using *async*=True an asynchronous connection will be created. *async_* is 163s a valid alias (for Python versions where ``async`` is a keyword). 163s 163s Any other keyword parameter will be passed to the underlying client 163s library: the list of supported parameters depends on the library version. 163s 163s """ 163s kwasync = {} 163s if 'async' in kwargs: 163s kwasync['async'] = kwargs.pop('async') 163s if 'async_' in kwargs: 163s kwasync['async_'] = kwargs.pop('async_') 163s 163s dsn = _ext.make_dsn(dsn, **kwargs) 163s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 163s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 50991 failed: FATAL: sorry, too many clients already 163s 163s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 163s 163s The above exception was the direct cause of the following exception: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.metadata = sa.MetaData() 163s 163s self.engine = sa.create_engine(self.engine_uri) 163s # self.engine.echo = True 163s > self.connection = self.engine.connect() 163s 163s tests/__init__.py:135: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 163s return self._connection_cls(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 163s Connection._handle_dbapi_exception_noconnection( 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 163s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 163s self._dbapi_connection = engine.raw_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 163s return self.pool.connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 163s return _ConnectionFairy._checkout(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 163s fairy = _ConnectionRecord.checkout(pool) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 163s rec = pool._do_get() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 163s return self._create_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 163s return _ConnectionRecord(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 163s self.__connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 163s self.dbapi_connection = connection = pool._invoke_creator(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 163s return dialect.connect(*cargs, **cparams) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 163s return self.loaded_dbapi.connect(*cargs, **cparams) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 163s connection_factory = None, cursor_factory = None 163s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 163s kwasync = {} 163s 163s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 163s """ 163s Create a new database connection. 163s 163s The connection parameters can be specified as a string: 163s 163s conn = psycopg2.connect("dbname=test user=postgres password=secret") 163s 163s or using a set of keyword arguments: 163s 163s conn = psycopg2.connect(database="test", user="postgres", password="secret") 163s 163s Or as a mix of both. The basic connection parameters are: 163s 163s - *dbname*: the database name 163s - *database*: the database name (only as keyword argument) 163s - *user*: user name used to authenticate 163s - *password*: password used to authenticate 163s - *host*: database host address (defaults to UNIX socket if not provided) 163s - *port*: connection port number (defaults to 5432 if not provided) 163s 163s Using the *connection_factory* parameter a different class or connections 163s factory can be specified. It should be a callable object taking a dsn 163s argument. 163s 163s Using the *cursor_factory* parameter, a new default cursor factory will be 163s used by cursor(). 163s 163s Using *async*=True an asynchronous connection will be created. *async_* is 163s a valid alias (for Python versions where ``async`` is a keyword). 163s 163s Any other keyword parameter will be passed to the underlying client 163s library: the list of supported parameters depends on the library version. 163s 163s """ 163s kwasync = {} 163s if 'async' in kwargs: 163s kwasync['async'] = kwargs.pop('async') 163s if 'async_' in kwargs: 163s kwasync['async_'] = kwargs.pop('async_') 163s 163s dsn = _ext.make_dsn(dsn, **kwargs) 163s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 163s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 50991 failed: FATAL: sorry, too many clients already 163s E 163s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 163s 163s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 163s ___________________ ERROR at setup of TestClassic.test_repr ____________________ 163s 163s self = 163s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 163s connection = None, _has_events = None, _allow_revalidate = True 163s _allow_autobegin = True 163s 163s def __init__( 163s self, 163s engine: Engine, 163s connection: Optional[PoolProxiedConnection] = None, 163s _has_events: Optional[bool] = None, 163s _allow_revalidate: bool = True, 163s _allow_autobegin: bool = True, 163s ): 163s """Construct a new Connection.""" 163s self.engine = engine 163s self.dialect = dialect = engine.dialect 163s 163s if connection is None: 163s try: 163s > self._dbapi_connection = engine.raw_connection() 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 163s return self.pool.connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 163s return _ConnectionFairy._checkout(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 163s fairy = _ConnectionRecord.checkout(pool) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 163s rec = pool._do_get() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 163s return self._create_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 163s return _ConnectionRecord(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 163s self.__connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 163s self.dbapi_connection = connection = pool._invoke_creator(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 163s return dialect.connect(*cargs, **cparams) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 163s return self.loaded_dbapi.connect(*cargs, **cparams) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 163s connection_factory = None, cursor_factory = None 163s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 163s kwasync = {} 163s 163s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 163s """ 163s Create a new database connection. 163s 163s The connection parameters can be specified as a string: 163s 163s conn = psycopg2.connect("dbname=test user=postgres password=secret") 163s 163s or using a set of keyword arguments: 163s 163s conn = psycopg2.connect(database="test", user="postgres", password="secret") 163s 163s Or as a mix of both. The basic connection parameters are: 163s 163s - *dbname*: the database name 163s - *database*: the database name (only as keyword argument) 163s - *user*: user name used to authenticate 163s - *password*: password used to authenticate 163s - *host*: database host address (defaults to UNIX socket if not provided) 163s - *port*: connection port number (defaults to 5432 if not provided) 163s 163s Using the *connection_factory* parameter a different class or connections 163s factory can be specified. It should be a callable object taking a dsn 163s argument. 163s 163s Using the *cursor_factory* parameter, a new default cursor factory will be 163s used by cursor(). 163s 163s Using *async*=True an asynchronous connection will be created. *async_* is 163s a valid alias (for Python versions where ``async`` is a keyword). 163s 163s Any other keyword parameter will be passed to the underlying client 163s library: the list of supported parameters depends on the library version. 163s 163s """ 163s kwasync = {} 163s if 'async' in kwargs: 163s kwasync['async'] = kwargs.pop('async') 163s if 'async_' in kwargs: 163s kwasync['async_'] = kwargs.pop('async_') 163s 163s dsn = _ext.make_dsn(dsn, **kwargs) 163s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 163s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 50991 failed: FATAL: sorry, too many clients already 163s 163s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 163s 163s The above exception was the direct cause of the following exception: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.metadata = sa.MetaData() 163s 163s self.engine = sa.create_engine(self.engine_uri) 163s # self.engine.echo = True 163s > self.connection = self.engine.connect() 163s 163s tests/__init__.py:135: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 163s return self._connection_cls(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 163s Connection._handle_dbapi_exception_noconnection( 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 163s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 163s self._dbapi_connection = engine.raw_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 163s return self.pool.connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 163s return _ConnectionFairy._checkout(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 163s fairy = _ConnectionRecord.checkout(pool) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 163s rec = pool._do_get() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 163s return self._create_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 163s return _ConnectionRecord(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 163s self.__connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 163s self.dbapi_connection = connection = pool._invoke_creator(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 163s return dialect.connect(*cargs, **cparams) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 163s return self.loaded_dbapi.connect(*cargs, **cparams) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 163s connection_factory = None, cursor_factory = None 163s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 163s kwasync = {} 163s 163s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 163s """ 163s Create a new database connection. 163s 163s The connection parameters can be specified as a string: 163s 163s conn = psycopg2.connect("dbname=test user=postgres password=secret") 163s 163s or using a set of keyword arguments: 163s 163s conn = psycopg2.connect(database="test", user="postgres", password="secret") 163s 163s Or as a mix of both. The basic connection parameters are: 163s 163s - *dbname*: the database name 163s - *database*: the database name (only as keyword argument) 163s - *user*: user name used to authenticate 163s - *password*: password used to authenticate 163s - *host*: database host address (defaults to UNIX socket if not provided) 163s - *port*: connection port number (defaults to 5432 if not provided) 163s 163s Using the *connection_factory* parameter a different class or connections 163s factory can be specified. It should be a callable object taking a dsn 163s argument. 163s 163s Using the *cursor_factory* parameter, a new default cursor factory will be 163s used by cursor(). 163s 163s Using *async*=True an asynchronous connection will be created. *async_* is 163s a valid alias (for Python versions where ``async`` is a keyword). 163s 163s Any other keyword parameter will be passed to the underlying client 163s library: the list of supported parameters depends on the library version. 163s 163s """ 163s kwasync = {} 163s if 'async' in kwargs: 163s kwasync['async'] = kwargs.pop('async') 163s if 'async_' in kwargs: 163s kwasync['async_'] = kwargs.pop('async_') 163s 163s dsn = _ext.make_dsn(dsn, **kwargs) 163s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 163s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 50991 failed: FATAL: sorry, too many clients already 163s E 163s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 163s 163s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 163s ___________________ ERROR at setup of TestClassic.test_iter ____________________ 163s 163s self = 163s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 163s connection = None, _has_events = None, _allow_revalidate = True 163s _allow_autobegin = True 163s 163s def __init__( 163s self, 163s engine: Engine, 163s connection: Optional[PoolProxiedConnection] = None, 163s _has_events: Optional[bool] = None, 163s _allow_revalidate: bool = True, 163s _allow_autobegin: bool = True, 163s ): 163s """Construct a new Connection.""" 163s self.engine = engine 163s self.dialect = dialect = engine.dialect 163s 163s if connection is None: 163s try: 163s > self._dbapi_connection = engine.raw_connection() 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 163s return self.pool.connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 163s return _ConnectionFairy._checkout(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 163s fairy = _ConnectionRecord.checkout(pool) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 163s rec = pool._do_get() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 163s return self._create_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 163s return _ConnectionRecord(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 163s self.__connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 163s self.dbapi_connection = connection = pool._invoke_creator(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 163s return dialect.connect(*cargs, **cparams) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 163s return self.loaded_dbapi.connect(*cargs, **cparams) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 163s connection_factory = None, cursor_factory = None 163s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 163s kwasync = {} 163s 163s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 163s """ 163s Create a new database connection. 163s 163s The connection parameters can be specified as a string: 163s 163s conn = psycopg2.connect("dbname=test user=postgres password=secret") 163s 163s or using a set of keyword arguments: 163s 163s conn = psycopg2.connect(database="test", user="postgres", password="secret") 163s 163s Or as a mix of both. The basic connection parameters are: 163s 163s - *dbname*: the database name 163s - *database*: the database name (only as keyword argument) 163s - *user*: user name used to authenticate 163s - *password*: password used to authenticate 163s - *host*: database host address (defaults to UNIX socket if not provided) 163s - *port*: connection port number (defaults to 5432 if not provided) 163s 163s Using the *connection_factory* parameter a different class or connections 163s factory can be specified. It should be a callable object taking a dsn 163s argument. 163s 163s Using the *cursor_factory* parameter, a new default cursor factory will be 163s used by cursor(). 163s 163s Using *async*=True an asynchronous connection will be created. *async_* is 163s a valid alias (for Python versions where ``async`` is a keyword). 163s 163s Any other keyword parameter will be passed to the underlying client 163s library: the list of supported parameters depends on the library version. 163s 163s """ 163s kwasync = {} 163s if 'async' in kwargs: 163s kwasync['async'] = kwargs.pop('async') 163s if 'async_' in kwargs: 163s kwasync['async_'] = kwargs.pop('async_') 163s 163s dsn = _ext.make_dsn(dsn, **kwargs) 163s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 163s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 50991 failed: FATAL: sorry, too many clients already 163s 163s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 163s 163s The above exception was the direct cause of the following exception: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.metadata = sa.MetaData() 163s 163s self.engine = sa.create_engine(self.engine_uri) 163s # self.engine.echo = True 163s > self.connection = self.engine.connect() 163s 163s tests/__init__.py:135: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 163s return self._connection_cls(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 163s Connection._handle_dbapi_exception_noconnection( 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 163s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 163s self._dbapi_connection = engine.raw_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 163s return self.pool.connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 163s return _ConnectionFairy._checkout(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 163s fairy = _ConnectionRecord.checkout(pool) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 163s rec = pool._do_get() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 163s return self._create_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 163s return _ConnectionRecord(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 163s self.__connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 163s self.dbapi_connection = connection = pool._invoke_creator(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 163s return dialect.connect(*cargs, **cparams) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 163s return self.loaded_dbapi.connect(*cargs, **cparams) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 163s connection_factory = None, cursor_factory = None 163s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 163s kwasync = {} 163s 163s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 163s """ 163s Create a new database connection. 163s 163s The connection parameters can be specified as a string: 163s 163s conn = psycopg2.connect("dbname=test user=postgres password=secret") 163s 163s or using a set of keyword arguments: 163s 163s conn = psycopg2.connect(database="test", user="postgres", password="secret") 163s 163s Or as a mix of both. The basic connection parameters are: 163s 163s - *dbname*: the database name 163s - *database*: the database name (only as keyword argument) 163s - *user*: user name used to authenticate 163s - *password*: password used to authenticate 163s - *host*: database host address (defaults to UNIX socket if not provided) 163s - *port*: connection port number (defaults to 5432 if not provided) 163s 163s Using the *connection_factory* parameter a different class or connections 163s factory can be specified. It should be a callable object taking a dsn 163s argument. 163s 163s Using the *cursor_factory* parameter, a new default cursor factory will be 163s used by cursor(). 163s 163s Using *async*=True an asynchronous connection will be created. *async_* is 163s a valid alias (for Python versions where ``async`` is a keyword). 163s 163s Any other keyword parameter will be passed to the underlying client 163s library: the list of supported parameters depends on the library version. 163s 163s """ 163s kwasync = {} 163s if 'async' in kwargs: 163s kwasync['async'] = kwargs.pop('async') 163s if 'async_' in kwargs: 163s kwasync['async_'] = kwargs.pop('async_') 163s 163s dsn = _ext.make_dsn(dsn, **kwargs) 163s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 163s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 50991 failed: FATAL: sorry, too many clients already 163s E 163s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 163s 163s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 163s __________________ ERROR at setup of TestClassic.test_values ___________________ 163s 163s self = 163s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 163s connection = None, _has_events = None, _allow_revalidate = True 163s _allow_autobegin = True 163s 163s def __init__( 163s self, 163s engine: Engine, 163s connection: Optional[PoolProxiedConnection] = None, 163s _has_events: Optional[bool] = None, 163s _allow_revalidate: bool = True, 163s _allow_autobegin: bool = True, 163s ): 163s """Construct a new Connection.""" 163s self.engine = engine 163s self.dialect = dialect = engine.dialect 163s 163s if connection is None: 163s try: 163s > self._dbapi_connection = engine.raw_connection() 163s 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 163s return self.pool.connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 163s return _ConnectionFairy._checkout(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 163s fairy = _ConnectionRecord.checkout(pool) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 163s rec = pool._do_get() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 163s return self._create_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 163s return _ConnectionRecord(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 163s self.__connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 163s self.dbapi_connection = connection = pool._invoke_creator(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 163s return dialect.connect(*cargs, **cparams) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 163s return self.loaded_dbapi.connect(*cargs, **cparams) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 163s connection_factory = None, cursor_factory = None 163s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 163s kwasync = {} 163s 163s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 163s """ 163s Create a new database connection. 163s 163s The connection parameters can be specified as a string: 163s 163s conn = psycopg2.connect("dbname=test user=postgres password=secret") 163s 163s or using a set of keyword arguments: 163s 163s conn = psycopg2.connect(database="test", user="postgres", password="secret") 163s 163s Or as a mix of both. The basic connection parameters are: 163s 163s - *dbname*: the database name 163s - *database*: the database name (only as keyword argument) 163s - *user*: user name used to authenticate 163s - *password*: password used to authenticate 163s - *host*: database host address (defaults to UNIX socket if not provided) 163s - *port*: connection port number (defaults to 5432 if not provided) 163s 163s Using the *connection_factory* parameter a different class or connections 163s factory can be specified. It should be a callable object taking a dsn 163s argument. 163s 163s Using the *cursor_factory* parameter, a new default cursor factory will be 163s used by cursor(). 163s 163s Using *async*=True an asynchronous connection will be created. *async_* is 163s a valid alias (for Python versions where ``async`` is a keyword). 163s 163s Any other keyword parameter will be passed to the underlying client 163s library: the list of supported parameters depends on the library version. 163s 163s """ 163s kwasync = {} 163s if 'async' in kwargs: 163s kwasync['async'] = kwargs.pop('async') 163s if 'async_' in kwargs: 163s kwasync['async_'] = kwargs.pop('async_') 163s 163s dsn = _ext.make_dsn(dsn, **kwargs) 163s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 163s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 50991 failed: FATAL: sorry, too many clients already 163s 163s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 163s 163s The above exception was the direct cause of the following exception: 163s 163s self = 163s method = > 163s 163s def setup_method(self, method): 163s self.metadata = sa.MetaData() 163s 163s self.engine = sa.create_engine(self.engine_uri) 163s # self.engine.echo = True 163s > self.connection = self.engine.connect() 163s 163s tests/__init__.py:135: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 163s return self._connection_cls(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 163s Connection._handle_dbapi_exception_noconnection( 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 163s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 163s self._dbapi_connection = engine.raw_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 163s return self.pool.connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 163s return _ConnectionFairy._checkout(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 163s fairy = _ConnectionRecord.checkout(pool) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 163s rec = pool._do_get() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 163s return self._create_connection() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 163s return _ConnectionRecord(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 163s self.__connect() 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 163s with util.safe_reraise(): 163s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 163s raise exc_value.with_traceback(exc_tb) 163s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 163s self.dbapi_connection = connection = pool._invoke_creator(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 163s return dialect.connect(*cargs, **cparams) 163s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 163s return self.loaded_dbapi.connect(*cargs, **cparams) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 163s connection_factory = None, cursor_factory = None 163s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 163s kwasync = {} 163s 163s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 163s """ 163s Create a new database connection. 163s 163s The connection parameters can be specified as a string: 163s 163s conn = psycopg2.connect("dbname=test user=postgres password=secret") 163s 163s or using a set of keyword arguments: 163s 163s conn = psycopg2.connect(database="test", user="postgres", password="secret") 163s 163s Or as a mix of both. The basic connection parameters are: 163s 163s - *dbname*: the database name 163s - *database*: the database name (only as keyword argument) 163s - *user*: user name used to authenticate 163s - *password*: password used to authenticate 163s - *host*: database host address (defaults to UNIX socket if not provided) 163s - *port*: connection port number (defaults to 5432 if not provided) 163s 163s Using the *connection_factory* parameter a different class or connections 163s factory can be specified. It should be a callable object taking a dsn 163s argument. 163s 163s Using the *cursor_factory* parameter, a new default cursor factory will be 163s used by cursor(). 163s 163s Using *async*=True an asynchronous connection will be created. *async_* is 163s a valid alias (for Python versions where ``async`` is a keyword). 163s 163s Any other keyword parameter will be passed to the underlying client 163s library: the list of supported parameters depends on the library version. 163s 163s """ 163s kwasync = {} 163s if 'async' in kwargs: 163s kwasync['async'] = kwargs.pop('async') 163s if 'async_' in kwargs: 163s kwasync['async_'] = kwargs.pop('async_') 163s 163s dsn = _ext.make_dsn(dsn, **kwargs) 163s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 163s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 50991 failed: FATAL: sorry, too many clients already 163s E 163s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 163s 163s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 163s =================================== FAILURES =================================== 163s ___________ TestDeclarative.test_does_not_generate_hybrid_properties ___________ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s > return getattr(class_, '_translation_%s' % locale) 163s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 163s 163s sqlalchemy_i18n/comparators.py:13: AttributeError 163s 163s During handling of the above exception, another exception occurred: 163s 163s self = 163s 163s def test_does_not_generate_hybrid_properties(self): 163s > self.Article() 163s 163s tests/test_hybrid_property_exclusion.py:15: 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s :4: in __init__ 163s ??? 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/state.py:566: in _initialize_instance 163s manager.dispatch.init(self, args, kwargs) 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:497: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4396: in _event_on_init 163s instrumenting_mapper._check_configure() 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2388: in _check_configure 163s _configure_registries({self.registry}, cascade=True) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 163s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 163s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 163s fn(*args, **kw) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 163s fn(*arg, **kw) 163s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 163s RelationshipBuilder(self, cls)() 163s sqlalchemy_i18n/builders.py:228: in __call__ 163s self.assign_translations() 163s sqlalchemy_i18n/builders.py:186: in assign_translations 163s mapper.add_property('_translations', sa.orm.relationship( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 163s prop = self._configure_property( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 163s prop.post_instrument_class(self) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 163s self.strategy.init_class_attribute(mapper) 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 163s _register_attribute( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 163s desc = attributes.register_attribute_impl( 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 163s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 163s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 163s if hasattr(obj, "_slots_dispatch"): 163s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 163s return getattr(self.comparator, key) 163s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 163s 163s self = 163s locale = '_slots_dispatch' 163s 163s def __getattr__(self, locale): 163s class_ = self._parentmapper.class_ 163s try: 163s return getattr(class_, '_translation_%s' % locale) 163s except AttributeError: 163s > raise UnknownLocaleError(locale, class_) 163s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 163s 163s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 163s =============================== warnings summary =============================== 163s sqlalchemy_i18n/translatable.py:62 163s /tmp/autopkgtest.CbTGFV/build.1ix/src/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. 163s @sa.event.listens_for(sa.orm.mapper, 'expire') 163s 163s sqlalchemy_i18n/__init__.py:41 163s /tmp/autopkgtest.CbTGFV/build.1ix/src/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. 163s sa.event.listen( 163s 163s sqlalchemy_i18n/__init__.py:44 163s /tmp/autopkgtest.CbTGFV/build.1ix/src/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. 163s sa.event.listen( 163s 163s tests/test_common_base_class.py: 1 warning 163s tests/test_comparator.py: 2 warnings 163s tests/test_composite_primary_key.py: 1 warning 163s tests/test_configuration.py: 2 warnings 163s tests/test_current_translation_property.py: 3 warnings 163s tests/test_current_translation_property_with_locale.py: 1 warning 163s tests/test_custom_base_class.py: 1 warning 163s tests/test_fallback_locale_as_callable.py: 2 warnings 163s tests/test_fallback_locale_without_class_default.py: 2 warnings 163s tests/test_fallback_translation.py: 3 warnings 163s tests/test_find_translations.py: 2 warnings 163s tests/test_hybrid_property_as_dynamic_source_locale.py: 1 warning 163s tests/test_hybrid_property_exclusion.py: 1 warning 163s tests/test_join_expressions.py: 4 warnings 163s tests/test_joined_loading.py: 5 warnings 163s tests/test_joined_table_inheritance.py: 8 warnings 163s tests/test_property_collision.py: 1 warning 163s tests/test_relationships.py: 1 warning 163s tests/test_translatable.py: 8 warnings 163s tests/test_translation_auto_creation.py: 1 warning 163s tests/test_translation_auto_creation_with_non_nullables.py: 1 warning 163s tests/test_translation_mapping.py: 4 warnings 163s /tmp/autopkgtest.CbTGFV/build.1ix/src/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) 163s self.Model = declarative_base() 163s 163s tests/test_common_base_class.py: 2 warnings 163s tests/test_comparator.py: 2 warnings 163s tests/test_composite_primary_key.py: 1 warning 163s tests/test_configuration.py: 2 warnings 163s tests/test_current_translation_property.py: 3 warnings 163s tests/test_current_translation_property_with_locale.py: 1 warning 163s tests/test_custom_base_class.py: 1 warning 163s tests/test_fallback_locale_as_callable.py: 2 warnings 163s tests/test_fallback_locale_without_class_default.py: 2 warnings 163s tests/test_fallback_translation.py: 3 warnings 163s tests/test_find_translations.py: 2 warnings 163s tests/test_hybrid_property_as_dynamic_source_locale.py: 1 warning 163s tests/test_hybrid_property_exclusion.py: 1 warning 163s tests/test_join_expressions.py: 4 warnings 163s tests/test_joined_loading.py: 5 warnings 163s tests/test_joined_table_inheritance.py: 8 warnings 163s tests/test_property_collision.py: 1 warning 163s tests/test_relationships.py: 1 warning 163s tests/test_translatable.py: 8 warnings 163s tests/test_translation_auto_creation.py: 1 warning 163s tests/test_translation_auto_creation_with_non_nullables.py: 1 warning 163s tests/test_translation_mapping.py: 4 warnings 163s /tmp/autopkgtest.CbTGFV/build.1ix/src/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) 163s if has_inherited_table(cls): 163s 163s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 163s =========================== short test summary info ============================ 163s FAILED tests/test_hybrid_property_exclusion.py::TestDeclarative::test_does_not_generate_hybrid_properties 163s ERROR tests/test_common_base_class.py::TestDeclarative::test_translatable_dict_copied_to_each_child_class 163s ERROR tests/test_common_base_class.py::TestClassic::test_translatable_dict_copied_to_each_child_class 163s ERROR tests/test_comparator.py::TestDeclarative::test_attribute_accessor_for_unknown_locale 163s ERROR tests/test_comparator.py::TestDeclarative::test_attribute_accessors - s... 163s ERROR tests/test_comparator.py::TestClassic::test_attribute_accessor_for_unknown_locale 163s ERROR tests/test_comparator.py::TestClassic::test_attribute_accessors - sqlal... 163s ERROR tests/test_composite_primary_key.py::TestDeclarative::test_relationships 163s ERROR tests/test_composite_primary_key.py::TestClassic::test_relationships - ... 163s ERROR tests/test_configuration.py::TestTranslationBaseCustomization::test_customize_foreign_key_args 163s ERROR tests/test_configuration.py::TestTranslationBaseCustomization::test_customize_relationships_args 163s ERROR tests/test_current_translation_property.py::TestDeclarative::test_as_object_property 163s ERROR tests/test_current_translation_property.py::TestDeclarative::test_as_class_property 163s ERROR tests/test_current_translation_property.py::TestDeclarative::test_setter 163s ERROR tests/test_current_translation_property.py::TestClassic::test_as_object_property 163s ERROR tests/test_current_translation_property.py::TestClassic::test_as_class_property 163s ERROR tests/test_current_translation_property.py::TestClassic::test_setter - ... 163s ERROR tests/test_current_translation_property_with_locale.py::TestDeclarative::test_converts_locale_object_to_unicode 163s ERROR tests/test_current_translation_property_with_locale.py::TestClassic::test_converts_locale_object_to_unicode 163s ERROR tests/test_custom_base_class.py::TestDeclarative::test_translatable_dict_copied_to_each_child_class 163s ERROR tests/test_fallback_locale_as_callable.py::TestDeclarative::test_hybrid_properties_support_callable_fallback_locales 163s ERROR tests/test_fallback_locale_as_callable.py::TestDeclarative::test_locale_fallback 163s ERROR tests/test_fallback_locale_as_callable.py::TestClassic::test_hybrid_properties_support_callable_fallback_locales 163s ERROR tests/test_fallback_locale_as_callable.py::TestClassic::test_locale_fallback 163s ERROR tests/test_fallback_locale_without_class_default.py::TestDeclarative::test_hybrid_properties_support_callable_fallback_locales 163s ERROR tests/test_fallback_locale_without_class_default.py::TestDeclarative::test_locale_fallback 163s ERROR tests/test_fallback_locale_without_class_default.py::TestClassic::test_hybrid_properties_support_callable_fallback_locales 163s ERROR tests/test_fallback_locale_without_class_default.py::TestClassic::test_locale_fallback 163s ERROR tests/test_fallback_translation.py::TestDeclarative::test_as_object_property_with_force_locale 163s ERROR tests/test_fallback_translation.py::TestDeclarative::test_as_class_property 163s ERROR tests/test_fallback_translation.py::TestDeclarative::test_setter - sqla... 163s ERROR tests/test_fallback_translation.py::TestClassic::test_as_object_property_with_force_locale 163s ERROR tests/test_fallback_translation.py::TestClassic::test_as_class_property 163s ERROR tests/test_fallback_translation.py::TestClassic::test_setter - sqlalche... 163s ERROR tests/test_find_translations.py::TestDeclarative::test_with_full_confidence 163s ERROR tests/test_find_translations.py::TestDeclarative::test_with_varying_confidence 163s ERROR tests/test_find_translations.py::TestClassic::test_with_full_confidence 163s ERROR tests/test_find_translations.py::TestClassic::test_with_varying_confidence 163s ERROR tests/test_hybrid_property_as_dynamic_source_locale.py::TestDeclarative::test_joinedload_for_current_translation 163s ERROR tests/test_hybrid_property_as_dynamic_source_locale.py::TestClassic::test_joinedload_for_current_translation 163s ERROR tests/test_hybrid_property_exclusion.py::TestClassic::test_does_not_generate_hybrid_properties 163s ERROR tests/test_join_expressions.py::TestDeclarative::test_current_translation_as_expression 163s ERROR tests/test_join_expressions.py::TestDeclarative::test_order_by_translation 163s ERROR tests/test_join_expressions.py::TestDeclarative::test_fallback_locale_as_expression 163s ERROR tests/test_join_expressions.py::TestDeclarative::test_querying - sqlalc... 163s ERROR tests/test_join_expressions.py::TestClassic::test_current_translation_as_expression 163s ERROR tests/test_join_expressions.py::TestClassic::test_order_by_translation 163s ERROR tests/test_join_expressions.py::TestClassic::test_fallback_locale_as_expression 163s ERROR tests/test_join_expressions.py::TestClassic::test_querying - sqlalchemy... 163s ERROR tests/test_joined_loading.py::TestDeclarative::test_joinedload_for_current_translation 163s ERROR tests/test_joined_loading.py::TestDeclarative::test_contains_eager_for_current_translation 163s ERROR tests/test_joined_loading.py::TestDeclarative::test_joinedload_for_single_translation 163s ERROR tests/test_joined_loading.py::TestDeclarative::test_joinedload_for_attr_accessor 163s ERROR tests/test_joined_loading.py::TestDeclarative::test_joinedload_for_all_translations 163s ERROR tests/test_joined_loading.py::TestClassic::test_joinedload_for_current_translation 163s ERROR tests/test_joined_loading.py::TestClassic::test_contains_eager_for_current_translation 163s ERROR tests/test_joined_loading.py::TestClassic::test_joinedload_for_single_translation 163s ERROR tests/test_joined_loading.py::TestClassic::test_joinedload_for_attr_accessor 163s ERROR tests/test_joined_loading.py::TestClassic::test_joinedload_for_all_translations 163s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_auto_creates_relations 163s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_auto_creates_current_translation 163s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_translatable_attributes 163s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_inherits_child_properties 163s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_translated_columns 163s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_property_delegators 163s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_table_name 163s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_inherits_parent_table 163s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_auto_creates_relations 163s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_auto_creates_current_translation 163s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_translatable_attributes 163s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_inherits_child_properties 163s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_translated_columns 163s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_property_delegators 163s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_table_name - ... 163s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_inherits_parent_table 163s ERROR tests/test_relationships.py::TestDeclarative::test_nullify_relation - s... 163s ERROR tests/test_relationships.py::TestClassic::test_nullify_relation - sqlal... 163s ERROR tests/test_translatable.py::TestDeclarative::test_auto_creates_relations 163s ERROR tests/test_translatable.py::TestDeclarative::test_translatable_attributes 163s ERROR tests/test_translatable.py::TestDeclarative::test_relationship_consistency 163s ERROR tests/test_translatable.py::TestDeclarative::test_property_delegators 163s ERROR tests/test_translatable.py::TestDeclarative::test_commit_session - sqla... 163s ERROR tests/test_translatable.py::TestDeclarative::test_delete - sqlalchemy_i... 163s ERROR tests/test_translatable.py::TestDeclarative::test_translated_columns - ... 163s ERROR tests/test_translatable.py::TestDeclarative::test_appends_locale_column_to_translation_table 163s ERROR tests/test_translatable.py::TestClassic::test_auto_creates_relations - ... 163s ERROR tests/test_translatable.py::TestClassic::test_translatable_attributes 163s ERROR tests/test_translatable.py::TestClassic::test_relationship_consistency 163s ERROR tests/test_translatable.py::TestClassic::test_property_delegators - sql... 163s ERROR tests/test_translatable.py::TestClassic::test_commit_session - sqlalche... 163s ERROR tests/test_translatable.py::TestClassic::test_delete - sqlalchemy.exc.I... 163s ERROR tests/test_translatable.py::TestClassic::test_translated_columns - sqla... 163s ERROR tests/test_translatable.py::TestClassic::test_appends_locale_column_to_translation_table 163s ERROR tests/test_translation_auto_creation.py::TestDeclarative::test_auto_creates_translation_objects 163s ERROR tests/test_translation_auto_creation.py::TestClassic::test_auto_creates_translation_objects 163s ERROR tests/test_translation_auto_creation_with_non_nullables.py::TestDeclarative::test_auto_sets_nullables_as_empty_strings 163s ERROR tests/test_translation_auto_creation_with_non_nullables.py::TestClassic::test_auto_sets_nullables_as_empty_strings 163s ERROR tests/test_translation_mapping.py::TestDeclarative::test_proxy_contains 163s ERROR tests/test_translation_mapping.py::TestDeclarative::test_translation_mapping_attribute_getter 163s ERROR tests/test_translation_mapping.py::TestDeclarative::test_attribute_accessor_for_unknown_locale 163s ERROR tests/test_translation_mapping.py::TestDeclarative::test_proxy_not_contains 163s ERROR tests/test_translation_mapping.py::TestDeclarative::test_items - sqlalc... 163s ERROR tests/test_translation_mapping.py::TestDeclarative::test_iteritems - sq... 163s ERROR tests/test_translation_mapping.py::TestDeclarative::test_set_item - sql... 163s ERROR tests/test_translation_mapping.py::TestDeclarative::test_repr - sqlalch... 163s ERROR tests/test_translation_mapping.py::TestDeclarative::test_iter - sqlalch... 163s ERROR tests/test_translation_mapping.py::TestDeclarative::test_values - sqlal... 163s ERROR tests/test_translation_mapping.py::TestClassic::test_proxy_contains - s... 163s ERROR tests/test_translation_mapping.py::TestClassic::test_translation_mapping_attribute_getter 163s ERROR tests/test_translation_mapping.py::TestClassic::test_attribute_accessor_for_unknown_locale 163s ERROR tests/test_translation_mapping.py::TestClassic::test_proxy_not_contains 163s ERROR tests/test_translation_mapping.py::TestClassic::test_items - sqlalchemy... 163s ERROR tests/test_translation_mapping.py::TestClassic::test_iteritems - sqlalc...2024-11-14 18:13:36.569 UTC [4758] LOG: received smart shutdown request 168s 2024-11-14 18:13:41.590 UTC [4856] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.590 UTC [4778] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.593 UTC [4770] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.594 UTC [4843] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.595 UTC [4816] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.595 UTC [4781] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.595 UTC [4820] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.596 UTC [4766] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.597 UTC [4858] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.597 UTC [4768] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.598 UTC [4845] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.599 UTC [4798] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.600 UTC [4861] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.600 UTC [4853] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.600 UTC [4844] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.601 UTC [4780] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.602 UTC [4848] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.603 UTC [4769] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.604 UTC [4777] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.605 UTC [4817] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.605 UTC [4794] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.607 UTC [4813] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.607 UTC [4795] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.608 UTC [4776] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.608 UTC [4811] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.608 UTC [4818] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.611 UTC [4797] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.616 UTC [4807] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.617 UTC [4806] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.617 UTC [4767] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.623 UTC [4774] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.624 UTC [4773] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.625 UTC [4800] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.626 UTC [4772] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.626 UTC [4788] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.627 UTC [4771] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.627 UTC [4787] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.629 UTC [4784] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.629 UTC [4775] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.630 UTC [4819] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.631 UTC [4804] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.631 UTC [4793] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.632 UTC [4792] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.632 UTC [4791] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.636 UTC [4790] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.637 UTC [4783] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.639 UTC [4782] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.646 UTC [4779] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.647 UTC [4789] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.647 UTC [4803] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.648 UTC [4786] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.648 UTC [4802] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.650 UTC [4785] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.650 UTC [4839] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.651 UTC [4834] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.651 UTC [4831] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.652 UTC [4796] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.653 UTC [4837] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.654 UTC [4815] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.654 UTC [4830] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.655 UTC [4821] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.655 UTC [4810] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.659 UTC [4809] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.661 UTC [4808] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.662 UTC [4801] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.663 UTC [4814] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.665 UTC [4812] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.672 UTC [4799] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.674 UTC [4822] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.678 UTC [4825] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.683 UTC [4826] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.687 UTC [4827] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.687 UTC [4840] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.689 UTC [4859] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.690 UTC [4860] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.691 UTC [4862] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.693 UTC [4867] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.698 UTC [4864] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.701 UTC [4829] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.702 UTC [4865] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.702 UTC [4832] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.703 UTC [4833] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.703 UTC [4824] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.704 UTC [4835] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.705 UTC [4828] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.706 UTC [4823] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.707 UTC [4863] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.713 UTC [4849] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.723 UTC [4836] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.725 UTC [4851] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.726 UTC [4855] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.735 UTC [4857] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.739 UTC [4838] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.741 UTC [4866] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.741 UTC [4842] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.743 UTC [4846] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.745 UTC [4847] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.756 UTC [4852] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.757 UTC [4850] FATAL: terminating connection due to unexpected postmaster exit 168s 2024-11-14 18:13:41.769 UTC [4854] FATAL: terminating connection due to unexpected postmaster exit 168s 168s ERROR tests/test_translation_mapping.py::TestClassic::test_set_item - sqlalch... 168s ERROR tests/test_translation_mapping.py::TestClassic::test_repr - sqlalchemy.... 168s ERROR tests/test_translation_mapping.py::TestClassic::test_iter - sqlalchemy.... 168s ERROR tests/test_translation_mapping.py::TestClassic::test_values - sqlalchem... 168s ============ 1 failed, 2 passed, 114 warnings, 116 errors in 32.89s ============ 168s stopping server 168s clean up 169s autopkgtest [18:13:42]: test setup-db-and-run-tests.py: -----------------------] 170s autopkgtest [18:13:43]: test setup-db-and-run-tests.py: - - - - - - - - - - results - - - - - - - - - - 170s setup-db-and-run-tests.py PASS 170s autopkgtest [18:13:43]: @@@@@@@@@@@@@@@@@@@@ summary 170s setup-db-and-run-tests.py PASS 182s nova [W] Using flock in prodstack6-ppc64el 182s Creating nova instance adt-plucky-ppc64el-sqlalchemy-i18n-20241114-181053-juju-7f2275-prod-proposed-migration-environment-15-ccc368ed-38bd-4e19-a3be-bed0466c101b from image adt/ubuntu-plucky-ppc64el-server-20241113.img (UUID 0c5715b6-5cca-4485-b8bf-b85dfd917a5f)...