0s autopkgtest [10:59:37]: starting date and time: 2024-11-13 10:59:37+0000 1s autopkgtest [10:59:38]: git checkout: 6f3be7a8 Fix armhf LXD image generation for plucky 1s autopkgtest [10:59:38]: host juju-7f2275-prod-proposed-migration-environment-20; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.ure21zwy/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:python3-defaults,src:python3-stdlib-extensions --apt-upgrade sqlalchemy-i18n --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 '--env=ADT_TEST_TRIGGERS=python3-defaults/3.12.7-1 python3-stdlib-extensions/3.12.7-1' -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-ppc64el --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-20@bos03-ppc64el-7.secgroup --name adt-plucky-ppc64el-sqlalchemy-i18n-20241113-105937-juju-7f2275-prod-proposed-migration-environment-20-037cb0ce-9037-4607-b813-d95cc5642153 --image adt/ubuntu-plucky-ppc64el-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-20 --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/ 466s nova [W] Using flock in prodstack6-ppc64el 466s Creating nova instance adt-plucky-ppc64el-sqlalchemy-i18n-20241113-105937-juju-7f2275-prod-proposed-migration-environment-20-037cb0ce-9037-4607-b813-d95cc5642153 from image adt/ubuntu-plucky-ppc64el-server-20241113.img (UUID 0c5715b6-5cca-4485-b8bf-b85dfd917a5f)... 466s nova [E] nova boot failed (attempt #0): 466s nova [E] DEBUG (extension:189) found extension EntryPoint.parse('v1password = swiftclient.authv1:PasswordLoader') 466s DEBUG (extension:189) found extension EntryPoint.parse('noauth = cinderclient.contrib.noauth:CinderNoAuthLoader') 466s DEBUG (extension:189) found extension EntryPoint.parse('admin_token = keystoneauth1.loading._plugins.admin_token:AdminToken') 466s DEBUG (extension:189) found extension EntryPoint.parse('none = keystoneauth1.loading._plugins.noauth:NoAuth') 466s DEBUG (extension:189) found extension EntryPoint.parse('password = keystoneauth1.loading._plugins.identity.generic:Password') 466s DEBUG (extension:189) found extension EntryPoint.parse('token = keystoneauth1.loading._plugins.identity.generic:Token') 466s DEBUG (extension:189) found extension EntryPoint.parse('v2password = keystoneauth1.loading._plugins.identity.v2:Password') 466s DEBUG (extension:189) found extension EntryPoint.parse('v2token = keystoneauth1.loading._plugins.identity.v2:Token') 466s DEBUG (extension:189) found extension EntryPoint.parse('v3adfspassword = keystoneauth1.extras._saml2._loading:ADFSPassword') 466s DEBUG (extension:189) found extension EntryPoint.parse('v3applicationcredential = keystoneauth1.loading._plugins.identity.v3:ApplicationCredential') 466s DEBUG (extension:189) found extension EntryPoint.parse('v3fedkerb = keystoneauth1.extras.kerberos._loading:MappedKerberos') 466s DEBUG (extension:189) found extension EntryPoint.parse('v3kerberos = keystoneauth1.extras.kerberos._loading:Kerberos') 466s DEBUG (extension:189) found extension EntryPoint.parse('v3multifactor = keystoneauth1.loading._plugins.identity.v3:MultiFactor') 466s DEBUG (extension:189) found extension EntryPoint.parse('v3oauth1 = keystoneauth1.extras.oauth1._loading:V3OAuth1') 466s DEBUG (extension:189) found extension EntryPoint.parse('v3oidcaccesstoken = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectAccessToken') 466s DEBUG (extension:189) found extension EntryPoint.parse('v3oidcauthcode = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectAuthorizationCode') 466s DEBUG (extension:189) found extension EntryPoint.parse('v3oidcclientcredentials = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectClientCredentials') 466s DEBUG (extension:189) found extension EntryPoint.parse('v3oidcpassword = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectPassword') 466s DEBUG (extension:189) found extension EntryPoint.parse('v3password = keystoneauth1.loading._plugins.identity.v3:Password') 466s DEBUG (extension:189) found extension EntryPoint.parse('v3samlpassword = keystoneauth1.extras._saml2._loading:Saml2Password') 466s DEBUG (extension:189) found extension EntryPoint.parse('v3token = keystoneauth1.loading._plugins.identity.v3:Token') 466s DEBUG (extension:189) found extension EntryPoint.parse('v3tokenlessauth = keystoneauth1.loading._plugins.identity.v3:TokenlessAuth') 466s DEBUG (extension:189) found extension EntryPoint.parse('v3totp = keystoneauth1.loading._plugins.identity.v3:TOTP') 466s DEBUG (session:517) REQ: curl -g -i -X GET https://keystone.ps6.canonical.com:5000/v3 -H "Accept: application/json" -H "User-Agent: nova keystoneauth1/4.0.0 python-requests/2.22.0 CPython/3.8.10" 466s DEBUG (connectionpool:962) Starting new HTTPS connection (1): keystone.ps6.canonical.com:5000 466s DEBUG (connectionpool:429) https://keystone.ps6.canonical.com:5000 "GET /v3 HTTP/1.1" 200 267 466s DEBUG (session:548) RESP: [200] Connection: Keep-Alive Content-Length: 267 Content-Type: application/json Date: Wed, 13 Nov 2024 11:01:01 GMT Keep-Alive: timeout=75, max=1000 Server: Apache/2.4.52 (Ubuntu) Vary: X-Auth-Token x-openstack-request-id: req-ef357471-d59b-4064-9e5e-0c102108c84d 466s DEBUG (session:580) RESP BODY: {"version": {"id": "v3.14", "status": "stable", "updated": "2020-04-07T00:00:00Z", "links": [{"rel": "self", "href": "https://keystone.ps6.canonical.com:5000/v3/"}], "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}]}} 466s DEBUG (session:946) GET call to https://keystone.ps6.canonical.com:5000/v3 used request id req-ef357471-d59b-4064-9e5e-0c102108c84d 466s DEBUG (base:182) Making authentication request to https://keystone.ps6.canonical.com:5000/v3/auth/tokens 466s DEBUG (connectionpool:429) https://keystone.ps6.canonical.com:5000 "POST /v3/auth/tokens HTTP/1.1" 201 12525 466s DEBUG (base:187) {"token": {"methods": ["password"], "user": {"domain": {"id": "default", "name": "Default"}, "id": "c871debdeffd4cb8b69ce618fc4aa361", "name": "prod-proposed-migration-ppc64el", "password_expires_at": null}, "audit_ids": ["wj_rvpzGTpy4wVApJ755Fg"], "expires_at": "2024-11-14T11:01:02.000000Z", "issued_at": "2024-11-13T11:01:02.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "623df63b80274c21bc79a0c35e68d615", "name": "prod-proposed-migration-ppc64el_project"}, "is_domain": false, "roles": [{"id": "86bf3043974746c2bf52c2a9f362f986", "name": "reader"}, {"id": "15cf997650e345b7b21c02b5cdb7d84a", "name": "member"}, {"id": "80674fb26dab46e9a6bd57e7f8193360", "name": "load-balancer_member"}], "is_admin_project": false, "catalog": [{"endpoints": [{"id": "213cdf38198c4581bd5b7d6d0836923b", "interface": "internal", "region_id": "prodstack6", "url": "https://radosgw-internal.ps6.canonical.com:443/", "region": "prodstack6"}, {"id": "67061eee26944a1a8009f9d07be19738", "interface": "public", "region_id": "prodstack6", "url": "https://radosgw.ps6.canonical.com:443/", "region": "prodstack6"}, {"id": "fc88c52c749a47d08a24a2c7efbde01b", "interface": "admin", "region_id": "prodstack6", "url": "https://radosgw-admin.ps6.canonical.com:443/", "region": "prodstack6"}], "id": "06e4714942634054bf9aa11715312b4e", "type": "s3", "name": "s3"}, {"endpoints": [{"id": "8aa44c94b63746bd9b37f1008ad55fa8", "interface": "admin", "region_id": "prodstack6", "url": "https://aodh-admin.ps6.canonical.com:8042", "region": "prodstack6"}, {"id": "92cf08a80a0242ebbca8ec893cf332b1", "interface": "public", "region_id": "prodstack6", "url": "https://aodh.ps6.canonical.com:8042", "region": "prodstack6"}, {"id": "d8139c6e11ae4edcb78981c12bd53212", "interface": "internal", "region_id": "prodstack6", "url": "https://aodh-internal.ps6.canonical.com:8042", "region": "prodstack6"}], "id": "2fb939b0b969435c8f0c5fa4edb4de94", "type": "alarming", "name": "aodh"}, {"endpoints": [{"id": "a49fcc80e658411885f88cdd8432a571", "interface": "internal", "region_id": "prodstack6", "url": "https://heat-internal.ps6.canonical.com:8000/v1", "region": "prodstack6"}, {"id": "b23866fddba8415885b06c064c34b94b", "interface": "public", "region_id": "prodstack6", "url": "https://heat.ps6.canonical.com:8000/v1", "region": "prodstack6"}, {"id": "f84ae55197f94b8392a678f35c82ca26", "interface": "admin", "region_id": "prodstack6", "url": "https://heat-admin.ps6.canonical.com:8000/v1", "region": "prodstack6"}], "id": "3d4b59f7dab644b2b527e8e96b697545", "type": "cloudformation", "name": "heat-cfn"}, {"endpoints": [{"id": "2e0143334c6241169f45f1c11970c6bc", "interface": "public", "region_id": "prodstack6", "url": "https://heat.ps6.canonical.com:8004/v1/623df63b80274c21bc79a0c35e68d615", "region": "prodstack6"}, {"id": "5e19c32243c04a3faf1e5f9ab900c260", "interface": "internal", "region_id": "prodstack6", "url": "https://heat-internal.ps6.canonical.com:8004/v1/623df63b80274c21bc79a0c35e68d615", "region": "prodstack6"}, {"id": "b3fc5c88ec8543a691fec75726b86967", "interface": "admin", "region_id": "prodstack6", "url": "https://heat-admin.ps6.canonical.com:8004/v1/623df63b80274c21bc79a0c35e68d615", "region": "prodstack6"}], "id": "43b926205044476b8093b18d8ce0a9e4", "type": "orchestration", "name": "heat"}, {"endpoints": [{"id": "a47569b96e5b4146a312e4673504557c", "interface": "public", "region_id": "prodstack6", "url": "https://glance.ps6.canonical.com:9292", "region": "prodstack6"}, {"id": "bba35c4ab04f4114a2a34e65568537bd", "interface": "internal", "region_id": "prodstack6", "url": "https://glance-internal.ps6.canonical.com:9292", "region": "prodstack6"}, {"id": "ef769f1117c74a62a279131486c89628", "interface": "admin", "region_id": "prodstack6", "url": "https://glance-admin.ps6.canonical.com:9292", "region": "prodstack6"}], "id": "49de724549524bd78e9cd46a4477226f", "type": "image", "name": "glance"}, {"endpoints": [{"id": "a1a41e9a1e2d42e5b6cd5380cd1e21bf", "interface": "admin", "region_id": "prodstack6", "url": "https://cinder-admin.ps6.canonical.com:8776/v3/623df63b80274c21bc79a0c35e68d615", "region": "prodstack6"}, {"id": "d2309a99724b4111827482c68a832c0c", "interface": "public", "region_id": "prodstack6", "url": "https://cinder.ps6.canonical.com:8776/v3/623df63b80274c21bc79a0c35e68d615", "region": "prodstack6"}, {"id": "f8a02e3949ff42afa772eb5e74dbef9f", "interface": "internal", "region_id": "prodstack6", "url": "https://cinder-internal.ps6.canonical.com:8776/v3/623df63b80274c21bc79a0c35e68d615", "region": "prodstack6"}], "id": "5bf6578a631349e3af4bf36d7adb18e1", "type": "volumev3", "name": "cinderv3"}, {"endpoints": [{"id": "01d84128f36444e9b01549b86bd69116", "interface": "admin", "region_id": "prodstack6", "url": "https://barbican-admin.ps6.canonical.com:9312", "region": "prodstack6"}, {"id": "0ce4a8777e0b40a88f7fc0f77e34a605", "interface": "public", "region_id": "prodstack6", "url": "https://barbican.ps6.canonical.com:9311", "region": "prodstack6"}, {"id": "f507ba49e4a7435cb330234217c92449", "interface": "internal", "region_id": "prodstack6", "url": "https://barbican-internal.ps6.canonical.com:9311", "region": "prodstack6"}], "id": "62cb1c3d9f6c45979c13516a6b3ff114", "type": "key-manager", "name": "barbican"}, {"endpoints": [{"id": "3cb6121bd8f14da8aa2fba7be823a2b4", "interface": "internal", "region_id": "prodstack6", "url": "https://neutron-internal.ps6.canonical.com:9696", "region": "prodstack6"}, {"id": "46ba11d133fe4e8f9e8f9097ba737682", "interface": "admin", "region_id": "prodstack6", "url": "https://neutron-admin.ps6.canonical.com:9696", "region": "prodstack6"}, {"id": "d872eb6aa23d40009165aa3dcdce3948", "interface": "public", "region_id": "prodstack6", "url": "https://neutron.ps6.canonical.com:9696", "region": "prodstack6"}], "id": "759cb6fdfbc146dd8b9d1ba444c4b9db", "type": "network", "name": "neutron"}, {"endpoints": [{"id": "4349d565f72446da9699269f85df5e8b", "interface": "internal", "region_id": "prodstack6", "url": "https://manila-internal.ps6.canonical.com:8786/v2/623df63b80274c21bc79a0c35e68d615", "region": "prodstack6"}, {"id": "a483dcc58f5e415e9ec739c94474e609", "interface": "public", "region_id": "prodstack6", "url": "https://manila.ps6.canonical.com:8786/v2/623df63b80274c21bc79a0c35e68d615", "region": "prodstack6"}, {"id": "c1f14236723e42878562d8dd63d5a6a0", "interface": "admin", "region_id": "prodstack6", "url": "https://manila-admin.ps6.canonical.com:8786/v2/623df63b80274c21bc79a0c35e68d615", "region": "prodstack6"}], "id": "93fc4008035946deb1f433c2dd905a5d", "type": "sharev2", "name": "manilav2"}, {"endpoints": [{"id": "0fa148793c7249c8b187b6b4ff425731", "interface": "internal", "region_id": "prodstack6", "url": "https://radosgw-internal.ps6.canonical.com:443/swift/v1/AUTH_e4b04ca58d734ed0aa29e306adad4f79/simplestreams/data", "region": "prodstack6"}, {"id": "555ade266a6b4bcc81b6e5abf607aec5", "interface": "public", "region_id": "prodstack6", "url": "https://radosgw.ps6.canonical.com:443/swift/v1/AUTH_e4b04ca58d734ed0aa29e306adad4f79/simplestreams/data", "region": "prodstack6"}, {"id": "7dad1a7b1552465686424fc014463173", "interface": "admin", "region_id": "prodstack6", "url": "https://radosgw-admin.ps6.canonical.com:443/swift/simplestreams/data", "region": "prodstack6"}], "id": "977dd359af1a4fcc91a9daf4dc33b0f3", "type": "product-streams", "name": "image-stream"}, {"endpoints": [{"id": "12d30eabcdec4831bd15273d55b1cbab", "interface": "internal", "region_id": "prodstack6", "url": "https://manila-internal.ps6.canonical.com:8786/v1/623df63b80274c21bc79a0c35e68d615", "region": "prodstack6"}, {"id": "29d35b2b483346479f1ff1a13604d50e", "interface": "admin", "region_id": "prodstack6", "url": "https://manila-admin.ps6.canonical.com:8786/v1/623df63b80274c21bc79a0c35e68d615", "region": "prodstack6"}, {"id": "4aa1422b8f5945d8aed9ba6a8d670e5c", "interface": "public", "region_id": "prodstack6", "url": "https://manila.ps6.canonical.com:8786/v1/623df63b80274c21bc79a0c35e68d615", "region": "prodstack6"}], "id": "ac5e4f28fa794cde99f1d7ffc1b664e5", "type": "share", "name": "manila"}, {"endpoints": [{"id": "c7db93d54a684d8caeae1d9e18a59118", "interface": "admin", "region_id": "prodstack6", "url": "https://nova-admin.ps6.canonical.com:8774/v2.1", "region": "prodstack6"}, {"id": "dd7a796f401b477f9f1b5bbc05747d8d", "interface": "public", "region_id": "prodstack6", "url": "https://nova.ps6.canonical.com:8774/v2.1", "region": "prodstack6"}, {"id": "e7ecb038d830462ea67b0b463af5e013", "interface": "internal", "region_id": "prodstack6", "url": "https://nova-internal.ps6.canonical.com:8774/v2.1", "region": "prodstack6"}], "id": "b4519af08e174d4a8333a2d14ac3ba3b", "type": "compute", "name": "nova"}, {"endpoints": [{"id": "02ef5b6154934ffd97d8b5b8e4d70d2a", "interface": "internal", "region_id": "prodstack6", "url": "https://radosgw-internal.ps6.canonical.com:443/swift/v1/AUTH_623df63b80274c21bc79a0c35e68d615", "region": "prodstack6"}, {"id": "2741abe526e94842a4fa801423ba1ef0", "interface": "public", "region_id": "prodstack6", "url": "https://radosgw.ps6.canonical.com:443/swift/v1/AUTH_623df63b80274c21bc79a0c35e68d615", "region": "prodstack6"}, {"id": "3742f9406c604516933d6fd8c29e0880", "interface": "admin", "region_id": "prodstack6", "url": "https://radosgw-admin.ps6.canonical.com:443/swift", "region": "prodstack6"}], "id": "c7f07a7b3b3c408c96200dfd1d1a0f6f", "type": "object-store", "name": "swift"}, {"endpoints": [{"id": "06d4ed6c160a43f2b7fa7f80ad1dc709", "interface": "internal", "region_id": "prodstack6", "url": "https://designate-internal.ps6.canonical.com:9001", "region": "prodstack6"}, {"id": "1e240624a50c4ca0aaa6ef63cbc94f1b", "interface": "admin", "region_id": "prodstack6", "url": "https://designate-admin.ps6.canonical.com:9001", "region": "prodstack6"}, {"id": "f94d7d17997a43fd9c63b34c43301c6e", "interface": "public", "region_id": "prodstack6", "url": "https://designate.ps6.canonical.com:9001", "region": "prodstack6"}], "id": "cf82013d63844fedbe96bcacb6bd1fef", "type": "dns", "name": "designate"}, {"endpoints": [{"id": "4a688340be464710bfa60bf3f88f41c4", "interface": "admin", "region_id": "prodstack6", "url": "https://gnocchi-admin.ps6.canonical.com:8041", "region": "prodstack6"}, {"id": "a5a95506c96d4716adb4efc3ac9051be", "interface": "public", "region_id": "prodstack6", "url": "https://gnocchi.ps6.canonical.com:8041", "region": "prodstack6"}, {"id": "eebc17a086834f8fa8bb6b35c8061a8c", "interface": "internal", "region_id": "prodstack6", "url": "https://gnocchi-internal.ps6.canonical.com:8041", "region": "prodstack6"}], "id": "d10589e854a446a5b852593f33f170a7", "type": "metric", "name": "gnocchi"}, {"endpoints": [{"id": "08f66df28d0f47f3bec12f29e06d85ac", "interface": "admin", "region_id": "prodstack6", "url": "https://keystone-admin.ps6.canonical.com:35357/v3", "region": "prodstack6"}, {"id": "46d270b45ceb42db902f4d241afa6a70", "interface": "public", "region_id": "prodstack6", "url": "https://keystone.ps6.canonical.com:5000/v3", "region": "prodstack6"}, {"id": "a4addee11d9349cfa46ec6660dbad947", "interface": "internal", "region_id": "prodstack6", "url": "https://keystone-internal.ps6.canonical.com:5000/v3", "region": "prodstack6"}], "id": "deb38a775a9b4e87a8de9e3eed779882", "type": "identity", "name": "keystone"}, {"endpoints": [{"id": "18b4af5f40664babb94e884c6a53ccf3", "interface": "admin", "region_id": "prodstack6", "url": "https://octavia-admin.ps6.canonical.com:9876", "region": "prodstack6"}, {"id": "2b6f7ba7f9944ee1aebd6dccc5223b2d", "interface": "internal", "region_id": "prodstack6", "url": "https://octavia-internal.ps6.canonical.com:9876", "region": "prodstack6"}, {"id": "5e3012e9c79e4890be4d964b6208f5c6", "interface": "public", "region_id": "prodstack6", "url": "https://octavia.ps6.canonical.com:9876", "region": "prodstack6"}], "id": "e00337be20d54948b66a1c3109b885c6", "type": "load-balancer", "name": "octavia"}, {"endpoints": [{"id": "2d2942b35f3041389ad810f679d02f22", "interface": "public", "region_id": "prodstack6", "url": "https://placement.ps6.canonical.com:8778", "region": "prodstack6"}, {"id": "2e3beaac7ac14284b72e2592820ad725", "interface": "admin", "region_id": "prodstack6", "url": "https://placement-admin.ps6.canonical.com:8778", "region": "prodstack6"}, {"id": "91060f6df9ae444f81808adf40540d94", "interface": "internal", "region_id": "prodstack6", "url": "https://placement-internal.ps6.canonical.com:8778", "region": "prodstack6"}], "id": "edc6e37f154f4c0ab3dd4d52b82bf873", "type": "placement", "name": "placement"}]}} 466s REQ: curl -g -i -X GET https://nova.ps6.canonical.com:8774/v2.1 -H "Accept: application/json" -H "User-Agent: python-novaclient" -H "X-Auth-Token: {SHA256}452f3229765979e00b7c1b9b13f6373deeeb4917bdcf21fff2b6a84cfb8ad813" 466s DEBUG (session:517) REQ: curl -g -i -X GET https://nova.ps6.canonical.com:8774/v2.1 -H "Accept: application/json" -H "User-Agent: python-novaclient" -H "X-Auth-Token: {SHA256}452f3229765979e00b7c1b9b13f6373deeeb4917bdcf21fff2b6a84cfb8ad813" 466s DEBUG (connectionpool:962) Starting new HTTPS connection (1): nova.ps6.canonical.com:8774 466s DEBUG (connectionpool:429) https://nova.ps6.canonical.com:8774 "GET /v2.1 HTTP/1.1" 302 0 466s RESP: [302] Connection: Keep-Alive Content-Length: 0 Content-Type: text/plain; charset=utf8 Date: Wed, 13 Nov 2024 11:01:02 GMT Keep-Alive: timeout=75, max=1000 Location: https://nova.ps6.canonical.com:8774/v2.1/ Server: Apache/2.4.52 (Ubuntu) x-compute-request-id: req-857902df-2149-4e56-9492-d8fe331398fb x-openstack-request-id: req-857902df-2149-4e56-9492-d8fe331398fb 466s DEBUG (session:548) RESP: [302] Connection: Keep-Alive Content-Length: 0 Content-Type: text/plain; charset=utf8 Date: Wed, 13 Nov 2024 11:01:02 GMT Keep-Alive: timeout=75, max=1000 Location: https://nova.ps6.canonical.com:8774/v2.1/ Server: Apache/2.4.52 (Ubuntu) x-compute-request-id: req-857902df-2149-4e56-9492-d8fe331398fb x-openstack-request-id: req-857902df-2149-4e56-9492-d8fe331398fb 466s RESP BODY: Omitted, Content-Type is set to text/plain; charset=utf8. Only application/json responses have their bodies logged. 466s DEBUG (session:580) RESP BODY: Omitted, Content-Type is set to text/plain; charset=utf8. Only application/json responses have their bodies logged. 466s DEBUG (connectionpool:429) https://nova.ps6.canonical.com:8774 "GET /v2.1/ HTTP/1.1" 200 397 466s RESP: [200] Connection: Keep-Alive Content-Length: 397 Content-Type: application/json Date: Wed, 13 Nov 2024 11:01:02 GMT Keep-Alive: timeout=75, max=999 OpenStack-API-Version: compute 2.1 Server: Apache/2.4.52 (Ubuntu) Vary: OpenStack-API-Version,X-OpenStack-Nova-API-Version X-OpenStack-Nova-API-Version: 2.1 x-compute-request-id: req-fe4b841c-d7e2-44a8-be7b-718eb19a5e5c x-openstack-request-id: req-fe4b841c-d7e2-44a8-be7b-718eb19a5e5c 466s DEBUG (session:548) RESP: [200] Connection: Keep-Alive Content-Length: 397 Content-Type: application/json Date: Wed, 13 Nov 2024 11:01:02 GMT Keep-Alive: timeout=75, max=999 OpenStack-API-Version: compute 2.1 Server: Apache/2.4.52 (Ubuntu) Vary: OpenStack-API-Version,X-OpenStack-Nova-API-Version X-OpenStack-Nova-API-Version: 2.1 x-compute-request-id: req-fe4b841c-d7e2-44a8-be7b-718eb19a5e5c x-openstack-request-id: req-fe4b841c-d7e2-44a8-be7b-718eb19a5e5c 466s RESP BODY: {"version": {"id": "v2.1", "status": "CURRENT", "version": "2.90", "min_version": "2.1", "updated": "2013-07-23T11:33:21Z", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/"}, {"rel": "describedby", "type": "text/html", "href": "http://docs.openstack.org/"}], "media-types": [{"base": "application/json", "type": "application/vnd.openstack.compute+json;version=2.1"}]}} 466s DEBUG (session:580) RESP BODY: {"version": {"id": "v2.1", "status": "CURRENT", "version": "2.90", "min_version": "2.1", "updated": "2013-07-23T11:33:21Z", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/"}, {"rel": "describedby", "type": "text/html", "href": "http://docs.openstack.org/"}], "media-types": [{"base": "application/json", "type": "application/vnd.openstack.compute+json;version=2.1"}]}} 466s GET call to compute for https://nova.ps6.canonical.com:8774/v2.1/ used request id req-fe4b841c-d7e2-44a8-be7b-718eb19a5e5c 466s DEBUG (session:936) GET call to compute for https://nova.ps6.canonical.com:8774/v2.1/ used request id req-fe4b841c-d7e2-44a8-be7b-718eb19a5e5c 466s DEBUG (extension:189) found extension EntryPoint.parse('v1password = swiftclient.authv1:PasswordLoader') 466s DEBUG (extension:189) found extension EntryPoint.parse('noauth = cinderclient.contrib.noauth:CinderNoAuthLoader') 466s DEBUG (extension:189) found extension EntryPoint.parse('admin_token = keystoneauth1.loading._plugins.admin_token:AdminToken') 466s DEBUG (extension:189) found extension EntryPoint.parse('none = keystoneauth1.loading._plugins.noauth:NoAuth') 466s DEBUG (extension:189) found extension EntryPoint.parse('password = keystoneauth1.loading._plugins.identity.generic:Password') 466s DEBUG (extension:189) found extension EntryPoint.parse('token = keystoneauth1.loading._plugins.identity.generic:Token') 466s DEBUG (extension:189) found extension EntryPoint.parse('v2password = keystoneauth1.loading._plugins.identity.v2:Password') 466s DEBUG (extension:189) found extension EntryPoint.parse('v2token = keystoneauth1.loading._plugins.identity.v2:Token') 466s DEBUG (extension:189) found extension EntryPoint.parse('v3adfspassword = keystoneauth1.extras._saml2._loading:ADFSPassword') 466s DEBUG (extension:189) found extension EntryPoint.parse('v3applicationcredential = keystoneauth1.loading._plugins.identity.v3:ApplicationCredential') 466s DEBUG (extension:189) found extension EntryPoint.parse('v3fedkerb = keystoneauth1.extras.kerberos._loading:MappedKerberos') 466s DEBUG (extension:189) found extension EntryPoint.parse('v3kerberos = keystoneauth1.extras.kerberos._loading:Kerberos') 466s DEBUG (extension:189) found extension EntryPoint.parse('v3multifactor = keystoneauth1.loading._plugins.identity.v3:MultiFactor') 466s DEBUG (extension:189) found extension EntryPoint.parse('v3oauth1 = keystoneauth1.extras.oauth1._loading:V3OAuth1') 466s DEBUG (extension:189) found extension EntryPoint.parse('v3oidcaccesstoken = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectAccessToken') 466s DEBUG (extension:189) found extension EntryPoint.parse('v3oidcauthcode = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectAuthorizationCode') 466s DEBUG (extension:189) found extension EntryPoint.parse('v3oidcclientcredentials = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectClientCredentials') 466s DEBUG (extension:189) found extension EntryPoint.parse('v3oidcpassword = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectPassword') 466s DEBUG (extension:189) found extension EntryPoint.parse('v3password = keystoneauth1.loading._plugins.identity.v3:Password') 466s DEBUG (extension:189) found extension EntryPoint.parse('v3samlpassword = keystoneauth1.extras._saml2._loading:Saml2Password') 466s DEBUG (extension:189) found extension EntryPoint.parse('v3token = keystoneauth1.loading._plugins.identity.v3:Token') 466s DEBUG (extension:189) found extension EntryPoint.parse('v3tokenlessauth = keystoneauth1.loading._plugins.identity.v3:TokenlessAuth') 466s DEBUG (extension:189) found extension EntryPoint.parse('v3totp = keystoneauth1.loading._plugins.identity.v3:TOTP') 466s DEBUG (session:517) REQ: curl -g -i -X GET https://glance.ps6.canonical.com:9292/v2/images/0c5715b6-5cca-4485-b8bf-b85dfd917a5f -H "Accept: application/json" -H "OpenStack-API-Version: compute 2.87" -H "User-Agent: python-novaclient" -H "X-Auth-Token: {SHA256}452f3229765979e00b7c1b9b13f6373deeeb4917bdcf21fff2b6a84cfb8ad813" -H "X-OpenStack-Nova-API-Version: 2.87" 466s DEBUG (connectionpool:962) Starting new HTTPS connection (1): glance.ps6.canonical.com:9292 466s DEBUG (connectionpool:429) https://glance.ps6.canonical.com:9292 "GET /v2/images/0c5715b6-5cca-4485-b8bf-b85dfd917a5f HTTP/1.1" 200 2292 466s DEBUG (session:548) RESP: [200] Connection: Keep-Alive Content-Length: 2292 Content-Type: application/json Date: Wed, 13 Nov 2024 11:01:03 GMT Keep-Alive: timeout=75, max=1000 Server: Apache/2.4.52 (Ubuntu) X-Openstack-Request-Id: req-75a5194d-4fa4-4eac-b70c-be66f5d160b5 466s DEBUG (session:580) RESP BODY: {"architecture": "ppc64le", "base_image_ref": "302dbebd-8fb5-46eb-aa5c-84ec11ab5c95", "boot_roles": "member,load-balancer_member,reader", "content_id": "auto.sync", "hw_cdrom_bus": "scsi", "hw_disk_bus": "virtio", "hw_machine_type": "pseries", "hw_video_model": "vga", "hw_vif_model": "virtio", "image_location": "snapshot", "image_state": "available", "image_type": "snapshot", "instance_uuid": "7e7a00e2-6c3a-40a2-8c07-f4d0c8706cf5", "item_name": "disk1.img", "os_distro": "ubuntu", "os_version": "24.10", "owner_id": "623df63b80274c21bc79a0c35e68d615", "owner_project_name": "prod-proposed-migration-ppc64el_project", "owner_user_name": "prod-proposed-migration-ppc64el", "product_name": "com.ubuntu.cloud.daily:server:24.10:ppc64el", "simplestreams_metadata": "{\"aliases\": \"24.10,o,oracular,devel\", \"arch\": \"ppc64el\", \"ftype\": \"disk1.img\", \"label\": \"daily\", \"md5\": \"fd88d9a689ac4d7ab4bea632de90d355\", \"os\": \"ubuntu\", \"pubname\": \"ubuntu-oracular-daily-ppc64el-server-20241009\", \"release\": \"oracular\", \"release_codenam", "source_content_id": "com.ubuntu.cloud:daily:download", "user_id": "c871debdeffd4cb8b69ce618fc4aa361", "version_name": "20241009", "name": "adt/ubuntu-plucky-ppc64el-server-20241113.img", "disk_format": "qcow2", "container_format": "bare", "visibility": "private", "size": 2751922176, "virtual_size": 21474836480, "status": "active", "checksum": "bcac3e03f6534f9b5e31609d24f6bd76", "protected": false, "min_ram": 0, "min_disk": 20, "owner": "623df63b80274c21bc79a0c35e68d615", "os_hidden": false, "os_hash_algo": "sha512", "os_hash_value": "76d837bfc30f1a0e4248983886948fe32ab2b5f05c4e0da0415911ea492f5a1ed3b2d0148f37fb0c16f1695e70f2423024b8d7edfb4e3e23e1edb91c8fd65daf", "id": "0c5715b6-5cca-4485-b8bf-b85dfd917a5f", "created_at": "2024-11-13T04:34:00Z", "updated_at": "2024-11-13T04:35:23Z", "locations": [{"url": "rbd://eea9d068-c18c-11ed-8dc0-013aacb71b80/glance/0c5715b6-5cca-4485-b8bf-b85dfd917a5f/snap", "metadata": {"store": "ceph"}}], "direct_url": "rbd://eea9d068-c18c-11ed-8dc0-013aacb71b80/glance/0c5715b6-5cca-4485-b8bf-b85dfd917a5f/snap", "tags": [], "self": "/v2/images/0c5715b6-5cca-4485-b8bf-b85dfd917a5f", "file": "/v2/images/0c5715b6-5cca-4485-b8bf-b85dfd917a5f/file", "schema": "/v2/schemas/image", "stores": "ceph"} 466s DEBUG (session:936) GET call to image for https://glance.ps6.canonical.com:9292/v2/images/0c5715b6-5cca-4485-b8bf-b85dfd917a5f used request id req-75a5194d-4fa4-4eac-b70c-be66f5d160b5 466s DEBUG (session:517) REQ: curl -g -i -X GET https://nova.ps6.canonical.com:8774/v2.1/flavors/autopkgtest-ppc64el -H "Accept: application/json" -H "OpenStack-API-Version: compute 2.87" -H "User-Agent: python-novaclient" -H "X-Auth-Token: {SHA256}452f3229765979e00b7c1b9b13f6373deeeb4917bdcf21fff2b6a84cfb8ad813" -H "X-OpenStack-Nova-API-Version: 2.87" 466s DEBUG (connectionpool:429) https://nova.ps6.canonical.com:8774 "GET /v2.1/flavors/autopkgtest-ppc64el HTTP/1.1" 404 92 466s DEBUG (session:548) RESP: [404] Connection: Keep-Alive Content-Length: 92 Content-Type: application/json; charset=UTF-8 Date: Wed, 13 Nov 2024 11:01:03 GMT Keep-Alive: timeout=75, max=998 OpenStack-API-Version: compute 2.87 Server: Apache/2.4.52 (Ubuntu) Vary: OpenStack-API-Version,X-OpenStack-Nova-API-Version X-OpenStack-Nova-API-Version: 2.87 x-compute-request-id: req-edc45a84-5d7f-4ffc-8d60-bf722533d22f x-openstack-request-id: req-edc45a84-5d7f-4ffc-8d60-bf722533d22f 466s DEBUG (session:580) RESP BODY: {"itemNotFound": {"code": 404, "message": "Flavor autopkgtest-ppc64el could not be found."}} 466s DEBUG (session:936) GET call to compute for https://nova.ps6.canonical.com:8774/v2.1/flavors/autopkgtest-ppc64el used request id req-edc45a84-5d7f-4ffc-8d60-bf722533d22f 466s DEBUG (session:517) REQ: curl -g -i -X GET https://nova.ps6.canonical.com:8774/v2.1/flavors?is_public=None -H "Accept: application/json" -H "OpenStack-API-Version: compute 2.87" -H "User-Agent: python-novaclient" -H "X-Auth-Token: {SHA256}452f3229765979e00b7c1b9b13f6373deeeb4917bdcf21fff2b6a84cfb8ad813" -H "X-OpenStack-Nova-API-Version: 2.87" 466s DEBUG (connectionpool:429) https://nova.ps6.canonical.com:8774 "GET /v2.1/flavors?is_public=None HTTP/1.1" 200 40172 466s DEBUG (session:548) RESP: [200] Connection: Keep-Alive Content-Length: 40172 Content-Type: application/json Date: Wed, 13 Nov 2024 11:01:03 GMT Keep-Alive: timeout=75, max=997 OpenStack-API-Version: compute 2.87 Server: Apache/2.4.52 (Ubuntu) Vary: OpenStack-API-Version,X-OpenStack-Nova-API-Version X-OpenStack-Nova-API-Version: 2.87 x-compute-request-id: req-e80f116e-03a2-4537-b35b-523bffca23ce x-openstack-request-id: req-e80f116e-03a2-4537-b35b-523bffca23ce 466s DEBUG (session:580) RESP BODY: {"flavors": [{"id": "05338e57-e2ba-4813-9a8a-2f2af73f8ab2", "name": "builder-ppc64el-cpu2-ram4-disk100", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/05338e57-e2ba-4813-9a8a-2f2af73f8ab2"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/05338e57-e2ba-4813-9a8a-2f2af73f8ab2"}], "description": null}, {"id": "08090b4b-98a9-4c15-8ad4-cc6711700879", "name": "builder-ppc64el-cpu8-ram64-disk20", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/08090b4b-98a9-4c15-8ad4-cc6711700879"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/08090b4b-98a9-4c15-8ad4-cc6711700879"}], "description": null}, {"id": "0825b8b1-2b9c-42bf-b3e6-e827c22d8df5", "name": "builder-ppc64el-cpu8-ram4-disk100", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/0825b8b1-2b9c-42bf-b3e6-e827c22d8df5"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/0825b8b1-2b9c-42bf-b3e6-e827c22d8df5"}], "description": null}, {"id": "0b06db45-151e-44b2-b0f5-f069ad7fa1cb", "name": "builder-ppc64el-cpu2-ram12-disk20", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/0b06db45-151e-44b2-b0f5-f069ad7fa1cb"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/0b06db45-151e-44b2-b0f5-f069ad7fa1cb"}], "description": null}, {"id": "0dbf127e-3101-4f05-9d37-15ad6d2a45c1", "name": "builder-ppc64el-cpu2-ram16-disk20", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/0dbf127e-3101-4f05-9d37-15ad6d2a45c1"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/0dbf127e-3101-4f05-9d37-15ad6d2a45c1"}], "description": null}, {"id": "102d0b57-e8d2-46c6-9be4-f452119a0280", "name": "autopkgtest-ppc64el", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/102d0b57-e8d2-46c6-9be4-f452119a0280"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/102d0b57-e8d2-46c6-9be4-f452119a0280"}], "description": null}, {"id": "1219f5f0-83f3-4d33-a3bb-1a85c6303159", "name": "builder-ppc64el-cpu128-ram64-disk50", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/1219f5f0-83f3-4d33-a3bb-1a85c6303159"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/1219f5f0-83f3-4d33-a3bb-1a85c6303159"}], "description": null}, {"id": "1359c5a4-ee60-4855-9bcc-defd3bff7121", "name": "builder-ppc64el-cpu8-ram8-disk50", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/1359c5a4-ee60-4855-9bcc-defd3bff7121"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/1359c5a4-ee60-4855-9bcc-defd3bff7121"}], "description": null}, {"id": "161f21bc-11f7-4ec9-a322-04fc3e0d2a68", "name": "builder-ppc64el-cpu2-ram55-disk20", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/161f21bc-11f7-4ec9-a322-04fc3e0d2a68"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/161f21bc-11f7-4ec9-a322-04fc3e0d2a68"}], "description": null}, {"id": "166070cd-7110-473e-a6a2-5e25aa9eeefd", "name": "builder-ppc64el-cpu4-ram64-disk100", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/166070cd-7110-473e-a6a2-5e25aa9eeefd"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/166070cd-7110-473e-a6a2-5e25aa9eeefd"}], "description": null}, {"id": "16a0a259-4627-4fbd-bb9d-a3e69346467c", "name": "builder-ppc64el-cpu8-ram64-disk50", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/16a0a259-4627-4fbd-bb9d-a3e69346467c"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/16a0a259-4627-4fbd-bb9d-a3e69346467c"}], "description": null}, {"id": "1c59e50a-1a67-4691-8f2c-6954cb0f83ba", "name": "builder-ppc64el-cpu4-ram128-disk20", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/1c59e50a-1a67-4691-8f2c-6954cb0f83ba"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/1c59e50a-1a67-4691-8f2c-6954cb0f83ba"}], "description": null}, {"id": "1c94efa8-905a-4bff-8485-0aaf9ac47fe7", "name": "builder-ppc64el-cpu4-ram16-disk50", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/1c94efa8-905a-4bff-8485-0aaf9ac47fe7"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/1c94efa8-905a-4bff-8485-0aaf9ac47fe7"}], "description": null}, {"id": "213c954d-26ed-4c86-9592-66384bc22c82", "name": "builder-ppc64el-cpu4-ram16-disk100", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/213c954d-26ed-4c86-9592-66384bc22c82"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/213c954d-26ed-4c86-9592-66384bc22c82"}], "description": null}, {"id": "219e90b4-8850-4fa4-b028-4cf7657c3264", "name": "builder-ppc64el-cpu16-ram64-disk100", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/219e90b4-8850-4fa4-b028-4cf7657c3264"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/219e90b4-8850-4fa4-b028-4cf7657c3264"}], "description": null}, {"id": "21de1f2a-7ad2-4da5-b6af-de683afb51c9", "name": "builder-ppc64el-cpu48-ram64-disk100", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/21de1f2a-7ad2-4da5-b6af-de683afb51c9"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/21de1f2a-7ad2-4da5-b6af-de683afb51c9"}], "description": null}, {"id": "2363173d-a2e1-4383-945f-d69f583a729a", "name": "builder-ppc64el-cpu128-ram128-disk50", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/2363173d-a2e1-4383-945f-d69f583a729a"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/2363173d-a2e1-4383-945f-d69f583a729a"}], "description": null}, {"id": "23b7a6d6-425f-4669-961d-be7fed7725d3", "name": "builder-ppc64el-cpu2-ram12-disk50", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/23b7a6d6-425f-4669-961d-be7fed7725d3"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/23b7a6d6-425f-4669-961d-be7fed7725d3"}], "description": null}, {"id": "2464732a-3147-40fb-b375-2d275070a1f3", "name": "builder-ppc64el-cpu2-ram64-disk50", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/2464732a-3147-40fb-b375-2d275070a1f3"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/2464732a-3147-40fb-b375-2d275070a1f3"}], "description": null}, {"id": "250ba167-175c-4548-be23-47a517fa3701", "name": "builder-ppc64el-cpu16-ram72-disk80", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/250ba167-175c-4548-be23-47a517fa3701"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/250ba167-175c-4548-be23-47a517fa3701"}], "description": null}, {"id": "27ffca72-b7d0-4d4b-96c6-de69e0f767bd", "name": "builder-ppc64el-cpu2-ram8-disk1500", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/27ffca72-b7d0-4d4b-96c6-de69e0f767bd"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/27ffca72-b7d0-4d4b-96c6-de69e0f767bd"}], "description": null}, {"id": "2b2e94dd-a11d-4eae-93df-c8cce920b95e", "name": "builder-ppc64el-cpu2-ram32-disk20", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/2b2e94dd-a11d-4eae-93df-c8cce920b95e"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/2b2e94dd-a11d-4eae-93df-c8cce920b95e"}], "description": null}, {"id": "2d842f6f-be4f-4b39-bc9e-a8dbf3233bc1", "name": "builder-ppc64el-cpu2-ram4-disk50", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/2d842f6f-be4f-4b39-bc9e-a8dbf3233bc1"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/2d842f6f-be4f-4b39-bc9e-a8dbf3233bc1"}], "description": null}, {"id": "2f626a91-24b0-44ba-afa5-2cab984ae81f", "name": "builder-ppc64el-cpu128-ram32-disk100", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/2f626a91-24b0-44ba-afa5-2cab984ae81f"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/2f626a91-24b0-44ba-afa5-2cab984ae81f"}], "description": null}, {"id": "3325f74a-e433-4072-8c2c-b50052e31602", "name": "builder-ppc64el-cpu2-ram8-disk20", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/3325f74a-e433-4072-8c2c-b50052e31602"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/3325f74a-e433-4072-8c2c-b50052e31602"}], "description": null}, {"id": "34df8936-a2ae-450a-9fea-2cdaebae5803", "name": "builder-ppc64el-cpu8-ram16-disk50", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/34df8936-a2ae-450a-9fea-2cdaebae5803"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/34df8936-a2ae-450a-9fea-2cdaebae5803"}], "description": null}, {"id": "378080cb-1d08-401a-b556-0f903a79ae2c", "name": "builder-ppc64el-cpu8-ram12-disk50", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/378080cb-1d08-401a-b556-0f903a79ae2c"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/378080cb-1d08-401a-b556-0f903a79ae2c"}], "description": null}, {"id": "37ed4cfe-a588-40c4-8494-098403c1f0f3", "name": "builder-ppc64el-cpu4-ram12-disk50", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/37ed4cfe-a588-40c4-8494-098403c1f0f3"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/37ed4cfe-a588-40c4-8494-098403c1f0f3"}], "description": null}, {"id": "3aa7a161-3310-40b9-8e89-195294d45b10", "name": "builder-ppc64el-cpu48-ram128-disk100", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/3aa7a161-3310-40b9-8e89-195294d45b10"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/3aa7a161-3310-40b9-8e89-195294d45b10"}], "description": null}, {"id": "3c30219d-30a4-4fb4-bf2e-da5602313583", "name": "builder-ppc64el-cpu2-ram32-disk100", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/3c30219d-30a4-4fb4-bf2e-da5602313583"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/3c30219d-30a4-4fb4-bf2e-da5602313583"}], "description": null}, {"id": "3f533bb3-541c-4868-8883-69a5f1be7c80", "name": "builder-ppc64el-cpu16-ram16-disk20", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/3f533bb3-541c-4868-8883-69a5f1be7c80"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/3f533bb3-541c-4868-8883-69a5f1be7c80"}], "description": null}, {"id": "40ca84e0-d087-4f4b-bba2-e1823c6d3b85", "name": "builder-ppc64el-cpu8-ram8-disk100", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/40ca84e0-d087-4f4b-bba2-e1823c6d3b85"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/40ca84e0-d087-4f4b-bba2-e1823c6d3b85"}], "description": null}, {"id": "47276443-70e8-487f-9aaa-ef1a05b07c3c", "name": "builder-ppc64el-cpu4-ram105-disk20", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/47276443-70e8-487f-9aaa-ef1a05b07c3c"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/47276443-70e8-487f-9aaa-ef1a05b07c3c"}], "description": null}, {"id": "4d315fef-8774-4e68-916d-a6f08c302c0c", "name": "builder-ppc64el-cpu16-ram32-disk100", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/4d315fef-8774-4e68-916d-a6f08c302c0c"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/4d315fef-8774-4e68-916d-a6f08c302c0c"}], "description": null}, {"id": "4ea8e0b3-bd6c-4df2-a3bd-2b7dea6aea13", "name": "builder-ppc64el-cpu4-ram8-disk100", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/4ea8e0b3-bd6c-4df2-a3bd-2b7dea6aea13"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/4ea8e0b3-bd6c-4df2-a3bd-2b7dea6aea13"}], "description": null}, {"id": "503bfc0d-e770-441c-90b7-7049e4bdbe7e", "name": "builder-ppc64el-cpu8-ram120-disk28", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/503bfc0d-e770-441c-90b7-7049e4bdbe7e"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/503bfc0d-e770-441c-90b7-7049e4bdbe7e"}], "description": null}, {"id": "510412bb-aeb3-43d8-a0f0-cdb0cf97a5f2", "name": "builder-ppc64el-cpu4-ram4-disk50", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/510412bb-aeb3-43d8-a0f0-cdb0cf97a5f2"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/510412bb-aeb3-43d8-a0f0-cdb0cf97a5f2"}], "description": null}, {"id": "53b9821c-da67-415d-990c-2f023ff61d1e", "name": "builder-ppc64el-cpu8-ram32-disk100", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/53b9821c-da67-415d-990c-2f023ff61d1e"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/53b9821c-da67-415d-990c-2f023ff61d1e"}], "description": null}, {"id": "556a816f-2280-4167-bba4-0319a6d3aba9", "name": "builder-ppc64el-cpu8-ram4-disk50", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/556a816f-2280-4167-bba4-0319a6d3aba9"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/556a816f-2280-4167-bba4-0319a6d3aba9"}], "description": null}, {"id": "560c2269-9192-4b41-8787-506b25ef7067", "name": "builder-ppc64el-cpu8-ram8-disk20", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/560c2269-9192-4b41-8787-506b25ef7067"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/560c2269-9192-4b41-8787-506b25ef7067"}], "description": null}, {"id": "57403612-9552-4ada-8e55-b40624c3d8f4", "name": "builder-ppc64el-cpu8-ram16-disk500", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/57403612-9552-4ada-8e55-b40624c3d8f4"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/57403612-9552-4ada-8e55-b40624c3d8f4"}], "description": null}, {"id": "59bee3ae-a610-4f1a-b13f-a5f3400d2412", "name": "builder-ppc64el-cpu16-ram16-disk50", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/59bee3ae-a610-4f1a-b13f-a5f3400d2412"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/59bee3ae-a610-4f1a-b13f-a5f3400d2412"}], "description": null}, {"id": "5bf0bfb6-311e-4895-a22e-228b091cde43", "name": "builder-ppc64el-cpu24-ram64-disk100", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/5bf0bfb6-311e-4895-a22e-228b091cde43"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/5bf0bfb6-311e-4895-a22e-228b091cde43"}], "description": null}, {"id": "5d1a2077-5359-4a36-922a-351690cae9cc", "name": "builder-ppc64el-cpu4-ram8-disk50", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/5d1a2077-5359-4a36-922a-351690cae9cc"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/5d1a2077-5359-4a36-922a-351690cae9cc"}], "description": null}, {"id": "60cc1be7-1fa9-49e9-8702-419f39585f4b", "name": "builder-ppc64el-cpu8-ram16-disk200", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/60cc1be7-1fa9-49e9-8702-419f39585f4b"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/60cc1be7-1fa9-49e9-8702-419f39585f4b"}], "description": null}, {"id": "62f8dfc9-c388-44d0-962f-79bb9917cd11", "name": "builder-ppc64el-cpu2-ram44-disk20", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/62f8dfc9-c388-44d0-962f-79bb9917cd11"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/62f8dfc9-c388-44d0-962f-79bb9917cd11"}], "description": null}, {"id": "6679449d-f912-473e-82a2-42546b3087e2", "name": "builder-ppc64el-cpu24-ram128-disk100", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/6679449d-f912-473e-82a2-42546b3087e2"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/6679449d-f912-473e-82a2-42546b3087e2"}], "description": null}, {"id": "694472bd-b1d9-4708-a626-5e5b3dc7e09a", "name": "builder-ppc64el-cpu4-ram8-disk20", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/694472bd-b1d9-4708-a626-5e5b3dc7e09a"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/694472bd-b1d9-4708-a626-5e5b3dc7e09a"}], "description": null}, {"id": "696dde5e-582a-44cf-a030-ef883bc20144", "name": "builder-ppc64el-cpu8-ram16-disk100", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/696dde5e-582a-44cf-a030-ef883bc20144"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/696dde5e-582a-44cf-a030-ef883bc20144"}], "description": null}, {"id": "6e611cfc-91b1-4ade-877b-32b26ee297eb", "name": "builder-ppc64el-cpu2-ram16-disk100", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/6e611cfc-91b1-4ade-877b-32b26ee297eb"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/6e611cfc-91b1-4ade-877b-32b26ee297eb"}], "description": null}, {"id": "6e66fb56-0aa8-47f9-a877-e48efe207344", "name": "builder-ppc64el-cpu8-ram32-disk20", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/6e66fb56-0aa8-47f9-a877-e48efe207344"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/6e66fb56-0aa8-47f9-a877-e48efe207344"}], "description": null}, {"id": "70ba6763-188c-45d0-bb63-7e7930afb1aa", "name": "builder-ppc64el-cpu32-ram256-disk50", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/70ba6763-188c-45d0-bb63-7e7930afb1aa"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/70ba6763-188c-45d0-bb63-7e7930afb1aa"}], "description": null}, {"id": "73ce7235-e8b9-4370-aeba-3a33729c46b3", "name": "builder-ppc64el-cpu4-ram16-disk20", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/73ce7235-e8b9-4370-aeba-3a33729c46b3"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/73ce7235-e8b9-4370-aeba-3a33729c46b3"}], "description": null}, {"id": "74ef175b-e74b-4750-a5c3-abcefba98501", "name": "builder-ppc64el-cpu8-ram12-disk100", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/74ef175b-e74b-4750-a5c3-abcefba98501"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/74ef175b-e74b-4750-a5c3-abcefba98501"}], "description": null}, {"id": "79aee276-b044-40e3-bf50-9ba4009d1400", "name": "builder-ppc64el-cpu8-ram32-disk50", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/79aee276-b044-40e3-bf50-9ba4009d1400"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/79aee276-b044-40e3-bf50-9ba4009d1400"}], "description": null}, {"id": "79e5d123-cfc1-4b78-a85b-b607091140eb", "name": "builder-ppc64el-cpu64-ram128-disk100", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/79e5d123-cfc1-4b78-a85b-b607091140eb"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/79e5d123-cfc1-4b78-a85b-b607091140eb"}], "description": null}, {"id": "7c20dd8b-310a-4013-ac86-21fdfb5ff536", "name": "builder-ppc64el-cpu8-ram128-disk20", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/7c20dd8b-310a-4013-ac86-21fdfb5ff536"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/7c20dd8b-310a-4013-ac86-21fdfb5ff536"}], "description": null}, {"id": "82e7fa99-f07c-46de-8f52-b92ad80a561a", "name": "builder-ppc64el-cpu2-ram16-disk68", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/82e7fa99-f07c-46de-8f52-b92ad80a561a"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/82e7fa99-f07c-46de-8f52-b92ad80a561a"}], "description": null}, {"id": "85159e74-03c6-4178-bb31-e756efd11acb", "name": "builder-ppc64el-cpu16-ram8-disk50", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/85159e74-03c6-4178-bb31-e756efd11acb"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/85159e74-03c6-4178-bb31-e756efd11acb"}], "description": null}, {"id": "85f8b76d-5d7f-4f2a-998c-cd1d11c834ac", "name": "builder-ppc64el-cpu4-ram64-disk20", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/85f8b76d-5d7f-4f2a-998c-cd1d11c834ac"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/85f8b76d-5d7f-4f2a-998c-cd1d11c834ac"}], "description": null}, {"id": "861fa361-94af-45b2-9de2-5cbe0df87b1f", "name": "builder-ppc64el-cpu4-ram12-disk20", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/861fa361-94af-45b2-9de2-5cbe0df87b1f"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/861fa361-94af-45b2-9de2-5cbe0df87b1f"}], "description": null}, {"id": "88f7a27b-bd61-4d5e-a90f-391ef9d78fc4", "name": "builder-ppc64el-cpu4-ram105-disk28", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/88f7a27b-bd61-4d5e-a90f-391ef9d78fc4"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/88f7a27b-bd61-4d5e-a90f-391ef9d78fc4"}], "description": null}, {"id": "89afc706-8e2c-4ccd-b411-2d387d894209", "name": "builder-ppc64el-cpu2-ram16-disk50", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/89afc706-8e2c-4ccd-b411-2d387d894209"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/89afc706-8e2c-4ccd-b411-2d387d894209"}], "description": null}, {"id": "905418ec-52e8-4ae7-adf1-ccef895e14c2", "name": "builder-ppc64el-cpu4-ram64-disk50", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/905418ec-52e8-4ae7-adf1-ccef895e14c2"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/905418ec-52e8-4ae7-adf1-ccef895e14c2"}], "description": null}, {"id": "95b1a0b4-1ecc-4ceb-a8d6-2d3bdefbce79", "name": "builder-ppc64el-cpu2-ram8-disk100", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/95b1a0b4-1ecc-4ceb-a8d6-2d3bdefbce79"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/95b1a0b4-1ecc-4ceb-a8d6-2d3bdefbce79"}], "description": null}, {"id": "97704ac8-c97f-4f00-8e0d-85aa4e940154", "name": "builder-ppc64el-cpu2-ram12-disk100", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/97704ac8-c97f-4f00-8e0d-85aa4e940154"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/97704ac8-c97f-4f00-8e0d-85aa4e940154"}], "description": null}, {"id": "9a51418a-b43e-417c-9d1d-5c706d3ca620", "name": "builder-ppc64el-cpu8-ram40-disk68", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/9a51418a-b43e-417c-9d1d-5c706d3ca620"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/9a51418a-b43e-417c-9d1d-5c706d3ca620"}], "description": null}, {"id": "9af1f804-8d3b-4769-b317-63a8ee73942b", "name": "builder-ppc64el-cpu4-ram8-disk200", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/9af1f804-8d3b-4769-b317-63a8ee73942b"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/9af1f804-8d3b-4769-b317-63a8ee73942b"}], "description": null}, {"id": "9b15a7c7-c4c2-4841-b95e-928a217f2995", "name": "builder-ppc64el-cpu128-ram128-disk100", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/9b15a7c7-c4c2-4841-b95e-928a217f2995"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/9b15a7c7-c4c2-4841-b95e-928a217f2995"}], "description": null}, {"id": "9bec8a82-6767-45bd-826f-abd939beb5e3", "name": "builder-ppc64el-cpu4-ram12-disk100", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/9bec8a82-6767-45bd-826f-abd939beb5e3"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/9bec8a82-6767-45bd-826f-abd939beb5e3"}], "description": null}, {"id": "9e195c66-66cf-4314-bf0c-7b24de55e52f", "name": "builder-ppc64el-cpu8-ram64-disk100", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/9e195c66-66cf-4314-bf0c-7b24de55e52f"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/9e195c66-66cf-4314-bf0c-7b24de55e52f"}], "description": null}, {"id": "a37e29b1-11ac-4bd5-a015-a9ee46ed25b8", "name": "builder-ppc64el-cpu32-ram128-disk50", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/a37e29b1-11ac-4bd5-a015-a9ee46ed25b8"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/a37e29b1-11ac-4bd5-a015-a9ee46ed25b8"}], "description": null}, {"id": "a8157747-dcd3-4c19-98b7-df687076ae87", "name": "builder-ppc64el-cpu4-ram4-disk20", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/a8157747-dcd3-4c19-98b7-df687076ae87"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/a8157747-dcd3-4c19-98b7-df687076ae87"}], "description": null}, {"id": "a8d935bc-6ad6-4942-abdd-670d6421a03b", "name": "builder-ppc64el-cpu128-ram32-disk50", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/a8d935bc-6ad6-4942-abdd-670d6421a03b"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/a8d935bc-6ad6-4942-abdd-670d6421a03b"}], "description": null}, {"id": "ac354706-0335-4e10-a755-51a75b1a962c", "name": "builder-ppc64el-cpu4-ram8-disk120", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/ac354706-0335-4e10-a755-51a75b1a962c"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/ac354706-0335-4e10-a755-51a75b1a962c"}], "description": null}, {"id": "acb43878-9eee-4d8a-8ec0-610607dd1a28", "name": "builder-ppc64el-cpu128-ram64-disk100", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/acb43878-9eee-4d8a-8ec0-610607dd1a28"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/acb43878-9eee-4d8a-8ec0-610607dd1a28"}], "description": null}, {"id": "ad9b6a30-fa9a-400e-b49b-51f9a3c2eda9", "name": "builder-ppc64el-cpu4-ram72-disk28", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/ad9b6a30-fa9a-400e-b49b-51f9a3c2eda9"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/ad9b6a30-fa9a-400e-b49b-51f9a3c2eda9"}], "description": null}, {"id": "b1004655-b40b-44b4-be0b-7cf1763734a1", "name": "builder-ppc64el-cpu32-ram128-disk100", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/b1004655-b40b-44b4-be0b-7cf1763734a1"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/b1004655-b40b-44b4-be0b-7cf1763734a1"}], "description": null}, {"id": "b39a607b-bb86-4b68-a455-9dfcb714130f", "name": "builder-ppc64el-cpu4-ram72-disk20", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/b39a607b-bb86-4b68-a455-9dfcb714130f"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/b39a607b-bb86-4b68-a455-9dfcb714130f"}], "description": null}, {"id": "b5673781-1772-4bbf-8526-4d19486c6ac3", "name": "builder-ppc64el-cpu2-ram8-disk28", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/b5673781-1772-4bbf-8526-4d19486c6ac3"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/b5673781-1772-4bbf-8526-4d19486c6ac3"}], "description": null}, {"id": "b7538b06-d418-44a1-8ec5-30cc698ac005", "name": "builder-ppc64el-cpu16-ram32-disk50", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/b7538b06-d418-44a1-8ec5-30cc698ac005"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/b7538b06-d418-44a1-8ec5-30cc698ac005"}], "description": null}, {"id": "bc3d73f7-47c5-4533-9915-5da668c18032", "name": "builder-ppc64el-cpu4-ram4-disk100", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/bc3d73f7-47c5-4533-9915-5da668c18032"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/bc3d73f7-47c5-4533-9915-5da668c18032"}], "description": null}, {"id": "be11f608-8f5e-4e93-8b39-2e062fc23eb1", "name": "builder-ppc64el-cpu16-ram64-disk50", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/be11f608-8f5e-4e93-8b39-2e062fc23eb1"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/be11f608-8f5e-4e93-8b39-2e062fc23eb1"}], "description": null}, {"id": "c7e29ea5-b92f-4011-bc7c-1a81af4e8e98", "name": "builder-ppc64el-cpu8-ram16-disk1000", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/c7e29ea5-b92f-4011-bc7c-1a81af4e8e98"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/c7e29ea5-b92f-4011-bc7c-1a81af4e8e98"}], "description": null}, {"id": "ccda5e60-c156-4367-aeaf-25d9cd9fc4d8", "name": "builder-ppc64el-cpu4-ram24-disk68", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/ccda5e60-c156-4367-aeaf-25d9cd9fc4d8"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/ccda5e60-c156-4367-aeaf-25d9cd9fc4d8"}], "description": null}, {"id": "cdc72dd8-3a8d-4f6f-997b-60017a100228", "name": "builder-ppc64el-cpu4-ram40-disk188", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/cdc72dd8-3a8d-4f6f-997b-60017a100228"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/cdc72dd8-3a8d-4f6f-997b-60017a100228"}], "description": null}, {"id": "cedd22e7-22ba-425e-8ace-5a3607e63239", "name": "builder-ppc64el-cpu16-ram4-disk50", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/cedd22e7-22ba-425e-8ace-5a3607e63239"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/cedd22e7-22ba-425e-8ace-5a3607e63239"}], "description": null}, {"id": "cffc3023-932a-439e-8bb7-faf8f6d6c42a", "name": "builder-ppc64el-cpu16-ram128-disk100", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/cffc3023-932a-439e-8bb7-faf8f6d6c42a"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/cffc3023-932a-439e-8bb7-faf8f6d6c42a"}], "description": null}, {"id": "d0030e34-8145-4944-a92d-ba1e454c6126", "name": "builder-ppc64el-cpu64-ram256-disk50", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/d0030e34-8145-4944-a92d-ba1e454c6126"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/d0030e34-8145-4944-a92d-ba1e454c6126"}], "description": null}, {"id": "d24cccba-50db-4ebf-8e12-4f601202a489", "name": "builder-ppc64el-cpu2-ram4-disk20", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/d24cccba-50db-4ebf-8e12-4f601202a489"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/d24cccba-50db-4ebf-8e12-4f601202a489"}], "description": null}, {"id": "d3801d0d-ae1d-474a-be3f-c3b4e0d75ce6", "name": "builder-ppc64el-cpu4-ram32-disk50", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/d3801d0d-ae1d-474a-be3f-c3b4e0d75ce6"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/d3801d0d-ae1d-474a-be3f-c3b4e0d75ce6"}], "description": null}, {"id": "d4a9ba53-090a-4189-a822-48d3e2d80aa2", "name": "builder-ppc64el-cpu2-ram32-disk50", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/d4a9ba53-090a-4189-a822-48d3e2d80aa2"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/d4a9ba53-090a-4189-a822-48d3e2d80aa2"}], "description": null}, {"id": "d5142b95-4b59-484a-8d9d-e0519b9fdbba", "name": "builder-ppc64el-cpu4-ram32-disk100", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/d5142b95-4b59-484a-8d9d-e0519b9fdbba"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/d5142b95-4b59-484a-8d9d-e0519b9fdbba"}], "description": null}, {"id": "d67d41f2-0658-4e81-ac4f-abc5e19944a7", "name": "builder-ppc64el-cpu2-ram64-disk20", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/d67d41f2-0658-4e81-ac4f-abc5e19944a7"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/d67d41f2-0658-4e81-ac4f-abc5e19944a7"}], "description": null}, {"id": "d7441372-a91d-47c8-89a4-c08f59ece241", "name": "builder-ppc64el-cpu16-ram32-disk20", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/d7441372-a91d-47c8-89a4-c08f59ece241"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/d7441372-a91d-47c8-89a4-c08f59ece241"}], "description": null}, {"id": "da39261b-e816-43f1-a7bb-f5e784e73fbb", "name": "builder-ppc64el-cpu16-ram16-disk100", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/da39261b-e816-43f1-a7bb-f5e784e73fbb"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/da39261b-e816-43f1-a7bb-f5e784e73fbb"}], "description": null}, {"id": "dcc8e80f-6e4d-4f7d-a68f-298ebcb4376d", "name": "builder-ppc64el-cpu32-ram256-disk100", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/dcc8e80f-6e4d-4f7d-a68f-298ebcb4376d"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/dcc8e80f-6e4d-4f7d-a68f-298ebcb4376d"}], "description": null}, {"id": "dd1211e5-4133-400a-9dc9-71fa83fd4d97", "name": "builder-ppc64el-cpu2-ram55-disk28", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/dd1211e5-4133-400a-9dc9-71fa83fd4d97"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/dd1211e5-4133-400a-9dc9-71fa83fd4d97"}], "description": null}, {"id": "dfa7dc00-528e-45c5-b267-3d798e73e8da", "name": "builder-ppc64el-cpu8-ram4-disk20", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/dfa7dc00-528e-45c5-b267-3d798e73e8da"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/dfa7dc00-528e-45c5-b267-3d798e73e8da"}], "description": null}, {"id": "e2116c8a-a35a-432f-8bf7-06bef30c10ae", "name": "builder-ppc64el-cpu8-ram12-disk20", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/e2116c8a-a35a-432f-8bf7-06bef30c10ae"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/e2116c8a-a35a-432f-8bf7-06bef30c10ae"}], "description": null}, {"id": "e2818c96-49bf-4337-a614-ae546d7d7302", "name": "builder-ppc64el-cpu4-ram32-disk20", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/e2818c96-49bf-4337-a614-ae546d7d7302"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/e2818c96-49bf-4337-a614-ae546d7d7302"}], "description": null}, {"id": "e4437d6f-4673-4fcb-89e8-1ce861789538", "name": "flaor_00396665", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/e4437d6f-4673-4fcb-89e8-1ce861789538"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/e4437d6f-4673-4fcb-89e8-1ce861789538"}], "description": null}, {"id": "e628d527-f077-426d-9380-5eea778aabc2", "name": "builder-ppc64el-cpu8-ram16-disk20", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/e628d527-f077-426d-9380-5eea778aabc2"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/e628d527-f077-426d-9380-5eea778aabc2"}], "description": null}, {"id": "e752e039-cbe4-4a16-8197-de87ba42b83e", "name": "builder-ppc64el-cpu64-ram256-disk100", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/e752e039-cbe4-4a16-8197-de87ba42b83e"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/e752e039-cbe4-4a16-8197-de87ba42b83e"}], "description": null}, {"id": "e7f811c8-a60c-45c6-86c8-8e4b025751df", "name": "builder-ppc64el-cpu4-ram16-disk40", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/e7f811c8-a60c-45c6-86c8-8e4b025751df"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/e7f811c8-a60c-45c6-86c8-8e4b025751df"}], "description": null}, {"id": "eb80d7e2-b6e1-42a5-b80d-3dad861f6989", "name": "builder-ppc64el-cpu16-ram4-disk20", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/eb80d7e2-b6e1-42a5-b80d-3dad861f6989"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/eb80d7e2-b6e1-42a5-b80d-3dad861f6989"}], "description": null}, {"id": "ed127e2b-02b8-4e61-bf10-0c89b90928e6", "name": "builder-ppc64el-cpu64-ram128-disk50", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/ed127e2b-02b8-4e61-bf10-0c89b90928e6"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/ed127e2b-02b8-4e61-bf10-0c89b90928e6"}], "description": null}, {"id": "ef7301a7-71f4-48ac-b387-23251f4060e1", "name": "builder-ppc64el-cpu16-ram8-disk100", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/ef7301a7-71f4-48ac-b387-23251f4060e1"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/ef7301a7-71f4-48ac-b387-23251f4060e1"}], "description": null}, {"id": "f0f1af4d-f230-40c1-b789-c94e02a68daa", "name": "builder-ppc64el-cpu16-ram8-disk20", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/f0f1af4d-f230-40c1-b789-c94e02a68daa"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/f0f1af4d-f230-40c1-b789-c94e02a68daa"}], "description": null}, {"id": "f40b2dbc-5d69-40b0-a9fc-71c32de93ca3", "name": "autopkgtest-big-ppc64el", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/f40b2dbc-5d69-40b0-a9fc-71c32de93ca3"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/f40b2dbc-5d69-40b0-a9fc-71c32de93ca3"}], "description": null}, {"id": "f6aae414-e26b-4692-95d4-d851b6993c2a", "name": "builder-ppc64el-cpu2-ram8-disk50", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/f6aae414-e26b-4692-95d4-d851b6993c2a"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/f6aae414-e26b-4692-95d4-d851b6993c2a"}], "description": null}, {"id": "f91b245b-ad92-47f6-8861-d1e070fcc19c", "name": "builder-ppc64el-cpu2-ram64-disk100", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/f91b245b-ad92-47f6-8861-d1e070fcc19c"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/f91b245b-ad92-47f6-8861-d1e070fcc19c"}], "description": null}, {"id": "fa3bbba4-5e72-4ca3-9661-ccf45947bbf5", "name": "builder-ppc64el-cpu16-ram4-disk100", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/fa3bbba4-5e72-4ca3-9661-ccf45947bbf5"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/fa3bbba4-5e72-4ca3-9661-ccf45947bbf5"}], "description": null}, {"id": "ff4cf1ee-6e00-49b7-9d11-fafa69b910df", "name": "builder-ppc64el-cpu8-ram32-disk40", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/ff4cf1ee-6e00-49b7-9d11-fafa69b910df"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/ff4cf1ee-6e00-49b7-9d11-fafa69b910df"}], "description": null}]} 466s DEBUG (session:936) GET call to compute for https://nova.ps6.canonical.com:8774/v2.1/flavors?is_public=None used request id req-e80f116e-03a2-4537-b35b-523bffca23ce 466s DEBUG (session:517) REQ: curl -g -i -X GET https://nova.ps6.canonical.com:8774/v2.1/flavors/102d0b57-e8d2-46c6-9be4-f452119a0280 -H "Accept: application/json" -H "OpenStack-API-Version: compute 2.87" -H "User-Agent: python-novaclient" -H "X-Auth-Token: {SHA256}452f3229765979e00b7c1b9b13f6373deeeb4917bdcf21fff2b6a84cfb8ad813" -H "X-OpenStack-Nova-API-Version: 2.87" 466s DEBUG (connectionpool:429) https://nova.ps6.canonical.com:8774 "GET /v2.1/flavors/102d0b57-e8d2-46c6-9be4-f452119a0280 HTTP/1.1" 200 623 466s DEBUG (session:548) RESP: [200] Connection: Keep-Alive Content-Length: 623 Content-Type: application/json Date: Wed, 13 Nov 2024 11:01:03 GMT Keep-Alive: timeout=75, max=996 OpenStack-API-Version: compute 2.87 Server: Apache/2.4.52 (Ubuntu) Vary: OpenStack-API-Version,X-OpenStack-Nova-API-Version X-OpenStack-Nova-API-Version: 2.87 x-compute-request-id: req-b1ea418e-e252-498f-9902-76c1fd3b6d27 x-openstack-request-id: req-b1ea418e-e252-498f-9902-76c1fd3b6d27 466s DEBUG (session:580) RESP BODY: {"flavor": {"id": "102d0b57-e8d2-46c6-9be4-f452119a0280", "name": "autopkgtest-ppc64el", "ram": 4096, "disk": 20, "swap": 0, "OS-FLV-EXT-DATA:ephemeral": 0, "OS-FLV-DISABLED:disabled": false, "vcpus": 2, "os-flavor-access:is_public": false, "rxtx_factor": 1.0, "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/flavors/102d0b57-e8d2-46c6-9be4-f452119a0280"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/flavors/102d0b57-e8d2-46c6-9be4-f452119a0280"}], "description": null, "extra_specs": {"aggregate_instance_extra_specs:commit": "builder-ppc64el", "hw_rng:allowed": "True"}}} 466s DEBUG (session:936) GET call to compute for https://nova.ps6.canonical.com:8774/v2.1/flavors/102d0b57-e8d2-46c6-9be4-f452119a0280 used request id req-b1ea418e-e252-498f-9902-76c1fd3b6d27 466s DEBUG (session:517) REQ: curl -g -i -X POST https://nova.ps6.canonical.com:8774/v2.1/servers -H "Accept: application/json" -H "Content-Type: application/json" -H "OpenStack-API-Version: compute 2.87" -H "User-Agent: python-novaclient" -H "X-Auth-Token: {SHA256}452f3229765979e00b7c1b9b13f6373deeeb4917bdcf21fff2b6a84cfb8ad813" -H "X-OpenStack-Nova-API-Version: 2.87" -d '{"server": {"name": "adt-plucky-ppc64el-sqlalchemy-i18n-20241113-105937-juju-7f2275-prod-proposed-migration-environment-20-037cb0ce-9037-4607-b813-d95cc5642153", "imageRef": "0c5715b6-5cca-4485-b8bf-b85dfd917a5f", "flavorRef": "102d0b57-e8d2-46c6-9be4-f452119a0280", "user_data": "I2Nsb3VkLWNvbmZpZwpob3N0bmFtZTogYXV0b3BrZ3Rlc3QKZnFkbjogYXV0b3BrZ3Rlc3QubG9jYWwKbWFuYWdlX2V0Y19ob3N0czogdHJ1ZQphcHRfdXBkYXRlOiB0cnVlCmFwdF91cGdyYWRlOiBmYWxzZQphcHRfbWlycm9yOiBodHRwOi8vZnRwbWFzdGVyLmludGVybmFsL3VidW50dS8KCnJ1bmNtZDoKIC0gZWNobyAnQWNxdWlyZTo6TGFuZ3VhZ2VzICJub25lIjsnID4gL2V0Yy9hcHQvYXB0LmNvbmYuZC85MG5vbGFuZ3VhZ2VzCiAtIGVjaG8gJ2ZvcmNlLXVuc2FmZS1pbycgPiAvZXRjL2Rwa2cvZHBrZy5jZmcuZC9hdXRvcGtndGVzdAogLSBwcmludGYgJ1xuVEVSTT1saW51eFxuJ2h0dHBfcHJveHk9aHR0cDovL3NxdWlkLmludGVybmFsOjMxMjgnXG4naHR0cHNfcHJveHk9aHR0cDovL3NxdWlkLmludGVybmFsOjMxMjgnXG4nbm9fcHJveHk9MTI3LjAuMC4xLDEyNy4wLjEuMSxsb2dpbi51YnVudHUuY29tLGxvY2FsaG9zdCxsb2NhbGRvbWFpbixub3ZhbG9jYWwsaW50ZXJuYWwsYXJjaGl2ZS51YnVudHUuY29tLHBvcnRzLnVidW50dS5jb20sc2VjdXJpdHkudWJ1bnR1LmNvbSxkZGVicy51YnVudHUuY29tLGNoYW5nZWxvZ3MudWJ1bnR1LmNvbSxrZXlzZXJ2ZXIudWJ1bnR1LmNvbSxsYXVuY2hwYWRsaWJyYXJpYW4ubmV0LGxhdW5jaHBhZGNvbnRlbnQubmV0LGxhdW5jaHBhZC5uZXQsMTAuMjQuMC4wLzI0LGtleXN0b25lLnBzNS5jYW5vbmljYWwuY29tLG9iamVjdHN0b3JhZ2UucHJvZHN0YWNrNS5jYW5vbmljYWwuY29tJ1xuJyA+PiAvZXRjL2Vudmlyb25tZW50CiAtIHNlZCAtaSAtciAnL14xMjcuMC4xLjEvIHMvYXV0b3BrZ3Rlc3QtW14gXStcLi9hdXRvcGtndGVzdFwuLycgL2V0Yy9ob3N0cwo=", "key_name": "testbed-juju-7f2275-prod-proposed-migration-environment-20", "min_count": 1, "max_count": 1, "security_groups": [{"name": "autopkgtest-juju-7f2275-prod-proposed-migration-environment-20@bos03-ppc64el-7.secgroup"}], "networks": [{"uuid": "3083d638-5564-4f5c-97ef-09f045123d20"}]}}' 466s DEBUG (connectionpool:429) https://nova.ps6.canonical.com:8774 "POST /v2.1/servers HTTP/1.1" 202 478 466s DEBUG (session:548) RESP: [202] Connection: Keep-Alive Content-Length: 478 Content-Type: application/json Date: Wed, 13 Nov 2024 11:01:04 GMT Keep-Alive: timeout=75, max=995 OpenStack-API-Version: compute 2.87 Server: Apache/2.4.52 (Ubuntu) Vary: OpenStack-API-Version,X-OpenStack-Nova-API-Version X-OpenStack-Nova-API-Version: 2.87 location: https://nova.ps6.canonical.com:8774/v2.1/servers/b63bd8d1-0272-443f-8282-7b097ae5f863 x-compute-request-id: req-eecba941-e2d8-4641-9ff4-b4fa7c085a91 x-openstack-request-id: req-eecba941-e2d8-4641-9ff4-b4fa7c085a91 466s DEBUG (session:580) RESP BODY: {"server": {"id": "b63bd8d1-0272-443f-8282-7b097ae5f863", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/servers/b63bd8d1-0272-443f-8282-7b097ae5f863"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/servers/b63bd8d1-0272-443f-8282-7b097ae5f863"}], "OS-DCF:diskConfig": "MANUAL", "security_groups": [{"name": "autopkgtest-juju-7f2275-prod-proposed-migration-environment-20@bos03-ppc64el-7.secgroup"}], "adminPass": "wiMnr3kN7TLs"}} 466s DEBUG (session:936) POST call to compute for https://nova.ps6.canonical.com:8774/v2.1/servers used request id req-eecba941-e2d8-4641-9ff4-b4fa7c085a91 466s DEBUG (session:517) REQ: curl -g -i -X GET https://nova.ps6.canonical.com:8774/v2.1/servers/b63bd8d1-0272-443f-8282-7b097ae5f863 -H "Accept: application/json" -H "OpenStack-API-Version: compute 2.87" -H "User-Agent: python-novaclient" -H "X-Auth-Token: {SHA256}452f3229765979e00b7c1b9b13f6373deeeb4917bdcf21fff2b6a84cfb8ad813" -H "X-OpenStack-Nova-API-Version: 2.87" 466s DEBUG (connectionpool:429) https://nova.ps6.canonical.com:8774 "GET /v2.1/servers/b63bd8d1-0272-443f-8282-7b097ae5f863 HTTP/1.1" 200 3206 466s DEBUG (session:548) RESP: [200] Connection: Keep-Alive Content-Length: 3206 Content-Type: application/json Date: Wed, 13 Nov 2024 11:01:04 GMT Keep-Alive: timeout=75, max=994 OpenStack-API-Version: compute 2.87 Server: Apache/2.4.52 (Ubuntu) Vary: OpenStack-API-Version,X-OpenStack-Nova-API-Version X-OpenStack-Nova-API-Version: 2.87 x-compute-request-id: req-24fa4d5e-2dee-4180-b31a-f683961d2850 x-openstack-request-id: req-24fa4d5e-2dee-4180-b31a-f683961d2850 466s DEBUG (session:580) RESP BODY: {"server": {"id": "b63bd8d1-0272-443f-8282-7b097ae5f863", "name": "adt-plucky-ppc64el-sqlalchemy-i18n-20241113-105937-juju-7f2275-prod-proposed-migration-environment-20-037cb0ce-9037-4607-b813-d95cc5642153", "status": "BUILD", "tenant_id": "623df63b80274c21bc79a0c35e68d615", "user_id": "c871debdeffd4cb8b69ce618fc4aa361", "metadata": {}, "hostId": "", "image": {"id": "0c5715b6-5cca-4485-b8bf-b85dfd917a5f", "links": [{"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/images/0c5715b6-5cca-4485-b8bf-b85dfd917a5f"}]}, "flavor": {"vcpus": 2, "ram": 4096, "disk": 20, "ephemeral": 0, "swap": 0, "original_name": "autopkgtest-ppc64el", "extra_specs": {"aggregate_instance_extra_specs:commit": "builder-ppc64el", "hw_rng:allowed": "True"}}, "created": "2024-11-13T11:01:05Z", "updated": "2024-11-13T11:01:04Z", "addresses": {}, "accessIPv4": "", "accessIPv6": "", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/servers/b63bd8d1-0272-443f-8282-7b097ae5f863"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/servers/b63bd8d1-0272-443f-8282-7b097ae5f863"}], "OS-DCF:diskConfig": "MANUAL", "progress": 0, "OS-EXT-AZ:availability_zone": "", "config_drive": "", "key_name": "testbed-juju-7f2275-prod-proposed-migration-environment-20", "OS-SRV-USG:launched_at": null, "OS-SRV-USG:terminated_at": null, "OS-EXT-SRV-ATTR:host": null, "OS-EXT-SRV-ATTR:instance_name": "", "OS-EXT-SRV-ATTR:hypervisor_hostname": null, "OS-EXT-SRV-ATTR:reservation_id": "r-hm3u27jt", "OS-EXT-SRV-ATTR:launch_index": 0, "OS-EXT-SRV-ATTR:hostname": "adt-plucky-ppc64el-sqlalchemy-i18n-20241113-105937-juju-7f2275", "OS-EXT-SRV-ATTR:kernel_id": "", "OS-EXT-SRV-ATTR:ramdisk_id": "", "OS-EXT-SRV-ATTR:root_device_name": null, "OS-EXT-SRV-ATTR:user_data": "I2Nsb3VkLWNvbmZpZwpob3N0bmFtZTogYXV0b3BrZ3Rlc3QKZnFkbjogYXV0b3BrZ3Rlc3QubG9jYWwKbWFuYWdlX2V0Y19ob3N0czogdHJ1ZQphcHRfdXBkYXRlOiB0cnVlCmFwdF91cGdyYWRlOiBmYWxzZQphcHRfbWlycm9yOiBodHRwOi8vZnRwbWFzdGVyLmludGVybmFsL3VidW50dS8KCnJ1bmNtZDoKIC0gZWNobyAnQWNxdWlyZTo6TGFuZ3VhZ2VzICJub25lIjsnID4gL2V0Yy9hcHQvYXB0LmNvbmYuZC85MG5vbGFuZ3VhZ2VzCiAtIGVjaG8gJ2ZvcmNlLXVuc2FmZS1pbycgPiAvZXRjL2Rwa2cvZHBrZy5jZmcuZC9hdXRvcGtndGVzdAogLSBwcmludGYgJ1xuVEVSTT1saW51eFxuJ2h0dHBfcHJveHk9aHR0cDovL3NxdWlkLmludGVybmFsOjMxMjgnXG4naHR0cHNfcHJveHk9aHR0cDovL3NxdWlkLmludGVybmFsOjMxMjgnXG4nbm9fcHJveHk9MTI3LjAuMC4xLDEyNy4wLjEuMSxsb2dpbi51YnVudHUuY29tLGxvY2FsaG9zdCxsb2NhbGRvbWFpbixub3ZhbG9jYWwsaW50ZXJuYWwsYXJjaGl2ZS51YnVudHUuY29tLHBvcnRzLnVidW50dS5jb20sc2VjdXJpdHkudWJ1bnR1LmNvbSxkZGVicy51YnVudHUuY29tLGNoYW5nZWxvZ3MudWJ1bnR1LmNvbSxrZXlzZXJ2ZXIudWJ1bnR1LmNvbSxsYXVuY2hwYWRsaWJyYXJpYW4ubmV0LGxhdW5jaHBhZGNvbnRlbnQubmV0LGxhdW5jaHBhZC5uZXQsMTAuMjQuMC4wLzI0LGtleXN0b25lLnBzNS5jYW5vbmljYWwuY29tLG9iamVjdHN0b3JhZ2UucHJvZHN0YWNrNS5jYW5vbmljYWwuY29tJ1xuJyA+PiAvZXRjL2Vudmlyb25tZW50CiAtIHNlZCAtaSAtciAnL14xMjcuMC4xLjEvIHMvYXV0b3BrZ3Rlc3QtW14gXStcLi9hdXRvcGtndGVzdFwuLycgL2V0Yy9ob3N0cwo=", "OS-EXT-STS:task_state": "scheduling", "OS-EXT-STS:vm_state": "building", "OS-EXT-STS:power_state": 0, "os-extended-volumes:volumes_attached": [], "locked": false, "locked_reason": null, "description": null, "tags": [], "trusted_image_certificates": null, "server_groups": []}} 466s DEBUG (session:936) GET call to compute for https://nova.ps6.canonical.com:8774/v2.1/servers/b63bd8d1-0272-443f-8282-7b097ae5f863 used request id req-24fa4d5e-2dee-4180-b31a-f683961d2850 466s DEBUG (session:517) REQ: curl -g -i -X GET https://glance.ps6.canonical.com:9292/v2/images/0c5715b6-5cca-4485-b8bf-b85dfd917a5f -H "Accept: application/json" -H "OpenStack-API-Version: compute 2.87" -H "User-Agent: python-novaclient" -H "X-Auth-Token: {SHA256}452f3229765979e00b7c1b9b13f6373deeeb4917bdcf21fff2b6a84cfb8ad813" -H "X-OpenStack-Nova-API-Version: 2.87" 466s DEBUG (connectionpool:429) https://glance.ps6.canonical.com:9292 "GET /v2/images/0c5715b6-5cca-4485-b8bf-b85dfd917a5f HTTP/1.1" 200 2292 466s DEBUG (session:548) RESP: [200] Connection: Keep-Alive Content-Length: 2292 Content-Type: application/json Date: Wed, 13 Nov 2024 11:01:04 GMT Keep-Alive: timeout=75, max=999 Server: Apache/2.4.52 (Ubuntu) X-Openstack-Request-Id: req-dcd7a46d-324b-4bf0-b5bd-b270ca4637f7 466s DEBUG (session:580) RESP BODY: {"architecture": "ppc64le", "base_image_ref": "302dbebd-8fb5-46eb-aa5c-84ec11ab5c95", "boot_roles": "member,load-balancer_member,reader", "content_id": "auto.sync", "hw_cdrom_bus": "scsi", "hw_disk_bus": "virtio", "hw_machine_type": "pseries", "hw_video_model": "vga", "hw_vif_model": "virtio", "image_location": "snapshot", "image_state": "available", "image_type": "snapshot", "instance_uuid": "7e7a00e2-6c3a-40a2-8c07-f4d0c8706cf5", "item_name": "disk1.img", "os_distro": "ubuntu", "os_version": "24.10", "owner_id": "623df63b80274c21bc79a0c35e68d615", "owner_project_name": "prod-proposed-migration-ppc64el_project", "owner_user_name": "prod-proposed-migration-ppc64el", "product_name": "com.ubuntu.cloud.daily:server:24.10:ppc64el", "simplestreams_metadata": "{\"aliases\": \"24.10,o,oracular,devel\", \"arch\": \"ppc64el\", \"ftype\": \"disk1.img\", \"label\": \"daily\", \"md5\": \"fd88d9a689ac4d7ab4bea632de90d355\", \"os\": \"ubuntu\", \"pubname\": \"ubuntu-oracular-daily-ppc64el-server-20241009\", \"release\": \"oracular\", \"release_codenam", "source_content_id": "com.ubuntu.cloud:daily:download", "user_id": "c871debdeffd4cb8b69ce618fc4aa361", "version_name": "20241009", "name": "adt/ubuntu-plucky-ppc64el-server-20241113.img", "disk_format": "qcow2", "container_format": "bare", "visibility": "private", "size": 2751922176, "virtual_size": 21474836480, "status": "active", "checksum": "bcac3e03f6534f9b5e31609d24f6bd76", "protected": false, "min_ram": 0, "min_disk": 20, "owner": "623df63b80274c21bc79a0c35e68d615", "os_hidden": false, "os_hash_algo": "sha512", "os_hash_value": "76d837bfc30f1a0e4248983886948fe32ab2b5f05c4e0da0415911ea492f5a1ed3b2d0148f37fb0c16f1695e70f2423024b8d7edfb4e3e23e1edb91c8fd65daf", "id": "0c5715b6-5cca-4485-b8bf-b85dfd917a5f", "created_at": "2024-11-13T04:34:00Z", "updated_at": "2024-11-13T04:35:23Z", "locations": [{"url": "rbd://eea9d068-c18c-11ed-8dc0-013aacb71b80/glance/0c5715b6-5cca-4485-b8bf-b85dfd917a5f/snap", "metadata": {"store": "ceph"}}], "direct_url": "rbd://eea9d068-c18c-11ed-8dc0-013aacb71b80/glance/0c5715b6-5cca-4485-b8bf-b85dfd917a5f/snap", "tags": [], "self": "/v2/images/0c5715b6-5cca-4485-b8bf-b85dfd917a5f", "file": "/v2/images/0c5715b6-5cca-4485-b8bf-b85dfd917a5f/file", "schema": "/v2/schemas/image", "stores": "ceph"} 466s DEBUG (session:936) GET call to image for https://glance.ps6.canonical.com:9292/v2/images/0c5715b6-5cca-4485-b8bf-b85dfd917a5f used request id req-dcd7a46d-324b-4bf0-b5bd-b270ca4637f7 466s +--------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------+ 466s | Property | Value | 466s +--------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------+ 466s | OS-DCF:diskConfig | MANUAL | 466s | OS-EXT-AZ:availability_zone | | 466s | OS-EXT-SRV-ATTR:host | - | 466s | OS-EXT-SRV-ATTR:hostname | adt-plucky-ppc64el-sqlalchemy-i18n-20241113-105937-juju-7f2275 | 466s | OS-EXT-SRV-ATTR:hypervisor_hostname | - | 466s | OS-EXT-SRV-ATTR:instance_name | | 466s | OS-EXT-SRV-ATTR:kernel_id | | 466s | OS-EXT-SRV-ATTR:launch_index | 0 | 466s | OS-EXT-SRV-ATTR:ramdisk_id | | 466s | OS-EXT-SRV-ATTR:reservation_id | r-hm3u27jt | 466s | OS-EXT-SRV-ATTR:root_device_name | - | 466s | OS-EXT-STS:power_state | 0 | 466s | OS-EXT-STS:task_state | scheduling | 466s | OS-EXT-STS:vm_state | building | 466s | OS-SRV-USG:launched_at | - | 466s | OS-SRV-USG:terminated_at | - | 466s | accessIPv4 | | 466s | accessIPv6 | | 466s | adminPass | wiMnr3kN7TLs | 466s | config_drive | | 466s | created | 2024-11-13T11:01:05Z | 466s | description | - | 466s | flavor:disk | 20 | 466s | flavor:ephemeral | 0 | 466s | flavor:extra_specs | {"aggregate_instance_extra_specs:commit": "builder-ppc64el", "hw_rng:allowed": "True"} | 466s | flavor:original_name | autopkgtest-ppc64el | 466s | flavor:ram | 4096 | 466s | flavor:swap | 0 | 466s | flavor:vcpus | 2 | 466s | hostId | | 466s | id | b63bd8d1-0272-443f-8282-7b097ae5f863 | 466s | image | adt/ubuntu-plucky-ppc64el-server-20241113.img (0c5715b6-5cca-4485-b8bf-b85dfd917a5f) | 466s | key_name | testbed-juju-7f2275-prod-proposed-migration-environment-20 | 466s | locked | False | 466s | locked_reason | - | 466s | metadata | {} | 466s | name | adt-plucky-ppc64el-sqlalchemy-i18n-20241113-105937-juju-7f2275-prod-proposed-migration-environment-20-037cb0ce-9037-4607-b813-d95cc5642153 | 466s | os-extended-volumes:volumes_attached | [] | 466s | progress | 0 | 466s | security_groups | autopkgtest-juju-7f2275-prod-proposed-migration-environment-20@bos03-ppc64el-7.secgroup | 466s | server_groups | [] | 466s | status | BUILD | 466s | tags | [] | 466s | tenant_id | 623df63b80274c21bc79a0c35e68d615 | 466s | trusted_image_certificates | - | 466s | updated | 2024-11-13T11:01:04Z | 466s | user_id | c871debdeffd4cb8b69ce618fc4aa361 | 466s +--------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------+DEBUG (session:517) REQ: curl -g -i -X GET https://nova.ps6.canonical.com:8774/v2.1/servers/b63bd8d1-0272-443f-8282-7b097ae5f863 -H "Accept: application/json" -H "OpenStack-API-Version: compute 2.87" -H "User-Agent: python-novaclient" -H "X-Auth-Token: {SHA256}452f3229765979e00b7c1b9b13f6373deeeb4917bdcf21fff2b6a84cfb8ad813" -H "X-OpenStack-Nova-API-Version: 2.87" 466s DEBUG (connectionpool:429) https://nova.ps6.canonical.com:8774 "GET /v2.1/servers/b63bd8d1-0272-443f-8282-7b097ae5f863 HTTP/1.1" 200 3206 466s DEBUG (session:548) RESP: [200] Connection: Keep-Alive Content-Length: 3206 Content-Type: application/json Date: Wed, 13 Nov 2024 11:01:04 GMT Keep-Alive: timeout=75, max=993 OpenStack-API-Version: compute 2.87 Server: Apache/2.4.52 (Ubuntu) Vary: OpenStack-API-Version,X-OpenStack-Nova-API-Version X-OpenStack-Nova-API-Version: 2.87 x-compute-request-id: req-a77b762b-cf55-4a4d-8fd1-ab09f821d682 x-openstack-request-id: req-a77b762b-cf55-4a4d-8fd1-ab09f821d682 466s DEBUG (session:580) RESP BODY: {"server": {"id": "b63bd8d1-0272-443f-8282-7b097ae5f863", "name": "adt-plucky-ppc64el-sqlalchemy-i18n-20241113-105937-juju-7f2275-prod-proposed-migration-environment-20-037cb0ce-9037-4607-b813-d95cc5642153", "status": "BUILD", "tenant_id": "623df63b80274c21bc79a0c35e68d615", "user_id": "c871debdeffd4cb8b69ce618fc4aa361", "metadata": {}, "hostId": "", "image": {"id": "0c5715b6-5cca-4485-b8bf-b85dfd917a5f", "links": [{"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/images/0c5715b6-5cca-4485-b8bf-b85dfd917a5f"}]}, "flavor": {"vcpus": 2, "ram": 4096, "disk": 20, "ephemeral": 0, "swap": 0, "original_name": "autopkgtest-ppc64el", "extra_specs": {"aggregate_instance_extra_specs:commit": "builder-ppc64el", "hw_rng:allowed": "True"}}, "created": "2024-11-13T11:01:05Z", "updated": "2024-11-13T11:01:05Z", "addresses": {}, "accessIPv4": "", "accessIPv6": "", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/servers/b63bd8d1-0272-443f-8282-7b097ae5f863"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/servers/b63bd8d1-0272-443f-8282-7b097ae5f863"}], "OS-DCF:diskConfig": "MANUAL", "progress": 0, "OS-EXT-AZ:availability_zone": "", "config_drive": "", "key_name": "testbed-juju-7f2275-prod-proposed-migration-environment-20", "OS-SRV-USG:launched_at": null, "OS-SRV-USG:terminated_at": null, "OS-EXT-SRV-ATTR:host": null, "OS-EXT-SRV-ATTR:instance_name": "", "OS-EXT-SRV-ATTR:hypervisor_hostname": null, "OS-EXT-SRV-ATTR:reservation_id": "r-hm3u27jt", "OS-EXT-SRV-ATTR:launch_index": 0, "OS-EXT-SRV-ATTR:hostname": "adt-plucky-ppc64el-sqlalchemy-i18n-20241113-105937-juju-7f2275", "OS-EXT-SRV-ATTR:kernel_id": "", "OS-EXT-SRV-ATTR:ramdisk_id": "", "OS-EXT-SRV-ATTR:root_device_name": null, "OS-EXT-SRV-ATTR:user_data": "I2Nsb3VkLWNvbmZpZwpob3N0bmFtZTogYXV0b3BrZ3Rlc3QKZnFkbjogYXV0b3BrZ3Rlc3QubG9jYWwKbWFuYWdlX2V0Y19ob3N0czogdHJ1ZQphcHRfdXBkYXRlOiB0cnVlCmFwdF91cGdyYWRlOiBmYWxzZQphcHRfbWlycm9yOiBodHRwOi8vZnRwbWFzdGVyLmludGVybmFsL3VidW50dS8KCnJ1bmNtZDoKIC0gZWNobyAnQWNxdWlyZTo6TGFuZ3VhZ2VzICJub25lIjsnID4gL2V0Yy9hcHQvYXB0LmNvbmYuZC85MG5vbGFuZ3VhZ2VzCiAtIGVjaG8gJ2ZvcmNlLXVuc2FmZS1pbycgPiAvZXRjL2Rwa2cvZHBrZy5jZmcuZC9hdXRvcGtndGVzdAogLSBwcmludGYgJ1xuVEVSTT1saW51eFxuJ2h0dHBfcHJveHk9aHR0cDovL3NxdWlkLmludGVybmFsOjMxMjgnXG4naHR0cHNfcHJveHk9aHR0cDovL3NxdWlkLmludGVybmFsOjMxMjgnXG4nbm9fcHJveHk9MTI3LjAuMC4xLDEyNy4wLjEuMSxsb2dpbi51YnVudHUuY29tLGxvY2FsaG9zdCxsb2NhbGRvbWFpbixub3ZhbG9jYWwsaW50ZXJuYWwsYXJjaGl2ZS51YnVudHUuY29tLHBvcnRzLnVidW50dS5jb20sc2VjdXJpdHkudWJ1bnR1LmNvbSxkZGVicy51YnVudHUuY29tLGNoYW5nZWxvZ3MudWJ1bnR1LmNvbSxrZXlzZXJ2ZXIudWJ1bnR1LmNvbSxsYXVuY2hwYWRsaWJyYXJpYW4ubmV0LGxhdW5jaHBhZGNvbnRlbnQubmV0LGxhdW5jaHBhZC5uZXQsMTAuMjQuMC4wLzI0LGtleXN0b25lLnBzNS5jYW5vbmljYWwuY29tLG9iamVjdHN0b3JhZ2UucHJvZHN0YWNrNS5jYW5vbmljYWwuY29tJ1xuJyA+PiAvZXRjL2Vudmlyb25tZW50CiAtIHNlZCAtaSAtciAnL14xMjcuMC4xLjEvIHMvYXV0b3BrZ3Rlc3QtW14gXStcLi9hdXRvcGtndGVzdFwuLycgL2V0Yy9ob3N0cwo=", "OS-EXT-STS:task_state": "scheduling", "OS-EXT-STS:vm_state": "building", "OS-EXT-STS:power_state": 0, "os-extended-volumes:volumes_attached": [], "locked": false, "locked_reason": null, "description": null, "tags": [], "trusted_image_certificates": null, "server_groups": []}} 466s DEBUG (session:936) GET call to compute for https://nova.ps6.canonical.com:8774/v2.1/servers/b63bd8d1-0272-443f-8282-7b097ae5f863 used request id req-a77b762b-cf55-4a4d-8fd1-ab09f821d682 466s 466s 466s Server building... 0% completeDEBUG (session:517) REQ: curl -g -i -X GET https://nova.ps6.canonical.com:8774/v2.1/servers/b63bd8d1-0272-443f-8282-7b097ae5f863 -H "Accept: application/json" -H "OpenStack-API-Version: compute 2.87" -H "User-Agent: python-novaclient" -H "X-Auth-Token: {SHA256}452f3229765979e00b7c1b9b13f6373deeeb4917bdcf21fff2b6a84cfb8ad813" -H "X-OpenStack-Nova-API-Version: 2.87" 466s DEBUG (connectionpool:429) https://nova.ps6.canonical.com:8774 "GET /v2.1/servers/b63bd8d1-0272-443f-8282-7b097ae5f863 HTTP/1.1" 200 3333 466s DEBUG (session:548) RESP: [200] Connection: Keep-Alive Content-Length: 3333 Content-Type: application/json Date: Wed, 13 Nov 2024 11:01:10 GMT Keep-Alive: timeout=75, max=992 OpenStack-API-Version: compute 2.87 Server: Apache/2.4.52 (Ubuntu) Vary: OpenStack-API-Version,X-OpenStack-Nova-API-Version X-OpenStack-Nova-API-Version: 2.87 x-compute-request-id: req-c3907056-f8ca-4265-a4bd-57970af4bde8 x-openstack-request-id: req-c3907056-f8ca-4265-a4bd-57970af4bde8 466s DEBUG (session:580) RESP BODY: {"server": {"id": "b63bd8d1-0272-443f-8282-7b097ae5f863", "name": "adt-plucky-ppc64el-sqlalchemy-i18n-20241113-105937-juju-7f2275-prod-proposed-migration-environment-20-037cb0ce-9037-4607-b813-d95cc5642153", "status": "ERROR", "tenant_id": "623df63b80274c21bc79a0c35e68d615", "user_id": "c871debdeffd4cb8b69ce618fc4aa361", "metadata": {}, "hostId": "", "image": {"id": "0c5715b6-5cca-4485-b8bf-b85dfd917a5f", "links": [{"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/images/0c5715b6-5cca-4485-b8bf-b85dfd917a5f"}]}, "flavor": {"vcpus": 2, "ram": 4096, "disk": 20, "ephemeral": 0, "swap": 0, "original_name": "autopkgtest-ppc64el", "extra_specs": {"aggregate_instance_extra_specs:commit": "builder-ppc64el", "hw_rng:allowed": "True"}}, "created": "2024-11-13T11:01:04Z", "updated": "2024-11-13T11:01:05Z", "addresses": {}, "accessIPv4": "", "accessIPv6": "", "links": [{"rel": "self", "href": "https://nova.ps6.canonical.com:8774/v2.1/servers/b63bd8d1-0272-443f-8282-7b097ae5f863"}, {"rel": "bookmark", "href": "https://nova.ps6.canonical.com:8774/servers/b63bd8d1-0272-443f-8282-7b097ae5f863"}], "OS-DCF:diskConfig": "MANUAL", "fault": {"code": 500, "created": "2024-11-13T11:01:05Z", "message": "No valid host was found. There are not enough hosts available."}, "OS-EXT-AZ:availability_zone": "", "config_drive": "", "key_name": "testbed-juju-7f2275-prod-proposed-migration-environment-20", "OS-SRV-USG:launched_at": null, "OS-SRV-USG:terminated_at": null, "OS-EXT-SRV-ATTR:host": null, "OS-EXT-SRV-ATTR:instance_name": "instance-00057e0b", "OS-EXT-SRV-ATTR:hypervisor_hostname": null, "OS-EXT-SRV-ATTR:reservation_id": "r-hm3u27jt", "OS-EXT-SRV-ATTR:launch_index": 0, "OS-EXT-SRV-ATTR:hostname": "adt-plucky-ppc64el-sqlalchemy-i18n-20241113-105937-juju-7f2275", "OS-EXT-SRV-ATTR:kernel_id": "", "OS-EXT-SRV-ATTR:ramdisk_id": "", "OS-EXT-SRV-ATTR:root_device_name": null, "OS-EXT-SRV-ATTR:user_data": "I2Nsb3VkLWNvbmZpZwpob3N0bmFtZTogYXV0b3BrZ3Rlc3QKZnFkbjogYXV0b3BrZ3Rlc3QubG9jYWwKbWFuYWdlX2V0Y19ob3N0czogdHJ1ZQphcHRfdXBkYXRlOiB0cnVlCmFwdF91cGdyYWRlOiBmYWxzZQphcHRfbWlycm9yOiBodHRwOi8vZnRwbWFzdGVyLmludGVybmFsL3VidW50dS8KCnJ1bmNtZDoKIC0gZWNobyAnQWNxdWlyZTo6TGFuZ3VhZ2VzICJub25lIjsnID4gL2V0Yy9hcHQvYXB0LmNvbmYuZC85MG5vbGFuZ3VhZ2VzCiAtIGVjaG8gJ2ZvcmNlLXVuc2FmZS1pbycgPiAvZXRjL2Rwa2cvZHBrZy5jZmcuZC9hdXRvcGtndGVzdAogLSBwcmludGYgJ1xuVEVSTT1saW51eFxuJ2h0dHBfcHJveHk9aHR0cDovL3NxdWlkLmludGVybmFsOjMxMjgnXG4naHR0cHNfcHJveHk9aHR0cDovL3NxdWlkLmludGVybmFsOjMxMjgnXG4nbm9fcHJveHk9MTI3LjAuMC4xLDEyNy4wLjEuMSxsb2dpbi51YnVudHUuY29tLGxvY2FsaG9zdCxsb2NhbGRvbWFpbixub3ZhbG9jYWwsaW50ZXJuYWwsYXJjaGl2ZS51YnVudHUuY29tLHBvcnRzLnVidW50dS5jb20sc2VjdXJpdHkudWJ1bnR1LmNvbSxkZGVicy51YnVudHUuY29tLGNoYW5nZWxvZ3MudWJ1bnR1LmNvbSxrZXlzZXJ2ZXIudWJ1bnR1LmNvbSxsYXVuY2hwYWRsaWJyYXJpYW4ubmV0LGxhdW5jaHBhZGNvbnRlbnQubmV0LGxhdW5jaHBhZC5uZXQsMTAuMjQuMC4wLzI0LGtleXN0b25lLnBzNS5jYW5vbmljYWwuY29tLG9iamVjdHN0b3JhZ2UucHJvZHN0YWNrNS5jYW5vbmljYWwuY29tJ1xuJyA+PiAvZXRjL2Vudmlyb25tZW50CiAtIHNlZCAtaSAtciAnL14xMjcuMC4xLjEvIHMvYXV0b3BrZ3Rlc3QtW14gXStcLi9hdXRvcGtndGVzdFwuLycgL2V0Yy9ob3N0cwo=", "OS-EXT-STS:task_state": null, "OS-EXT-STS:vm_state": "error", "OS-EXT-STS:power_state": 0, "os-extended-volumes:volumes_attached": [], "locked": false, "locked_reason": null, "description": null, "tags": [], "trusted_image_certificates": null, "server_groups": []}} 466s DEBUG (session:936) GET call to compute for https://nova.ps6.canonical.com:8774/v2.1/servers/b63bd8d1-0272-443f-8282-7b097ae5f863 used request id req-c3907056-f8ca-4265-a4bd-57970af4bde8 466s DEBUG (shell:822) 466s Traceback (most recent call last): 466s File "/usr/lib/python3/dist-packages/novaclient/shell.py", line 820, in main 466s OpenStackComputeShell().main(argv) 466s File "/usr/lib/python3/dist-packages/novaclient/shell.py", line 742, in main 466s args.func(self.cs, args) 466s File "/usr/lib/python3/dist-packages/novaclient/v2/shell.py", line 980, in do_boot 466s _poll_for_status(cs.servers.get, server.id, 'building', ['active']) 466s File "/usr/lib/python3/dist-packages/novaclient/v2/shell.py", line 1019, in _poll_for_status 466s raise exceptions.ResourceInErrorState(obj) 466s novaclient.exceptions.ResourceInErrorState: 466s ERROR (ResourceInErrorState): 466s 466s Error building server 468s autopkgtest [11:07:25]: testbed dpkg architecture: ppc64el 469s autopkgtest [11:07:26]: testbed apt version: 2.9.8 469s autopkgtest [11:07:26]: @@@@@@@@@@@@@@@@@@@@ test bed setup 470s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [73.9 kB] 470s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [849 kB] 470s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [7016 B] 470s Get:4 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [76.4 kB] 470s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [15.3 kB] 470s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el Packages [86.2 kB] 470s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/universe ppc64el Packages [588 kB] 470s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse ppc64el Packages [19.6 kB] 471s Fetched 1715 kB in 1s (1912 kB/s) 471s Reading package lists... 473s Reading package lists... 473s Building dependency tree... 473s Reading state information... 474s Calculating upgrade... 474s The following NEW packages will be installed: 474s python3.13-gdbm 474s The following packages will be upgraded: 474s libpython3-stdlib python3 python3-gdbm python3-minimal 474s 4 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 474s Need to get 102 kB of archives. 474s After this operation, 141 kB of additional disk space will be used. 474s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el python3-minimal ppc64el 3.12.7-1 [27.4 kB] 474s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el python3 ppc64el 3.12.7-1 [24.0 kB] 474s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el libpython3-stdlib ppc64el 3.12.7-1 [10.0 kB] 474s Get:4 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3.13-gdbm ppc64el 3.13.0-2 [31.5 kB] 474s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el python3-gdbm ppc64el 3.12.7-1 [8640 B] 475s Fetched 102 kB in 0s (286 kB/s) 475s (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.) 475s Preparing to unpack .../python3-minimal_3.12.7-1_ppc64el.deb ... 475s Unpacking python3-minimal (3.12.7-1) over (3.12.6-0ubuntu1) ... 475s Setting up python3-minimal (3.12.7-1) ... 475s (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.) 475s Preparing to unpack .../python3_3.12.7-1_ppc64el.deb ... 476s Unpacking python3 (3.12.7-1) over (3.12.6-0ubuntu1) ... 476s Preparing to unpack .../libpython3-stdlib_3.12.7-1_ppc64el.deb ... 476s Unpacking libpython3-stdlib:ppc64el (3.12.7-1) over (3.12.6-0ubuntu1) ... 476s Selecting previously unselected package python3.13-gdbm. 476s Preparing to unpack .../python3.13-gdbm_3.13.0-2_ppc64el.deb ... 476s Unpacking python3.13-gdbm (3.13.0-2) ... 476s Preparing to unpack .../python3-gdbm_3.12.7-1_ppc64el.deb ... 476s Unpacking python3-gdbm:ppc64el (3.12.7-1) over (3.12.6-1ubuntu1) ... 476s Setting up python3.13-gdbm (3.13.0-2) ... 476s Setting up libpython3-stdlib:ppc64el (3.12.7-1) ... 476s Setting up python3 (3.12.7-1) ... 476s Setting up python3-gdbm:ppc64el (3.12.7-1) ... 476s Processing triggers for man-db (2.12.1-3) ... 477s Reading package lists... 477s Building dependency tree... 477s Reading state information... 478s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 478s Hit:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease 478s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 478s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 478s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 479s Reading package lists... 480s Reading package lists... 480s Building dependency tree... 480s Reading state information... 480s Calculating upgrade... 480s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 480s Reading package lists... 481s Building dependency tree... 481s Reading state information... 481s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 485s autopkgtest [11:07:42]: testbed running kernel: Linux 6.11.0-8-generic #8-Ubuntu SMP Mon Sep 16 13:49:23 UTC 2024 485s autopkgtest [11:07:42]: @@@@@@@@@@@@@@@@@@@@ apt-source sqlalchemy-i18n 488s Get:1 http://ftpmaster.internal/ubuntu plucky/universe sqlalchemy-i18n 1.1.0-1build1 (dsc) [2462 B] 488s Get:2 http://ftpmaster.internal/ubuntu plucky/universe sqlalchemy-i18n 1.1.0-1build1 (tar) [28.2 kB] 488s Get:3 http://ftpmaster.internal/ubuntu plucky/universe sqlalchemy-i18n 1.1.0-1build1 (diff) [4212 B] 488s gpgv: Signature made Wed Jan 18 23:54:36 2023 UTC 488s gpgv: using RSA key 439884E6862A429C290DF63B033C4CA276024834 488s gpgv: issuer "athos.ribeiro@canonical.com" 488s gpgv: Can't check signature: No public key 488s dpkg-source: warning: cannot verify inline signature for ./sqlalchemy-i18n_1.1.0-1build1.dsc: no acceptable signature found 488s autopkgtest [11:07:45]: testing package sqlalchemy-i18n version 1.1.0-1build1 488s autopkgtest [11:07:45]: build not needed 489s autopkgtest [11:07:46]: test setup-db-and-run-tests.py: preparing testbed 490s Reading package lists... 491s Building dependency tree... 491s Reading state information... 491s Starting pkgProblemResolver with broken count: 0 491s Starting 2 pkgProblemResolver with broken count: 0 491s Done 491s The following additional packages will be installed: 491s libjs-jquery libjs-sphinxdoc libjs-underscore libjson-perl libpq5 libxslt1.1 491s postgresql postgresql-16 postgresql-client-16 postgresql-client-common 491s postgresql-common python3-arrow python3-dateutil python3-greenlet 491s python3-iniconfig python3-packaging python3-pluggy python3-psycopg2 491s python3-pytest python3-six python3-sqlalchemy python3-sqlalchemy-i18n 491s python3-sqlalchemy-utils ssl-cert 491s Suggested packages: 491s postgresql-doc postgresql-doc-16 python-arrow-doc python-greenlet-dev 491s python-greenlet-doc python-psycopg2-doc python-sqlalchemy-doc 491s python3-asyncpg python3-pg8000 python3-psycopg2cffi python3-aiosqlite 491s python3-mariadb-connector python3-mysqldb python3-mysql.connector 491s python3-pyodbc python3-pymssql python3-cx-oracle python3-oracledb 491s python-sqlalchemy-utils-doc python3-infinity python3-intervals 491s Recommended packages: 491s javascript-common libjson-xs-perl python3-sqlalchemy-ext 491s The following NEW packages will be installed: 491s autopkgtest-satdep libjs-jquery libjs-sphinxdoc libjs-underscore 491s libjson-perl libpq5 libxslt1.1 postgresql postgresql-16 postgresql-client-16 491s postgresql-client-common postgresql-common python3-arrow python3-dateutil 491s python3-greenlet python3-iniconfig python3-packaging python3-pluggy 491s python3-psycopg2 python3-pytest python3-six python3-sqlalchemy 491s python3-sqlalchemy-i18n python3-sqlalchemy-utils ssl-cert 491s 0 upgraded, 25 newly installed, 0 to remove and 0 not upgraded. 491s Need to get 21.5 MB/21.5 MB of archives. 491s After this operation, 77.9 MB of additional disk space will be used. 491s Get:1 /tmp/autopkgtest.xUsyLr/1-autopkgtest-satdep.deb autopkgtest-satdep ppc64el 0 [744 B] 491s Get:2 http://ftpmaster.internal/ubuntu plucky/main ppc64el libjson-perl all 4.10000-1 [81.9 kB] 492s Get:3 http://ftpmaster.internal/ubuntu plucky/main ppc64el postgresql-client-common all 262 [36.7 kB] 492s Get:4 http://ftpmaster.internal/ubuntu plucky/main ppc64el ssl-cert all 1.1.2ubuntu2 [18.0 kB] 492s Get:5 http://ftpmaster.internal/ubuntu plucky/main ppc64el postgresql-common all 262 [162 kB] 492s Get:6 http://ftpmaster.internal/ubuntu plucky/main ppc64el libjs-jquery all 3.6.1+dfsg+~3.5.14-1 [328 kB] 492s Get:7 http://ftpmaster.internal/ubuntu plucky/main ppc64el libjs-underscore all 1.13.4~dfsg+~1.11.4-3 [118 kB] 492s Get:8 http://ftpmaster.internal/ubuntu plucky/main ppc64el libjs-sphinxdoc all 7.4.7-4 [158 kB] 492s Get:9 http://ftpmaster.internal/ubuntu plucky/main ppc64el libpq5 ppc64el 17.0-1 [280 kB] 492s Get:10 http://ftpmaster.internal/ubuntu plucky/main ppc64el libxslt1.1 ppc64el 1.1.39-0exp1ubuntu1 [191 kB] 492s Get:11 http://ftpmaster.internal/ubuntu plucky/main ppc64el postgresql-client-16 ppc64el 16.4-3 [1400 kB] 492s Get:12 http://ftpmaster.internal/ubuntu plucky/main ppc64el postgresql-16 ppc64el 16.4-3 [16.6 MB] 492s Get:13 http://ftpmaster.internal/ubuntu plucky/main ppc64el postgresql all 16+262 [11.8 kB] 492s Get:14 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-six all 1.16.0-7 [13.1 kB] 492s Get:15 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-dateutil all 2.9.0-2 [80.3 kB] 492s Get:16 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-arrow all 1.3.0-1.1ubuntu1 [56.1 kB] 492s Get:17 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-iniconfig all 1.1.1-2 [6024 B] 492s Get:18 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-packaging all 24.1-1 [41.4 kB] 492s Get:19 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-pluggy all 1.5.0-1 [21.0 kB] 492s Get:20 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-psycopg2 ppc64el 2.9.9-2 [149 kB] 492s Get:21 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-pytest all 8.3.3-1 [251 kB] 492s Get:22 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-greenlet ppc64el 3.0.3-0ubuntu6 [164 kB] 493s Get:23 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-sqlalchemy all 2.0.32+ds1-1ubuntu1 [1206 kB] 493s Get:24 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-sqlalchemy-utils all 0.41.1-0ubuntu1 [59.4 kB] 493s Get:25 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-sqlalchemy-i18n all 1.1.0-1build1 [26.7 kB] 493s Preconfiguring packages ... 493s Fetched 21.5 MB in 1s (16.9 MB/s) 493s Selecting previously unselected package libjson-perl. 493s (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 ... 73774 files and directories currently installed.) 493s Preparing to unpack .../00-libjson-perl_4.10000-1_all.deb ... 493s Unpacking libjson-perl (4.10000-1) ... 493s Selecting previously unselected package postgresql-client-common. 493s Preparing to unpack .../01-postgresql-client-common_262_all.deb ... 493s Unpacking postgresql-client-common (262) ... 493s Selecting previously unselected package ssl-cert. 493s Preparing to unpack .../02-ssl-cert_1.1.2ubuntu2_all.deb ... 493s Unpacking ssl-cert (1.1.2ubuntu2) ... 493s Selecting previously unselected package postgresql-common. 493s Preparing to unpack .../03-postgresql-common_262_all.deb ... 493s Adding 'diversion of /usr/bin/pg_config to /usr/bin/pg_config.libpq-dev by postgresql-common' 493s Unpacking postgresql-common (262) ... 493s Selecting previously unselected package libjs-jquery. 493s Preparing to unpack .../04-libjs-jquery_3.6.1+dfsg+~3.5.14-1_all.deb ... 493s Unpacking libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 493s Selecting previously unselected package libjs-underscore. 493s Preparing to unpack .../05-libjs-underscore_1.13.4~dfsg+~1.11.4-3_all.deb ... 493s Unpacking libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 493s Selecting previously unselected package libjs-sphinxdoc. 493s Preparing to unpack .../06-libjs-sphinxdoc_7.4.7-4_all.deb ... 493s Unpacking libjs-sphinxdoc (7.4.7-4) ... 493s Selecting previously unselected package libpq5:ppc64el. 493s Preparing to unpack .../07-libpq5_17.0-1_ppc64el.deb ... 493s Unpacking libpq5:ppc64el (17.0-1) ... 493s Selecting previously unselected package libxslt1.1:ppc64el. 493s Preparing to unpack .../08-libxslt1.1_1.1.39-0exp1ubuntu1_ppc64el.deb ... 493s Unpacking libxslt1.1:ppc64el (1.1.39-0exp1ubuntu1) ... 493s Selecting previously unselected package postgresql-client-16. 493s Preparing to unpack .../09-postgresql-client-16_16.4-3_ppc64el.deb ... 493s Unpacking postgresql-client-16 (16.4-3) ... 493s Selecting previously unselected package postgresql-16. 493s Preparing to unpack .../10-postgresql-16_16.4-3_ppc64el.deb ... 493s Unpacking postgresql-16 (16.4-3) ... 494s Selecting previously unselected package postgresql. 494s Preparing to unpack .../11-postgresql_16+262_all.deb ... 494s Unpacking postgresql (16+262) ... 494s Selecting previously unselected package python3-six. 494s Preparing to unpack .../12-python3-six_1.16.0-7_all.deb ... 494s Unpacking python3-six (1.16.0-7) ... 494s Selecting previously unselected package python3-dateutil. 494s Preparing to unpack .../13-python3-dateutil_2.9.0-2_all.deb ... 494s Unpacking python3-dateutil (2.9.0-2) ... 494s Selecting previously unselected package python3-arrow. 494s Preparing to unpack .../14-python3-arrow_1.3.0-1.1ubuntu1_all.deb ... 494s Unpacking python3-arrow (1.3.0-1.1ubuntu1) ... 494s Selecting previously unselected package python3-iniconfig. 494s Preparing to unpack .../15-python3-iniconfig_1.1.1-2_all.deb ... 494s Unpacking python3-iniconfig (1.1.1-2) ... 494s Selecting previously unselected package python3-packaging. 494s Preparing to unpack .../16-python3-packaging_24.1-1_all.deb ... 494s Unpacking python3-packaging (24.1-1) ... 494s Selecting previously unselected package python3-pluggy. 494s Preparing to unpack .../17-python3-pluggy_1.5.0-1_all.deb ... 494s Unpacking python3-pluggy (1.5.0-1) ... 494s Selecting previously unselected package python3-psycopg2. 494s Preparing to unpack .../18-python3-psycopg2_2.9.9-2_ppc64el.deb ... 494s Unpacking python3-psycopg2 (2.9.9-2) ... 494s Selecting previously unselected package python3-pytest. 494s Preparing to unpack .../19-python3-pytest_8.3.3-1_all.deb ... 494s Unpacking python3-pytest (8.3.3-1) ... 494s Selecting previously unselected package python3-greenlet. 494s Preparing to unpack .../20-python3-greenlet_3.0.3-0ubuntu6_ppc64el.deb ... 494s Unpacking python3-greenlet (3.0.3-0ubuntu6) ... 494s Selecting previously unselected package python3-sqlalchemy. 494s Preparing to unpack .../21-python3-sqlalchemy_2.0.32+ds1-1ubuntu1_all.deb ... 494s Unpacking python3-sqlalchemy (2.0.32+ds1-1ubuntu1) ... 494s Selecting previously unselected package python3-sqlalchemy-utils. 494s Preparing to unpack .../22-python3-sqlalchemy-utils_0.41.1-0ubuntu1_all.deb ... 494s Unpacking python3-sqlalchemy-utils (0.41.1-0ubuntu1) ... 494s Selecting previously unselected package python3-sqlalchemy-i18n. 494s Preparing to unpack .../23-python3-sqlalchemy-i18n_1.1.0-1build1_all.deb ... 494s Unpacking python3-sqlalchemy-i18n (1.1.0-1build1) ... 494s Selecting previously unselected package autopkgtest-satdep. 494s Preparing to unpack .../24-1-autopkgtest-satdep.deb ... 494s Unpacking autopkgtest-satdep (0) ... 494s Setting up postgresql-client-common (262) ... 494s Setting up python3-iniconfig (1.1.1-2) ... 494s Setting up libpq5:ppc64el (17.0-1) ... 494s Setting up python3-six (1.16.0-7) ... 495s Setting up python3-packaging (24.1-1) ... 495s Setting up ssl-cert (1.1.2ubuntu2) ... 495s Created symlink '/etc/systemd/system/multi-user.target.wants/ssl-cert.service' → '/usr/lib/systemd/system/ssl-cert.service'. 496s Setting up python3-greenlet (3.0.3-0ubuntu6) ... 496s Setting up python3-psycopg2 (2.9.9-2) ... 496s Setting up python3-pluggy (1.5.0-1) ... 496s Setting up libjson-perl (4.10000-1) ... 496s Setting up libxslt1.1:ppc64el (1.1.39-0exp1ubuntu1) ... 496s Setting up python3-dateutil (2.9.0-2) ... 496s Setting up libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 496s Setting up libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 496s Setting up python3-arrow (1.3.0-1.1ubuntu1) ... 496s Setting up python3-pytest (8.3.3-1) ... 497s Setting up postgresql-client-16 (16.4-3) ... 497s 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 497s Setting up python3-sqlalchemy (2.0.32+ds1-1ubuntu1) ... 499s Setting up postgresql-common (262) ... 500s 500s Creating config file /etc/postgresql-common/createcluster.conf with new version 500s Building PostgreSQL dictionaries from installed myspell/hunspell packages... 500s Removing obsolete dictionary files: 501s Created symlink '/etc/systemd/system/multi-user.target.wants/postgresql.service' → '/usr/lib/systemd/system/postgresql.service'. 501s Setting up libjs-sphinxdoc (7.4.7-4) ... 501s Setting up python3-sqlalchemy-utils (0.41.1-0ubuntu1) ... 501s Setting up python3-sqlalchemy-i18n (1.1.0-1build1) ... 501s Setting up postgresql-16 (16.4-3) ... 502s Creating new PostgreSQL cluster 16/main ... 502s /usr/lib/postgresql/16/bin/initdb -D /var/lib/postgresql/16/main --auth-local peer --auth-host scram-sha-256 --no-instructions 502s The files belonging to this database system will be owned by user "postgres". 502s This user must also own the server process. 502s 502s The database cluster will be initialized with locale "C.UTF-8". 502s The default database encoding has accordingly been set to "UTF8". 502s The default text search configuration will be set to "english". 502s 502s Data page checksums are disabled. 502s 502s fixing permissions on existing directory /var/lib/postgresql/16/main ... ok 502s creating subdirectories ... ok 502s selecting dynamic shared memory implementation ... posix 502s selecting default max_connections ... 100 502s selecting default shared_buffers ... 128MB 502s selecting default time zone ... Etc/UTC 502s creating configuration files ... ok 502s running bootstrap script ... ok 503s performing post-bootstrap initialization ... ok 503s syncing data to disk ... ok 506s Setting up postgresql (16+262) ... 506s Setting up autopkgtest-satdep (0) ... 506s Processing triggers for man-db (2.12.1-3) ... 508s Processing triggers for libc-bin (2.40-1ubuntu3) ... 512s (Reading database ... 76558 files and directories currently installed.) 512s Removing autopkgtest-satdep (0) ... 513s autopkgtest [11:08:10]: test setup-db-and-run-tests.py: [----------------------- 514s The files belonging to this database system will be owned by user "ubuntu". 514s This user must also own the server process. 514s 514s The database cluster will be initialized with this locale configuration: 514s provider: libc 514s LC_COLLATE: C.UTF-8 514s LC_CTYPE: C.UTF-8 514s LC_MESSAGES: C 514s LC_MONETARY: C.UTF-8 514s LC_NUMERIC: C.UTF-8 514s LC_TIME: C.UTF-8 514s The default database encoding has accordingly been set to "UTF8". 514s The default text search configuration will be set to "english". 514s 514s Data page checksums are disabled. 514s 514s creating directory /tmp/tmp3m8b5y7f/data ... ok 514s creating subdirectories ... ok 514s selecting dynamic shared memory implementation ... posix 514s selecting default max_connections ... 100 514s selecting default shared_buffers ... 128MB 514s selecting default time zone ... Etc/UTC 514s creating configuration files ... ok 514s running bootstrap script ... ok 514s performing post-bootstrap initialization ... ok 515s syncing data to disk ... ok 515s 515s Success. You can now start the database server using: 515s 515s /usr/lib/postgresql/16/bin/pg_ctl -D /tmp/tmp3m8b5y7f/data -l logfile start 515s 515s 2024-11-13 11:08:12.042 UTC [4557] 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 515s 2024-11-13 11:08:12.043 UTC [4557] LOG: listening on IPv6 address "::1", port 50681 515s 2024-11-13 11:08:12.043 UTC [4557] LOG: listening on IPv4 address "127.0.0.1", port 50681 515s 2024-11-13 11:08:12.043 UTC [4557] LOG: listening on Unix socket "/tmp/tmp3m8b5y7f/tmp/.s.PGSQL.50681" 515s 2024-11-13 11:08:12.045 UTC [4560] LOG: database system was shut down at 2024-11-13 11:08:11 UTC 515s 2024-11-13 11:08:12.049 UTC [4557] LOG: database system is ready to accept connections 516s running initdb 516s starting server 516s ============================= test session starts ============================== 516s platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 516s rootdir: /tmp/autopkgtest.xUsyLr/build.kIZ/src 516s plugins: typeguard-4.4.1 516s collected 119 items 516s 516s tests/test_common_base_class.py EE [ 1%] 517s tests/test_comparator.py EEEE [ 5%] 517s tests/test_composite_primary_key.py EE [ 6%] 518s tests/test_configuration.py EE [ 8%] 519s tests/test_current_translation_property.py EEEEEE [ 13%] 519s tests/test_current_translation_property_with_locale.py EE [ 15%] 520s tests/test_custom_base_class.py E [ 15%] 520s tests/test_expressions.py . [ 16%] 520s tests/test_fallback_locale_as_callable.py EEEE [ 20%] 521s tests/test_fallback_locale_without_class_default.py EEEE [ 23%] 522s tests/test_fallback_translation.py EEEEEE [ 28%] 523s tests/test_find_translations.py EEEE [ 31%] 523s tests/test_hybrid_property_as_dynamic_source_locale.py EE [ 33%] 524s tests/test_hybrid_property_exclusion.py FE [ 35%] 525s tests/test_join_expressions.py EEEEEEEE [ 42%] 527s tests/test_joined_loading.py EEEEEEEEEE [ 50%] 530s tests/test_joined_table_inheritance.py EEEEEEEEEEEEEEEE [ 63%] 530s tests/test_property_collision.py . [ 64%] 531s tests/test_relationships.py EE [ 66%] 534s tests/test_translatable.py EEEEEEEEEEEEEEEE [ 79%] 535s tests/test_translation_auto_creation.py EE [ 81%] 535s tests/test_translation_auto_creation_with_non_nullables.py EE [ 83%] 536s tests/test_translation_mapping.py EEEE2024-11-13 11:08:33.788 UTC [4667] FATAL: sorry, too many clients already 537s E2024-11-13 11:08:34.178 UTC [4668] FATAL: sorry, too many clients already 537s E2024-11-13 11:08:34.577 UTC [4669] FATAL: sorry, too many clients already 538s E2024-11-13 11:08:35.008 UTC [4670] FATAL: sorry, too many clients already 538s E2024-11-13 11:08:35.414 UTC [4671] FATAL: sorry, too many clients already 538s E2024-11-13 11:08:35.829 UTC [4672] FATAL: sorry, too many clients already 539s E2024-11-13 11:08:36.282 UTC [4673] FATAL: sorry, too many clients already 539s E2024-11-13 11:08:36.687 UTC [4674] FATAL: sorry, too many clients already 540s E2024-11-13 11:08:37.097 UTC [4675] FATAL: sorry, too many clients already 540s E2024-11-13 11:08:37.493 UTC [4676] FATAL: sorry, too many clients already 540s E2024-11-13 11:08:37.880 UTC [4677] FATAL: sorry, too many clients already 541s E2024-11-13 11:08:38.361 UTC [4678] FATAL: sorry, too many clients already 541s E2024-11-13 11:08:38.766 UTC [4679] FATAL: sorry, too many clients already 542s E2024-11-13 11:08:39.172 UTC [4680] FATAL: sorry, too many clients already 542s E2024-11-13 11:08:39.578 UTC [4681] FATAL: sorry, too many clients already 543s E2024-11-13 11:08:40.009 UTC [4682] FATAL: sorry, too many clients already 543s E [100%] 543s 543s ==================================== ERRORS ==================================== 543s _ ERROR at setup of TestDeclarative.test_translatable_dict_copied_to_each_child_class _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'TextItem' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s _ ERROR at setup of TestClassic.test_translatable_dict_copied_to_each_child_class _ 543s 543s self = 543s 543s def create_mappers(self): 543s > sa.orm.mapper(self.TextItem, self.textitems) 543s 543s tests/test_common_base_class.py:105: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.TextItem'>, Table('textitems', MetaData(), Column('id', Integer(), table=, primary_key=True, nullable=False), schema=None)) 543s kw = {} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s _ ERROR at setup of TestDeclarative.test_attribute_accessor_for_unknown_locale _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s __________ ERROR at setup of TestDeclarative.test_attribute_accessors __________ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s ___ ERROR at setup of TestClassic.test_attribute_accessor_for_unknown_locale ___ 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.metadata = sa.MetaData() 543s 543s self.engine = sa.create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s 543s self.create_tables() 543s self.create_models() 543s > self.create_mappers() 543s 543s tests/__init__.py:140: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:213: in create_mappers 543s sa.orm.mapper(self.Article, self.article) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 543s kw = {} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s ____________ ERROR at setup of TestClassic.test_attribute_accessors ____________ 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.metadata = sa.MetaData() 543s 543s self.engine = sa.create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s 543s self.create_tables() 543s self.create_models() 543s > self.create_mappers() 543s 543s tests/__init__.py:140: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:213: in create_mappers 543s sa.orm.mapper(self.Article, self.article) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 543s kw = {} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s _____________ ERROR at setup of TestDeclarative.test_relationships _____________ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s _______________ ERROR at setup of TestClassic.test_relationships _______________ 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.metadata = sa.MetaData() 543s 543s self.engine = sa.create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s 543s self.create_tables() 543s self.create_models() 543s > self.create_mappers() 543s 543s tests/__init__.py:140: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:213: in create_mappers 543s sa.orm.mapper(self.Article, self.article) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.Article'>, Table('article', MetaData(), C...y_key=True, nullable=False), Column('id2', Integer(), table=
, primary_key=True, nullable=False), schema=None)) 543s kw = {} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s _ ERROR at setup of TestTranslationBaseCustomization.test_customize_foreign_key_args _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['fi', 'en'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s _ ERROR at setup of TestTranslationBaseCustomization.test_customize_relationships_args _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['fi', 'en'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s __________ ERROR at setup of TestDeclarative.test_as_object_property ___________ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['fi', 'en'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s ___________ ERROR at setup of TestDeclarative.test_as_class_property ___________ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s ________________ ERROR at setup of TestDeclarative.test_setter _________________ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s ____________ ERROR at setup of TestClassic.test_as_object_property _____________ 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.metadata = sa.MetaData() 543s 543s self.engine = sa.create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s 543s self.create_tables() 543s self.create_models() 543s > self.create_mappers() 543s 543s tests/__init__.py:140: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:213: in create_mappers 543s sa.orm.mapper(self.Article, self.article) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 543s kw = {} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s _____________ ERROR at setup of TestClassic.test_as_class_property _____________ 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.metadata = sa.MetaData() 543s 543s self.engine = sa.create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s 543s self.create_tables() 543s self.create_models() 543s > self.create_mappers() 543s 543s tests/__init__.py:140: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:213: in create_mappers 543s sa.orm.mapper(self.Article, self.article) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 543s kw = {} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s __________________ ERROR at setup of TestClassic.test_setter ___________________ 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.metadata = sa.MetaData() 543s 543s self.engine = sa.create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s 543s self.create_tables() 543s self.create_models() 543s > self.create_mappers() 543s 543s tests/__init__.py:140: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:213: in create_mappers 543s sa.orm.mapper(self.Article, self.article) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 543s kw = {} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s ___ ERROR at setup of TestDeclarative.test_converts_locale_object_to_unicode ___ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s _____ ERROR at setup of TestClassic.test_converts_locale_object_to_unicode _____ 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.metadata = sa.MetaData() 543s 543s self.engine = sa.create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s 543s self.create_tables() 543s self.create_models() 543s > self.create_mappers() 543s 543s tests/__init__.py:140: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:213: in create_mappers 543s sa.orm.mapper(self.Article, self.article) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.Article'>, Table('arti...able=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 543s kw = {} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s _ ERROR at setup of TestDeclarative.test_translatable_dict_copied_to_each_child_class _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s _ ERROR at setup of TestDeclarative.test_hybrid_properties_support_callable_fallback_locales _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s ____________ ERROR at setup of TestDeclarative.test_locale_fallback ____________ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s _ ERROR at setup of TestClassic.test_hybrid_properties_support_callable_fallback_locales _ 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.metadata = sa.MetaData() 543s 543s self.engine = sa.create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s 543s self.create_tables() 543s self.create_models() 543s > self.create_mappers() 543s 543s tests/__init__.py:140: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:213: in create_mappers 543s sa.orm.mapper(self.Article, self.article) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.Article'>, Table('article', MetaDat...able=False), Column('locale', CHAR(length=2), table=
, default=ScalarElementColumnDefault('en')), schema=None)) 543s kw = {} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s ______________ ERROR at setup of TestClassic.test_locale_fallback ______________ 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.metadata = sa.MetaData() 543s 543s self.engine = sa.create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s 543s self.create_tables() 543s self.create_models() 543s > self.create_mappers() 543s 543s tests/__init__.py:140: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:213: in create_mappers 543s sa.orm.mapper(self.Article, self.article) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.Article'>, Table('article', MetaDat...able=False), Column('locale', CHAR(length=2), table=
, default=ScalarElementColumnDefault('en')), schema=None)) 543s kw = {} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s _ ERROR at setup of TestDeclarative.test_hybrid_properties_support_callable_fallback_locales _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s ____________ ERROR at setup of TestDeclarative.test_locale_fallback ____________ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s _ ERROR at setup of TestClassic.test_hybrid_properties_support_callable_fallback_locales _ 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.metadata = sa.MetaData() 543s 543s self.engine = sa.create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s 543s self.create_tables() 543s self.create_models() 543s > self.create_mappers() 543s 543s tests/__init__.py:140: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:213: in create_mappers 543s sa.orm.mapper(self.Article, self.article) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.Article'>, Table('article...able=False), Column('locale', CHAR(length=2), table=
, default=ScalarElementColumnDefault('en')), schema=None)) 543s kw = {} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s ______________ ERROR at setup of TestClassic.test_locale_fallback ______________ 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.metadata = sa.MetaData() 543s 543s self.engine = sa.create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s 543s self.create_tables() 543s self.create_models() 543s > self.create_mappers() 543s 543s tests/__init__.py:140: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:213: in create_mappers 543s sa.orm.mapper(self.Article, self.article) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.Article'>, Table('article...able=False), Column('locale', CHAR(length=2), table=
, default=ScalarElementColumnDefault('en')), schema=None)) 543s kw = {} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s _ ERROR at setup of TestDeclarative.test_as_object_property_with_force_locale __ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s ___________ ERROR at setup of TestDeclarative.test_as_class_property ___________ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s ________________ ERROR at setup of TestDeclarative.test_setter _________________ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s ___ ERROR at setup of TestClassic.test_as_object_property_with_force_locale ____ 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.metadata = sa.MetaData() 543s 543s self.engine = sa.create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s 543s self.create_tables() 543s self.create_models() 543s > self.create_mappers() 543s 543s tests/__init__.py:140: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:213: in create_mappers 543s sa.orm.mapper(self.Article, self.article) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 543s kw = {} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s _____________ ERROR at setup of TestClassic.test_as_class_property _____________ 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.metadata = sa.MetaData() 543s 543s self.engine = sa.create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s 543s self.create_tables() 543s self.create_models() 543s > self.create_mappers() 543s 543s tests/__init__.py:140: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:213: in create_mappers 543s sa.orm.mapper(self.Article, self.article) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 543s kw = {} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s __________________ ERROR at setup of TestClassic.test_setter ___________________ 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.metadata = sa.MetaData() 543s 543s self.engine = sa.create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s 543s self.create_tables() 543s self.create_models() 543s > self.create_mappers() 543s 543s tests/__init__.py:140: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:213: in create_mappers 543s sa.orm.mapper(self.Article, self.article) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 543s kw = {} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s _________ ERROR at setup of TestDeclarative.test_with_full_confidence __________ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s ________ ERROR at setup of TestDeclarative.test_with_varying_confidence ________ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi', 'sv'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s ___________ ERROR at setup of TestClassic.test_with_full_confidence ____________ 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.metadata = sa.MetaData() 543s 543s self.engine = sa.create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s 543s self.create_tables() 543s self.create_models() 543s > self.create_mappers() 543s 543s tests/__init__.py:140: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:213: in create_mappers 543s sa.orm.mapper(self.Article, self.article) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 543s kw = {} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s __________ ERROR at setup of TestClassic.test_with_varying_confidence __________ 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.metadata = sa.MetaData() 543s 543s self.engine = sa.create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s 543s self.create_tables() 543s self.create_models() 543s > self.create_mappers() 543s 543s tests/__init__.py:140: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:213: in create_mappers 543s sa.orm.mapper(self.Article, self.article) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 543s kw = {} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s __ ERROR at setup of TestDeclarative.test_joinedload_for_current_translation ___ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s > DeclarativeTestCase.setup_method(self, method) 543s 543s tests/test_hybrid_property_as_dynamic_source_locale.py:25: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:57: in setup_method 543s sa.orm.configure_mappers() 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi', 'sv'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s ____ ERROR at setup of TestClassic.test_joinedload_for_current_translation _____ 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s > ClassicTestCase.setup_method(self, method) 543s 543s tests/test_hybrid_property_as_dynamic_source_locale.py:61: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:140: in setup_method 543s self.create_mappers() 543s tests/__init__.py:213: in create_mappers 543s sa.orm.mapper(self.Article, self.article) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.Article'>, Table('arti...
), Column('_locale', CHAR(length=2), table=
, default=ScalarElementColumnDefault('en')), schema=None)) 543s kw = {} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s ____ ERROR at setup of TestClassic.test_does_not_generate_hybrid_properties ____ 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.metadata = sa.MetaData() 543s 543s self.engine = sa.create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s 543s self.create_tables() 543s self.create_models() 543s > self.create_mappers() 543s 543s tests/__init__.py:140: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:213: in create_mappers 543s sa.orm.mapper(self.Article, self.article) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.Article'>, Table('article', MetaData(...e=
, default=ScalarElementColumnDefault('en')), Column('word_count', Integer(), table=
), schema=None)) 543s kw = {} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s ___ ERROR at setup of TestDeclarative.test_current_translation_as_expression ___ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s _________ ERROR at setup of TestDeclarative.test_order_by_translation __________ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s _____ ERROR at setup of TestDeclarative.test_fallback_locale_as_expression _____ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s _______________ ERROR at setup of TestDeclarative.test_querying ________________ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s _____ ERROR at setup of TestClassic.test_current_translation_as_expression _____ 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.metadata = sa.MetaData() 543s 543s self.engine = sa.create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s 543s self.create_tables() 543s self.create_models() 543s > self.create_mappers() 543s 543s tests/__init__.py:140: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:213: in create_mappers 543s sa.orm.mapper(self.Article, self.article) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 543s kw = {} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s ___________ ERROR at setup of TestClassic.test_order_by_translation ____________ 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.metadata = sa.MetaData() 543s 543s self.engine = sa.create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s 543s self.create_tables() 543s self.create_models() 543s > self.create_mappers() 543s 543s tests/__init__.py:140: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:213: in create_mappers 543s sa.orm.mapper(self.Article, self.article) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 543s kw = {} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s _______ ERROR at setup of TestClassic.test_fallback_locale_as_expression _______ 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.metadata = sa.MetaData() 543s 543s self.engine = sa.create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s 543s self.create_tables() 543s self.create_models() 543s > self.create_mappers() 543s 543s tests/__init__.py:140: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:213: in create_mappers 543s sa.orm.mapper(self.Article, self.article) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 543s kw = {} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s _________________ ERROR at setup of TestClassic.test_querying __________________ 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.metadata = sa.MetaData() 543s 543s self.engine = sa.create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s 543s self.create_tables() 543s self.create_models() 543s > self.create_mappers() 543s 543s tests/__init__.py:140: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:213: in create_mappers 543s sa.orm.mapper(self.Article, self.article) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 543s kw = {} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s __ ERROR at setup of TestDeclarative.test_joinedload_for_current_translation ___ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s > DeclarativeTestCase.setup_method(self, method) 543s 543s tests/test_joined_loading.py:59: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:57: in setup_method 543s sa.orm.configure_mappers() 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s _ ERROR at setup of TestDeclarative.test_contains_eager_for_current_translation _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s > DeclarativeTestCase.setup_method(self, method) 543s 543s tests/test_joined_loading.py:59: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:57: in setup_method 543s sa.orm.configure_mappers() 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s ___ ERROR at setup of TestDeclarative.test_joinedload_for_single_translation ___ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s > DeclarativeTestCase.setup_method(self, method) 543s 543s tests/test_joined_loading.py:59: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:57: in setup_method 543s sa.orm.configure_mappers() 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s _____ ERROR at setup of TestDeclarative.test_joinedload_for_attr_accessor ______ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s > DeclarativeTestCase.setup_method(self, method) 543s 543s tests/test_joined_loading.py:59: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:57: in setup_method 543s sa.orm.configure_mappers() 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s ____ ERROR at setup of TestDeclarative.test_joinedload_for_all_translations ____ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s > DeclarativeTestCase.setup_method(self, method) 543s 543s tests/test_joined_loading.py:59: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:57: in setup_method 543s sa.orm.configure_mappers() 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s ____ ERROR at setup of TestClassic.test_joinedload_for_current_translation _____ 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s > ClassicTestCase.setup_method(self, method) 543s 543s tests/test_joined_loading.py:71: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:140: in setup_method 543s self.create_mappers() 543s tests/__init__.py:213: in create_mappers 543s sa.orm.mapper(self.Article, self.article) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 543s kw = {} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s __ ERROR at setup of TestClassic.test_contains_eager_for_current_translation ___ 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s > ClassicTestCase.setup_method(self, method) 543s 543s tests/test_joined_loading.py:71: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:140: in setup_method 543s self.create_mappers() 543s tests/__init__.py:213: in create_mappers 543s sa.orm.mapper(self.Article, self.article) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 543s kw = {} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s _____ ERROR at setup of TestClassic.test_joinedload_for_single_translation _____ 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s > ClassicTestCase.setup_method(self, method) 543s 543s tests/test_joined_loading.py:71: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:140: in setup_method 543s self.create_mappers() 543s tests/__init__.py:213: in create_mappers 543s sa.orm.mapper(self.Article, self.article) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 543s kw = {} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s _______ ERROR at setup of TestClassic.test_joinedload_for_attr_accessor ________ 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s > ClassicTestCase.setup_method(self, method) 543s 543s tests/test_joined_loading.py:71: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:140: in setup_method 543s self.create_mappers() 543s tests/__init__.py:213: in create_mappers 543s sa.orm.mapper(self.Article, self.article) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 543s kw = {} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s ______ ERROR at setup of TestClassic.test_joinedload_for_all_translations ______ 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s > ClassicTestCase.setup_method(self, method) 543s 543s tests/test_joined_loading.py:71: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:140: in setup_method 543s self.create_mappers() 543s tests/__init__.py:213: in create_mappers 543s sa.orm.mapper(self.Article, self.article) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 543s kw = {} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s ________ ERROR at setup of TestDeclarative.test_auto_creates_relations _________ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 543s mapper._adapt_inherited_property(key, prop, init) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 543s self._configure_property(key, prop, init=False, setparent=False) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 543s prop.instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 543s attributes.register_descriptor( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 543s descriptor = InstrumentedAttribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 543s self.dispatch._update(base[key].dispatch) 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s ___ ERROR at setup of TestDeclarative.test_auto_creates_current_translation ____ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 543s mapper._adapt_inherited_property(key, prop, init) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 543s self._configure_property(key, prop, init=False, setparent=False) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 543s prop.instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 543s attributes.register_descriptor( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 543s descriptor = InstrumentedAttribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 543s self.dispatch._update(base[key].dispatch) 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s ________ ERROR at setup of TestDeclarative.test_translatable_attributes ________ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 543s mapper._adapt_inherited_property(key, prop, init) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 543s self._configure_property(key, prop, init=False, setparent=False) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 543s prop.instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 543s attributes.register_descriptor( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 543s descriptor = InstrumentedAttribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 543s self.dispatch._update(base[key].dispatch) 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s _______ ERROR at setup of TestDeclarative.test_inherits_child_properties _______ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 543s mapper._adapt_inherited_property(key, prop, init) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 543s self._configure_property(key, prop, init=False, setparent=False) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 543s prop.instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 543s attributes.register_descriptor( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 543s descriptor = InstrumentedAttribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 543s self.dispatch._update(base[key].dispatch) 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s __________ ERROR at setup of TestDeclarative.test_translated_columns ___________ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 543s mapper._adapt_inherited_property(key, prop, init) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 543s self._configure_property(key, prop, init=False, setparent=False) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 543s prop.instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 543s attributes.register_descriptor( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 543s descriptor = InstrumentedAttribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 543s self.dispatch._update(base[key].dispatch) 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s __________ ERROR at setup of TestDeclarative.test_property_delegators __________ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 543s mapper._adapt_inherited_property(key, prop, init) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 543s self._configure_property(key, prop, init=False, setparent=False) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 543s prop.instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 543s attributes.register_descriptor( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 543s descriptor = InstrumentedAttribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 543s self.dispatch._update(base[key].dispatch) 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s ______________ ERROR at setup of TestDeclarative.test_table_name _______________ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 543s mapper._adapt_inherited_property(key, prop, init) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 543s self._configure_property(key, prop, init=False, setparent=False) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 543s prop.instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 543s attributes.register_descriptor( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 543s descriptor = InstrumentedAttribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 543s self.dispatch._update(base[key].dispatch) 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s _________ ERROR at setup of TestDeclarative.test_inherits_parent_table _________ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 543s mapper._adapt_inherited_property(key, prop, init) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 543s self._configure_property(key, prop, init=False, setparent=False) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 543s prop.instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 543s attributes.register_descriptor( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 543s descriptor = InstrumentedAttribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 543s self.dispatch._update(base[key].dispatch) 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s __________ ERROR at setup of TestClassic.test_auto_creates_relations ___________ 543s 543s self = 543s 543s def create_mappers(self): 543s > sa.orm.mapper(self.TextItem, self.text_item, 543s polymorphic_on=self.text_item.c.discriminator) 543s 543s tests/test_joined_table_inheritance.py:155: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 543s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s _____ ERROR at setup of TestClassic.test_auto_creates_current_translation ______ 543s 543s self = 543s 543s def create_mappers(self): 543s > sa.orm.mapper(self.TextItem, self.text_item, 543s polymorphic_on=self.text_item.c.discriminator) 543s 543s tests/test_joined_table_inheritance.py:155: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 543s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s __________ ERROR at setup of TestClassic.test_translatable_attributes __________ 543s 543s self = 543s 543s def create_mappers(self): 543s > sa.orm.mapper(self.TextItem, self.text_item, 543s polymorphic_on=self.text_item.c.discriminator) 543s 543s tests/test_joined_table_inheritance.py:155: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 543s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s _________ ERROR at setup of TestClassic.test_inherits_child_properties _________ 543s 543s self = 543s 543s def create_mappers(self): 543s > sa.orm.mapper(self.TextItem, self.text_item, 543s polymorphic_on=self.text_item.c.discriminator) 543s 543s tests/test_joined_table_inheritance.py:155: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 543s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s ____________ ERROR at setup of TestClassic.test_translated_columns _____________ 543s 543s self = 543s 543s def create_mappers(self): 543s > sa.orm.mapper(self.TextItem, self.text_item, 543s polymorphic_on=self.text_item.c.discriminator) 543s 543s tests/test_joined_table_inheritance.py:155: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 543s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s ____________ ERROR at setup of TestClassic.test_property_delegators ____________ 543s 543s self = 543s 543s def create_mappers(self): 543s > sa.orm.mapper(self.TextItem, self.text_item, 543s polymorphic_on=self.text_item.c.discriminator) 543s 543s tests/test_joined_table_inheritance.py:155: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 543s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s ________________ ERROR at setup of TestClassic.test_table_name _________________ 543s 543s self = 543s 543s def create_mappers(self): 543s > sa.orm.mapper(self.TextItem, self.text_item, 543s polymorphic_on=self.text_item.c.discriminator) 543s 543s tests/test_joined_table_inheritance.py:155: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 543s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s ___________ ERROR at setup of TestClassic.test_inherits_parent_table ___________ 543s 543s self = 543s 543s def create_mappers(self): 543s > sa.orm.mapper(self.TextItem, self.text_item, 543s polymorphic_on=self.text_item.c.discriminator) 543s 543s tests/test_joined_table_inheritance.py:155: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 543s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s ___________ ERROR at setup of TestDeclarative.test_nullify_relation ____________ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Category' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s _____________ ERROR at setup of TestClassic.test_nullify_relation ______________ 543s 543s self = 543s 543s def create_mappers(self): 543s > sa.orm.mapper(self.Article, self.article) 543s 543s tests/test_relationships.py:101: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.Article'>, Table('article', MetaData(), Column('i...), table=
, primary_key=True, nullable=False), Column('content', UnicodeText(), table=
), schema=None)) 543s kw = {} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s ________ ERROR at setup of TestDeclarative.test_auto_creates_relations _________ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s ________ ERROR at setup of TestDeclarative.test_translatable_attributes ________ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s _______ ERROR at setup of TestDeclarative.test_relationship_consistency ________ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s __________ ERROR at setup of TestDeclarative.test_property_delegators __________ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s ____________ ERROR at setup of TestDeclarative.test_commit_session _____________ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s ________________ ERROR at setup of TestDeclarative.test_delete _________________ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s __________ ERROR at setup of TestDeclarative.test_translated_columns ___________ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s _ ERROR at setup of TestDeclarative.test_appends_locale_column_to_translation_table _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s __________ ERROR at setup of TestClassic.test_auto_creates_relations ___________ 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.metadata = sa.MetaData() 543s 543s self.engine = sa.create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s 543s self.create_tables() 543s self.create_models() 543s > self.create_mappers() 543s 543s tests/__init__.py:140: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:213: in create_mappers 543s sa.orm.mapper(self.Article, self.article) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 543s kw = {} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s __________ ERROR at setup of TestClassic.test_translatable_attributes __________ 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.metadata = sa.MetaData() 543s 543s self.engine = sa.create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s 543s self.create_tables() 543s self.create_models() 543s > self.create_mappers() 543s 543s tests/__init__.py:140: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:213: in create_mappers 543s sa.orm.mapper(self.Article, self.article) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 543s kw = {} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s _________ ERROR at setup of TestClassic.test_relationship_consistency __________ 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.metadata = sa.MetaData() 543s 543s self.engine = sa.create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s 543s self.create_tables() 543s self.create_models() 543s > self.create_mappers() 543s 543s tests/__init__.py:140: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:213: in create_mappers 543s sa.orm.mapper(self.Article, self.article) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 543s kw = {} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s ____________ ERROR at setup of TestClassic.test_property_delegators ____________ 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.metadata = sa.MetaData() 543s 543s self.engine = sa.create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s 543s self.create_tables() 543s self.create_models() 543s > self.create_mappers() 543s 543s tests/__init__.py:140: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:213: in create_mappers 543s sa.orm.mapper(self.Article, self.article) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 543s kw = {} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s ______________ ERROR at setup of TestClassic.test_commit_session _______________ 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.metadata = sa.MetaData() 543s 543s self.engine = sa.create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s 543s self.create_tables() 543s self.create_models() 543s > self.create_mappers() 543s 543s tests/__init__.py:140: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:213: in create_mappers 543s sa.orm.mapper(self.Article, self.article) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 543s kw = {} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s __________________ ERROR at setup of TestClassic.test_delete ___________________ 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.metadata = sa.MetaData() 543s 543s self.engine = sa.create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s 543s self.create_tables() 543s self.create_models() 543s > self.create_mappers() 543s 543s tests/__init__.py:140: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:213: in create_mappers 543s sa.orm.mapper(self.Article, self.article) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 543s kw = {} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s ____________ ERROR at setup of TestClassic.test_translated_columns _____________ 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.metadata = sa.MetaData() 543s 543s self.engine = sa.create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s 543s self.create_tables() 543s self.create_models() 543s > self.create_mappers() 543s 543s tests/__init__.py:140: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:213: in create_mappers 543s sa.orm.mapper(self.Article, self.article) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 543s kw = {} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s _ ERROR at setup of TestClassic.test_appends_locale_column_to_translation_table _ 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.metadata = sa.MetaData() 543s 543s self.engine = sa.create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s 543s self.create_tables() 543s self.create_models() 543s > self.create_mappers() 543s 543s tests/__init__.py:140: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:213: in create_mappers 543s sa.orm.mapper(self.Article, self.article) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 543s kw = {} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s ___ ERROR at setup of TestDeclarative.test_auto_creates_translation_objects ____ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s > DeclarativeTestCase.setup_method(self, method) 543s 543s tests/test_translation_auto_creation.py:21: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:57: in setup_method 543s sa.orm.configure_mappers() 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s _____ ERROR at setup of TestClassic.test_auto_creates_translation_objects ______ 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s > ClassicTestCase.setup_method(self, method) 543s 543s tests/test_translation_auto_creation.py:31: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:140: in setup_method 543s self.create_mappers() 543s tests/__init__.py:213: in create_mappers 543s sa.orm.mapper(self.Article, self.article) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 543s kw = {} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s _ ERROR at setup of TestDeclarative.test_auto_sets_nullables_as_empty_strings __ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'ExtendedArticle' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s > DeclarativeTestCase.setup_method(self, method) 543s 543s tests/test_translation_auto_creation_with_non_nullables.py:26: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:57: in setup_method 543s sa.orm.configure_mappers() 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 543s mapper._adapt_inherited_property(key, prop, init) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 543s self._configure_property(key, prop, init=False, setparent=False) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 543s prop.instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 543s attributes.register_descriptor( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 543s descriptor = InstrumentedAttribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 543s self.dispatch._update(base[key].dispatch) 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s ___ ERROR at setup of TestClassic.test_auto_sets_nullables_as_empty_strings ____ 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s > ClassicTestCase.setup_method(self, method) 543s 543s tests/test_translation_auto_creation_with_non_nullables.py:75: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s tests/__init__.py:140: in setup_method 543s self.create_mappers() 543s tests/test_translation_auto_creation_with_non_nullables.py:135: in create_mappers 543s sa.orm.mapper(self.Article, self.article, 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s arg = (.Article'>, Table('...ription', UnicodeText(), table=
), Column('discriminator', Unicode(length=255), table=
), schema=None)) 543s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=
)} 543s 543s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 543s """Placeholder for the now-removed ``mapper()`` function. 543s 543s Classical mappings should be performed using the 543s :meth:`_orm.registry.map_imperatively` method. 543s 543s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 543s of using the ``mapper()`` function as a target for ORM event listeners, 543s which failed to be marked as deprecated in the 1.4 series. 543s 543s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 543s class as the target. 543s 543s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 543s symbol remains temporarily as a placeholder for the event listening 543s use case. 543s 543s """ 543s > raise InvalidRequestError( 543s "The 'sqlalchemy.orm.mapper()' function is removed as of " 543s "SQLAlchemy 2.0. Use the " 543s "'sqlalchemy.orm.registry.map_imperatively()` " 543s "method of the ``sqlalchemy.orm.registry`` class to perform " 543s "classical mapping." 543s ) 543s 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. 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 543s ____________ ERROR at setup of TestDeclarative.test_proxy_contains _____________ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s _ ERROR at setup of TestDeclarative.test_translation_mapping_attribute_getter __ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s _ ERROR at setup of TestDeclarative.test_attribute_accessor_for_unknown_locale _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s __________ ERROR at setup of TestDeclarative.test_proxy_not_contains ___________ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s > return getattr(class_, '_translation_%s' % locale) 543s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 543s 543s sqlalchemy_i18n/comparators.py:13: AttributeError 543s 543s During handling of the above exception, another exception occurred: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s self.connection = self.engine.connect() 543s self.connection.query_count = 0 543s self.Model = declarative_base() 543s 543s self.create_models() 543s 543s if self.configure_mappers: 543s > sa.orm.configure_mappers() 543s 543s tests/__init__.py:57: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 543s _configure_registries(_all_registries(), cascade=True) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 543s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 543s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 543s fn(*args, **kw) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 543s fn(*arg, **kw) 543s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 543s RelationshipBuilder(self, cls)() 543s sqlalchemy_i18n/builders.py:228: in __call__ 543s self.assign_translations() 543s sqlalchemy_i18n/builders.py:186: in assign_translations 543s mapper.add_property('_translations', sa.orm.relationship( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 543s prop = self._configure_property( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 543s prop.post_instrument_class(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 543s self.strategy.init_class_attribute(mapper) 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 543s _register_attribute( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 543s desc = attributes.register_attribute_impl( 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 543s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 543s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 543s if hasattr(obj, "_slots_dispatch"): 543s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 543s return getattr(self.comparator, key) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s self = 543s locale = '_slots_dispatch' 543s 543s def __getattr__(self, locale): 543s class_ = self._parentmapper.class_ 543s try: 543s return getattr(class_, '_translation_%s' % locale) 543s except AttributeError: 543s > raise UnknownLocaleError(locale, class_) 543s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 543s 543s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 543s _________________ ERROR at setup of TestDeclarative.test_items _________________ 543s 543s self = 543s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 543s connection = None, _has_events = None, _allow_revalidate = True 543s _allow_autobegin = True 543s 543s def __init__( 543s self, 543s engine: Engine, 543s connection: Optional[PoolProxiedConnection] = None, 543s _has_events: Optional[bool] = None, 543s _allow_revalidate: bool = True, 543s _allow_autobegin: bool = True, 543s ): 543s """Construct a new Connection.""" 543s self.engine = engine 543s self.dialect = dialect = engine.dialect 543s 543s if connection is None: 543s try: 543s > self._dbapi_connection = engine.raw_connection() 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 543s return self.pool.connect() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 543s return _ConnectionFairy._checkout(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 543s fairy = _ConnectionRecord.checkout(pool) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 543s rec = pool._do_get() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 543s with util.safe_reraise(): 543s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 543s raise exc_value.with_traceback(exc_tb) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 543s return self._create_connection() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 543s return _ConnectionRecord(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 543s self.__connect() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 543s with util.safe_reraise(): 543s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 543s raise exc_value.with_traceback(exc_tb) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 543s self.dbapi_connection = connection = pool._invoke_creator(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 543s return dialect.connect(*cargs, **cparams) 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 543s return self.loaded_dbapi.connect(*cargs, **cparams) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 543s connection_factory = None, cursor_factory = None 543s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 543s kwasync = {} 543s 543s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 543s """ 543s Create a new database connection. 543s 543s The connection parameters can be specified as a string: 543s 543s conn = psycopg2.connect("dbname=test user=postgres password=secret") 543s 543s or using a set of keyword arguments: 543s 543s conn = psycopg2.connect(database="test", user="postgres", password="secret") 543s 543s Or as a mix of both. The basic connection parameters are: 543s 543s - *dbname*: the database name 543s - *database*: the database name (only as keyword argument) 543s - *user*: user name used to authenticate 543s - *password*: password used to authenticate 543s - *host*: database host address (defaults to UNIX socket if not provided) 543s - *port*: connection port number (defaults to 5432 if not provided) 543s 543s Using the *connection_factory* parameter a different class or connections 543s factory can be specified. It should be a callable object taking a dsn 543s argument. 543s 543s Using the *cursor_factory* parameter, a new default cursor factory will be 543s used by cursor(). 543s 543s Using *async*=True an asynchronous connection will be created. *async_* is 543s a valid alias (for Python versions where ``async`` is a keyword). 543s 543s Any other keyword parameter will be passed to the underlying client 543s library: the list of supported parameters depends on the library version. 543s 543s """ 543s kwasync = {} 543s if 'async' in kwargs: 543s kwasync['async'] = kwargs.pop('async') 543s if 'async_' in kwargs: 543s kwasync['async_'] = kwargs.pop('async_') 543s 543s dsn = _ext.make_dsn(dsn, **kwargs) 543s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 543s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 50681 failed: FATAL: sorry, too many clients already 543s 543s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 543s 543s The above exception was the direct cause of the following exception: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s > self.connection = self.engine.connect() 543s 543s tests/__init__.py:50: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 543s return self._connection_cls(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 543s Connection._handle_dbapi_exception_noconnection( 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 543s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 543s self._dbapi_connection = engine.raw_connection() 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 543s return self.pool.connect() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 543s return _ConnectionFairy._checkout(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 543s fairy = _ConnectionRecord.checkout(pool) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 543s rec = pool._do_get() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 543s with util.safe_reraise(): 543s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 543s raise exc_value.with_traceback(exc_tb) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 543s return self._create_connection() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 543s return _ConnectionRecord(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 543s self.__connect() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 543s with util.safe_reraise(): 543s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 543s raise exc_value.with_traceback(exc_tb) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 543s self.dbapi_connection = connection = pool._invoke_creator(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 543s return dialect.connect(*cargs, **cparams) 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 543s return self.loaded_dbapi.connect(*cargs, **cparams) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 543s connection_factory = None, cursor_factory = None 543s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 543s kwasync = {} 543s 543s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 543s """ 543s Create a new database connection. 543s 543s The connection parameters can be specified as a string: 543s 543s conn = psycopg2.connect("dbname=test user=postgres password=secret") 543s 543s or using a set of keyword arguments: 543s 543s conn = psycopg2.connect(database="test", user="postgres", password="secret") 543s 543s Or as a mix of both. The basic connection parameters are: 543s 543s - *dbname*: the database name 543s - *database*: the database name (only as keyword argument) 543s - *user*: user name used to authenticate 543s - *password*: password used to authenticate 543s - *host*: database host address (defaults to UNIX socket if not provided) 543s - *port*: connection port number (defaults to 5432 if not provided) 543s 543s Using the *connection_factory* parameter a different class or connections 543s factory can be specified. It should be a callable object taking a dsn 543s argument. 543s 543s Using the *cursor_factory* parameter, a new default cursor factory will be 543s used by cursor(). 543s 543s Using *async*=True an asynchronous connection will be created. *async_* is 543s a valid alias (for Python versions where ``async`` is a keyword). 543s 543s Any other keyword parameter will be passed to the underlying client 543s library: the list of supported parameters depends on the library version. 543s 543s """ 543s kwasync = {} 543s if 'async' in kwargs: 543s kwasync['async'] = kwargs.pop('async') 543s if 'async_' in kwargs: 543s kwasync['async_'] = kwargs.pop('async_') 543s 543s dsn = _ext.make_dsn(dsn, **kwargs) 543s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 543s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 50681 failed: FATAL: sorry, too many clients already 543s E 543s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 543s 543s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 543s _______________ ERROR at setup of TestDeclarative.test_iteritems _______________ 543s 543s self = 543s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 543s connection = None, _has_events = None, _allow_revalidate = True 543s _allow_autobegin = True 543s 543s def __init__( 543s self, 543s engine: Engine, 543s connection: Optional[PoolProxiedConnection] = None, 543s _has_events: Optional[bool] = None, 543s _allow_revalidate: bool = True, 543s _allow_autobegin: bool = True, 543s ): 543s """Construct a new Connection.""" 543s self.engine = engine 543s self.dialect = dialect = engine.dialect 543s 543s if connection is None: 543s try: 543s > self._dbapi_connection = engine.raw_connection() 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 543s return self.pool.connect() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 543s return _ConnectionFairy._checkout(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 543s fairy = _ConnectionRecord.checkout(pool) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 543s rec = pool._do_get() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 543s with util.safe_reraise(): 543s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 543s raise exc_value.with_traceback(exc_tb) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 543s return self._create_connection() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 543s return _ConnectionRecord(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 543s self.__connect() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 543s with util.safe_reraise(): 543s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 543s raise exc_value.with_traceback(exc_tb) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 543s self.dbapi_connection = connection = pool._invoke_creator(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 543s return dialect.connect(*cargs, **cparams) 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 543s return self.loaded_dbapi.connect(*cargs, **cparams) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 543s connection_factory = None, cursor_factory = None 543s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 543s kwasync = {} 543s 543s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 543s """ 543s Create a new database connection. 543s 543s The connection parameters can be specified as a string: 543s 543s conn = psycopg2.connect("dbname=test user=postgres password=secret") 543s 543s or using a set of keyword arguments: 543s 543s conn = psycopg2.connect(database="test", user="postgres", password="secret") 543s 543s Or as a mix of both. The basic connection parameters are: 543s 543s - *dbname*: the database name 543s - *database*: the database name (only as keyword argument) 543s - *user*: user name used to authenticate 543s - *password*: password used to authenticate 543s - *host*: database host address (defaults to UNIX socket if not provided) 543s - *port*: connection port number (defaults to 5432 if not provided) 543s 543s Using the *connection_factory* parameter a different class or connections 543s factory can be specified. It should be a callable object taking a dsn 543s argument. 543s 543s Using the *cursor_factory* parameter, a new default cursor factory will be 543s used by cursor(). 543s 543s Using *async*=True an asynchronous connection will be created. *async_* is 543s a valid alias (for Python versions where ``async`` is a keyword). 543s 543s Any other keyword parameter will be passed to the underlying client 543s library: the list of supported parameters depends on the library version. 543s 543s """ 543s kwasync = {} 543s if 'async' in kwargs: 543s kwasync['async'] = kwargs.pop('async') 543s if 'async_' in kwargs: 543s kwasync['async_'] = kwargs.pop('async_') 543s 543s dsn = _ext.make_dsn(dsn, **kwargs) 543s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 543s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 50681 failed: FATAL: sorry, too many clients already 543s 543s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 543s 543s The above exception was the direct cause of the following exception: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s > self.connection = self.engine.connect() 543s 543s tests/__init__.py:50: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 543s return self._connection_cls(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 543s Connection._handle_dbapi_exception_noconnection( 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 543s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 543s self._dbapi_connection = engine.raw_connection() 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 543s return self.pool.connect() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 543s return _ConnectionFairy._checkout(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 543s fairy = _ConnectionRecord.checkout(pool) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 543s rec = pool._do_get() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 543s with util.safe_reraise(): 543s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 543s raise exc_value.with_traceback(exc_tb) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 543s return self._create_connection() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 543s return _ConnectionRecord(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 543s self.__connect() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 543s with util.safe_reraise(): 543s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 543s raise exc_value.with_traceback(exc_tb) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 543s self.dbapi_connection = connection = pool._invoke_creator(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 543s return dialect.connect(*cargs, **cparams) 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 543s return self.loaded_dbapi.connect(*cargs, **cparams) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 543s connection_factory = None, cursor_factory = None 543s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 543s kwasync = {} 543s 543s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 543s """ 543s Create a new database connection. 543s 543s The connection parameters can be specified as a string: 543s 543s conn = psycopg2.connect("dbname=test user=postgres password=secret") 543s 543s or using a set of keyword arguments: 543s 543s conn = psycopg2.connect(database="test", user="postgres", password="secret") 543s 543s Or as a mix of both. The basic connection parameters are: 543s 543s - *dbname*: the database name 543s - *database*: the database name (only as keyword argument) 543s - *user*: user name used to authenticate 543s - *password*: password used to authenticate 543s - *host*: database host address (defaults to UNIX socket if not provided) 543s - *port*: connection port number (defaults to 5432 if not provided) 543s 543s Using the *connection_factory* parameter a different class or connections 543s factory can be specified. It should be a callable object taking a dsn 543s argument. 543s 543s Using the *cursor_factory* parameter, a new default cursor factory will be 543s used by cursor(). 543s 543s Using *async*=True an asynchronous connection will be created. *async_* is 543s a valid alias (for Python versions where ``async`` is a keyword). 543s 543s Any other keyword parameter will be passed to the underlying client 543s library: the list of supported parameters depends on the library version. 543s 543s """ 543s kwasync = {} 543s if 'async' in kwargs: 543s kwasync['async'] = kwargs.pop('async') 543s if 'async_' in kwargs: 543s kwasync['async_'] = kwargs.pop('async_') 543s 543s dsn = _ext.make_dsn(dsn, **kwargs) 543s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 543s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 50681 failed: FATAL: sorry, too many clients already 543s E 543s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 543s 543s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 543s _______________ ERROR at setup of TestDeclarative.test_set_item ________________ 543s 543s self = 543s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 543s connection = None, _has_events = None, _allow_revalidate = True 543s _allow_autobegin = True 543s 543s def __init__( 543s self, 543s engine: Engine, 543s connection: Optional[PoolProxiedConnection] = None, 543s _has_events: Optional[bool] = None, 543s _allow_revalidate: bool = True, 543s _allow_autobegin: bool = True, 543s ): 543s """Construct a new Connection.""" 543s self.engine = engine 543s self.dialect = dialect = engine.dialect 543s 543s if connection is None: 543s try: 543s > self._dbapi_connection = engine.raw_connection() 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 543s return self.pool.connect() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 543s return _ConnectionFairy._checkout(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 543s fairy = _ConnectionRecord.checkout(pool) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 543s rec = pool._do_get() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 543s with util.safe_reraise(): 543s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 543s raise exc_value.with_traceback(exc_tb) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 543s return self._create_connection() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 543s return _ConnectionRecord(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 543s self.__connect() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 543s with util.safe_reraise(): 543s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 543s raise exc_value.with_traceback(exc_tb) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 543s self.dbapi_connection = connection = pool._invoke_creator(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 543s return dialect.connect(*cargs, **cparams) 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 543s return self.loaded_dbapi.connect(*cargs, **cparams) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 543s connection_factory = None, cursor_factory = None 543s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 543s kwasync = {} 543s 543s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 543s """ 543s Create a new database connection. 543s 543s The connection parameters can be specified as a string: 543s 543s conn = psycopg2.connect("dbname=test user=postgres password=secret") 543s 543s or using a set of keyword arguments: 543s 543s conn = psycopg2.connect(database="test", user="postgres", password="secret") 543s 543s Or as a mix of both. The basic connection parameters are: 543s 543s - *dbname*: the database name 543s - *database*: the database name (only as keyword argument) 543s - *user*: user name used to authenticate 543s - *password*: password used to authenticate 543s - *host*: database host address (defaults to UNIX socket if not provided) 543s - *port*: connection port number (defaults to 5432 if not provided) 543s 543s Using the *connection_factory* parameter a different class or connections 543s factory can be specified. It should be a callable object taking a dsn 543s argument. 543s 543s Using the *cursor_factory* parameter, a new default cursor factory will be 543s used by cursor(). 543s 543s Using *async*=True an asynchronous connection will be created. *async_* is 543s a valid alias (for Python versions where ``async`` is a keyword). 543s 543s Any other keyword parameter will be passed to the underlying client 543s library: the list of supported parameters depends on the library version. 543s 543s """ 543s kwasync = {} 543s if 'async' in kwargs: 543s kwasync['async'] = kwargs.pop('async') 543s if 'async_' in kwargs: 543s kwasync['async_'] = kwargs.pop('async_') 543s 543s dsn = _ext.make_dsn(dsn, **kwargs) 543s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 543s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 50681 failed: FATAL: sorry, too many clients already 543s 543s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 543s 543s The above exception was the direct cause of the following exception: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s > self.connection = self.engine.connect() 543s 543s tests/__init__.py:50: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 543s return self._connection_cls(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 543s Connection._handle_dbapi_exception_noconnection( 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 543s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 543s self._dbapi_connection = engine.raw_connection() 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 543s return self.pool.connect() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 543s return _ConnectionFairy._checkout(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 543s fairy = _ConnectionRecord.checkout(pool) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 543s rec = pool._do_get() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 543s with util.safe_reraise(): 543s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 543s raise exc_value.with_traceback(exc_tb) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 543s return self._create_connection() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 543s return _ConnectionRecord(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 543s self.__connect() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 543s with util.safe_reraise(): 543s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 543s raise exc_value.with_traceback(exc_tb) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 543s self.dbapi_connection = connection = pool._invoke_creator(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 543s return dialect.connect(*cargs, **cparams) 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 543s return self.loaded_dbapi.connect(*cargs, **cparams) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 543s connection_factory = None, cursor_factory = None 543s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 543s kwasync = {} 543s 543s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 543s """ 543s Create a new database connection. 543s 543s The connection parameters can be specified as a string: 543s 543s conn = psycopg2.connect("dbname=test user=postgres password=secret") 543s 543s or using a set of keyword arguments: 543s 543s conn = psycopg2.connect(database="test", user="postgres", password="secret") 543s 543s Or as a mix of both. The basic connection parameters are: 543s 543s - *dbname*: the database name 543s - *database*: the database name (only as keyword argument) 543s - *user*: user name used to authenticate 543s - *password*: password used to authenticate 543s - *host*: database host address (defaults to UNIX socket if not provided) 543s - *port*: connection port number (defaults to 5432 if not provided) 543s 543s Using the *connection_factory* parameter a different class or connections 543s factory can be specified. It should be a callable object taking a dsn 543s argument. 543s 543s Using the *cursor_factory* parameter, a new default cursor factory will be 543s used by cursor(). 543s 543s Using *async*=True an asynchronous connection will be created. *async_* is 543s a valid alias (for Python versions where ``async`` is a keyword). 543s 543s Any other keyword parameter will be passed to the underlying client 543s library: the list of supported parameters depends on the library version. 543s 543s """ 543s kwasync = {} 543s if 'async' in kwargs: 543s kwasync['async'] = kwargs.pop('async') 543s if 'async_' in kwargs: 543s kwasync['async_'] = kwargs.pop('async_') 543s 543s dsn = _ext.make_dsn(dsn, **kwargs) 543s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 543s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 50681 failed: FATAL: sorry, too many clients already 543s E 543s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 543s 543s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 543s _________________ ERROR at setup of TestDeclarative.test_repr __________________ 543s 543s self = 543s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 543s connection = None, _has_events = None, _allow_revalidate = True 543s _allow_autobegin = True 543s 543s def __init__( 543s self, 543s engine: Engine, 543s connection: Optional[PoolProxiedConnection] = None, 543s _has_events: Optional[bool] = None, 543s _allow_revalidate: bool = True, 543s _allow_autobegin: bool = True, 543s ): 543s """Construct a new Connection.""" 543s self.engine = engine 543s self.dialect = dialect = engine.dialect 543s 543s if connection is None: 543s try: 543s > self._dbapi_connection = engine.raw_connection() 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 543s return self.pool.connect() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 543s return _ConnectionFairy._checkout(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 543s fairy = _ConnectionRecord.checkout(pool) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 543s rec = pool._do_get() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 543s with util.safe_reraise(): 543s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 543s raise exc_value.with_traceback(exc_tb) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 543s return self._create_connection() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 543s return _ConnectionRecord(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 543s self.__connect() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 543s with util.safe_reraise(): 543s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 543s raise exc_value.with_traceback(exc_tb) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 543s self.dbapi_connection = connection = pool._invoke_creator(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 543s return dialect.connect(*cargs, **cparams) 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 543s return self.loaded_dbapi.connect(*cargs, **cparams) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 543s connection_factory = None, cursor_factory = None 543s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 543s kwasync = {} 543s 543s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 543s """ 543s Create a new database connection. 543s 543s The connection parameters can be specified as a string: 543s 543s conn = psycopg2.connect("dbname=test user=postgres password=secret") 543s 543s or using a set of keyword arguments: 543s 543s conn = psycopg2.connect(database="test", user="postgres", password="secret") 543s 543s Or as a mix of both. The basic connection parameters are: 543s 543s - *dbname*: the database name 543s - *database*: the database name (only as keyword argument) 543s - *user*: user name used to authenticate 543s - *password*: password used to authenticate 543s - *host*: database host address (defaults to UNIX socket if not provided) 543s - *port*: connection port number (defaults to 5432 if not provided) 543s 543s Using the *connection_factory* parameter a different class or connections 543s factory can be specified. It should be a callable object taking a dsn 543s argument. 543s 543s Using the *cursor_factory* parameter, a new default cursor factory will be 543s used by cursor(). 543s 543s Using *async*=True an asynchronous connection will be created. *async_* is 543s a valid alias (for Python versions where ``async`` is a keyword). 543s 543s Any other keyword parameter will be passed to the underlying client 543s library: the list of supported parameters depends on the library version. 543s 543s """ 543s kwasync = {} 543s if 'async' in kwargs: 543s kwasync['async'] = kwargs.pop('async') 543s if 'async_' in kwargs: 543s kwasync['async_'] = kwargs.pop('async_') 543s 543s dsn = _ext.make_dsn(dsn, **kwargs) 543s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 543s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 50681 failed: FATAL: sorry, too many clients already 543s 543s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 543s 543s The above exception was the direct cause of the following exception: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s > self.connection = self.engine.connect() 543s 543s tests/__init__.py:50: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 543s return self._connection_cls(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 543s Connection._handle_dbapi_exception_noconnection( 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 543s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 543s self._dbapi_connection = engine.raw_connection() 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 543s return self.pool.connect() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 543s return _ConnectionFairy._checkout(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 543s fairy = _ConnectionRecord.checkout(pool) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 543s rec = pool._do_get() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 543s with util.safe_reraise(): 543s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 543s raise exc_value.with_traceback(exc_tb) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 543s return self._create_connection() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 543s return _ConnectionRecord(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 543s self.__connect() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 543s with util.safe_reraise(): 543s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 543s raise exc_value.with_traceback(exc_tb) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 543s self.dbapi_connection = connection = pool._invoke_creator(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 543s return dialect.connect(*cargs, **cparams) 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 543s return self.loaded_dbapi.connect(*cargs, **cparams) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 543s connection_factory = None, cursor_factory = None 543s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 543s kwasync = {} 543s 543s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 543s """ 543s Create a new database connection. 543s 543s The connection parameters can be specified as a string: 543s 543s conn = psycopg2.connect("dbname=test user=postgres password=secret") 543s 543s or using a set of keyword arguments: 543s 543s conn = psycopg2.connect(database="test", user="postgres", password="secret") 543s 543s Or as a mix of both. The basic connection parameters are: 543s 543s - *dbname*: the database name 543s - *database*: the database name (only as keyword argument) 543s - *user*: user name used to authenticate 543s - *password*: password used to authenticate 543s - *host*: database host address (defaults to UNIX socket if not provided) 543s - *port*: connection port number (defaults to 5432 if not provided) 543s 543s Using the *connection_factory* parameter a different class or connections 543s factory can be specified. It should be a callable object taking a dsn 543s argument. 543s 543s Using the *cursor_factory* parameter, a new default cursor factory will be 543s used by cursor(). 543s 543s Using *async*=True an asynchronous connection will be created. *async_* is 543s a valid alias (for Python versions where ``async`` is a keyword). 543s 543s Any other keyword parameter will be passed to the underlying client 543s library: the list of supported parameters depends on the library version. 543s 543s """ 543s kwasync = {} 543s if 'async' in kwargs: 543s kwasync['async'] = kwargs.pop('async') 543s if 'async_' in kwargs: 543s kwasync['async_'] = kwargs.pop('async_') 543s 543s dsn = _ext.make_dsn(dsn, **kwargs) 543s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 543s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 50681 failed: FATAL: sorry, too many clients already 543s E 543s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 543s 543s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 543s _________________ ERROR at setup of TestDeclarative.test_iter __________________ 543s 543s self = 543s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 543s connection = None, _has_events = None, _allow_revalidate = True 543s _allow_autobegin = True 543s 543s def __init__( 543s self, 543s engine: Engine, 543s connection: Optional[PoolProxiedConnection] = None, 543s _has_events: Optional[bool] = None, 543s _allow_revalidate: bool = True, 543s _allow_autobegin: bool = True, 543s ): 543s """Construct a new Connection.""" 543s self.engine = engine 543s self.dialect = dialect = engine.dialect 543s 543s if connection is None: 543s try: 543s > self._dbapi_connection = engine.raw_connection() 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 543s return self.pool.connect() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 543s return _ConnectionFairy._checkout(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 543s fairy = _ConnectionRecord.checkout(pool) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 543s rec = pool._do_get() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 543s with util.safe_reraise(): 543s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 543s raise exc_value.with_traceback(exc_tb) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 543s return self._create_connection() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 543s return _ConnectionRecord(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 543s self.__connect() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 543s with util.safe_reraise(): 543s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 543s raise exc_value.with_traceback(exc_tb) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 543s self.dbapi_connection = connection = pool._invoke_creator(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 543s return dialect.connect(*cargs, **cparams) 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 543s return self.loaded_dbapi.connect(*cargs, **cparams) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 543s connection_factory = None, cursor_factory = None 543s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 543s kwasync = {} 543s 543s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 543s """ 543s Create a new database connection. 543s 543s The connection parameters can be specified as a string: 543s 543s conn = psycopg2.connect("dbname=test user=postgres password=secret") 543s 543s or using a set of keyword arguments: 543s 543s conn = psycopg2.connect(database="test", user="postgres", password="secret") 543s 543s Or as a mix of both. The basic connection parameters are: 543s 543s - *dbname*: the database name 543s - *database*: the database name (only as keyword argument) 543s - *user*: user name used to authenticate 543s - *password*: password used to authenticate 543s - *host*: database host address (defaults to UNIX socket if not provided) 543s - *port*: connection port number (defaults to 5432 if not provided) 543s 543s Using the *connection_factory* parameter a different class or connections 543s factory can be specified. It should be a callable object taking a dsn 543s argument. 543s 543s Using the *cursor_factory* parameter, a new default cursor factory will be 543s used by cursor(). 543s 543s Using *async*=True an asynchronous connection will be created. *async_* is 543s a valid alias (for Python versions where ``async`` is a keyword). 543s 543s Any other keyword parameter will be passed to the underlying client 543s library: the list of supported parameters depends on the library version. 543s 543s """ 543s kwasync = {} 543s if 'async' in kwargs: 543s kwasync['async'] = kwargs.pop('async') 543s if 'async_' in kwargs: 543s kwasync['async_'] = kwargs.pop('async_') 543s 543s dsn = _ext.make_dsn(dsn, **kwargs) 543s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 543s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 50681 failed: FATAL: sorry, too many clients already 543s 543s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 543s 543s The above exception was the direct cause of the following exception: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s > self.connection = self.engine.connect() 543s 543s tests/__init__.py:50: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 543s return self._connection_cls(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 543s Connection._handle_dbapi_exception_noconnection( 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 543s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 543s self._dbapi_connection = engine.raw_connection() 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 543s return self.pool.connect() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 543s return _ConnectionFairy._checkout(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 543s fairy = _ConnectionRecord.checkout(pool) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 543s rec = pool._do_get() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 543s with util.safe_reraise(): 543s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 543s raise exc_value.with_traceback(exc_tb) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 543s return self._create_connection() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 543s return _ConnectionRecord(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 543s self.__connect() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 543s with util.safe_reraise(): 543s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 543s raise exc_value.with_traceback(exc_tb) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 543s self.dbapi_connection = connection = pool._invoke_creator(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 543s return dialect.connect(*cargs, **cparams) 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 543s return self.loaded_dbapi.connect(*cargs, **cparams) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 543s connection_factory = None, cursor_factory = None 543s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 543s kwasync = {} 543s 543s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 543s """ 543s Create a new database connection. 543s 543s The connection parameters can be specified as a string: 543s 543s conn = psycopg2.connect("dbname=test user=postgres password=secret") 543s 543s or using a set of keyword arguments: 543s 543s conn = psycopg2.connect(database="test", user="postgres", password="secret") 543s 543s Or as a mix of both. The basic connection parameters are: 543s 543s - *dbname*: the database name 543s - *database*: the database name (only as keyword argument) 543s - *user*: user name used to authenticate 543s - *password*: password used to authenticate 543s - *host*: database host address (defaults to UNIX socket if not provided) 543s - *port*: connection port number (defaults to 5432 if not provided) 543s 543s Using the *connection_factory* parameter a different class or connections 543s factory can be specified. It should be a callable object taking a dsn 543s argument. 543s 543s Using the *cursor_factory* parameter, a new default cursor factory will be 543s used by cursor(). 543s 543s Using *async*=True an asynchronous connection will be created. *async_* is 543s a valid alias (for Python versions where ``async`` is a keyword). 543s 543s Any other keyword parameter will be passed to the underlying client 543s library: the list of supported parameters depends on the library version. 543s 543s """ 543s kwasync = {} 543s if 'async' in kwargs: 543s kwasync['async'] = kwargs.pop('async') 543s if 'async_' in kwargs: 543s kwasync['async_'] = kwargs.pop('async_') 543s 543s dsn = _ext.make_dsn(dsn, **kwargs) 543s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 543s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 50681 failed: FATAL: sorry, too many clients already 543s E 543s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 543s 543s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 543s ________________ ERROR at setup of TestDeclarative.test_values _________________ 543s 543s self = 543s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 543s connection = None, _has_events = None, _allow_revalidate = True 543s _allow_autobegin = True 543s 543s def __init__( 543s self, 543s engine: Engine, 543s connection: Optional[PoolProxiedConnection] = None, 543s _has_events: Optional[bool] = None, 543s _allow_revalidate: bool = True, 543s _allow_autobegin: bool = True, 543s ): 543s """Construct a new Connection.""" 543s self.engine = engine 543s self.dialect = dialect = engine.dialect 543s 543s if connection is None: 543s try: 543s > self._dbapi_connection = engine.raw_connection() 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 543s return self.pool.connect() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 543s return _ConnectionFairy._checkout(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 543s fairy = _ConnectionRecord.checkout(pool) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 543s rec = pool._do_get() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 543s with util.safe_reraise(): 543s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 543s raise exc_value.with_traceback(exc_tb) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 543s return self._create_connection() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 543s return _ConnectionRecord(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 543s self.__connect() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 543s with util.safe_reraise(): 543s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 543s raise exc_value.with_traceback(exc_tb) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 543s self.dbapi_connection = connection = pool._invoke_creator(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 543s return dialect.connect(*cargs, **cparams) 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 543s return self.loaded_dbapi.connect(*cargs, **cparams) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 543s connection_factory = None, cursor_factory = None 543s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 543s kwasync = {} 543s 543s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 543s """ 543s Create a new database connection. 543s 543s The connection parameters can be specified as a string: 543s 543s conn = psycopg2.connect("dbname=test user=postgres password=secret") 543s 543s or using a set of keyword arguments: 543s 543s conn = psycopg2.connect(database="test", user="postgres", password="secret") 543s 543s Or as a mix of both. The basic connection parameters are: 543s 543s - *dbname*: the database name 543s - *database*: the database name (only as keyword argument) 543s - *user*: user name used to authenticate 543s - *password*: password used to authenticate 543s - *host*: database host address (defaults to UNIX socket if not provided) 543s - *port*: connection port number (defaults to 5432 if not provided) 543s 543s Using the *connection_factory* parameter a different class or connections 543s factory can be specified. It should be a callable object taking a dsn 543s argument. 543s 543s Using the *cursor_factory* parameter, a new default cursor factory will be 543s used by cursor(). 543s 543s Using *async*=True an asynchronous connection will be created. *async_* is 543s a valid alias (for Python versions where ``async`` is a keyword). 543s 543s Any other keyword parameter will be passed to the underlying client 543s library: the list of supported parameters depends on the library version. 543s 543s """ 543s kwasync = {} 543s if 'async' in kwargs: 543s kwasync['async'] = kwargs.pop('async') 543s if 'async_' in kwargs: 543s kwasync['async_'] = kwargs.pop('async_') 543s 543s dsn = _ext.make_dsn(dsn, **kwargs) 543s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 543s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 50681 failed: FATAL: sorry, too many clients already 543s 543s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 543s 543s The above exception was the direct cause of the following exception: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.engine = create_engine(self.engine_uri) 543s # self.engine.echo = True 543s > self.connection = self.engine.connect() 543s 543s tests/__init__.py:50: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 543s return self._connection_cls(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 543s Connection._handle_dbapi_exception_noconnection( 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 543s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 543s self._dbapi_connection = engine.raw_connection() 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 543s return self.pool.connect() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 543s return _ConnectionFairy._checkout(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 543s fairy = _ConnectionRecord.checkout(pool) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 543s rec = pool._do_get() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 543s with util.safe_reraise(): 543s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 543s raise exc_value.with_traceback(exc_tb) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 543s return self._create_connection() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 543s return _ConnectionRecord(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 543s self.__connect() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 543s with util.safe_reraise(): 543s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 543s raise exc_value.with_traceback(exc_tb) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 543s self.dbapi_connection = connection = pool._invoke_creator(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 543s return dialect.connect(*cargs, **cparams) 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 543s return self.loaded_dbapi.connect(*cargs, **cparams) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 543s connection_factory = None, cursor_factory = None 543s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 543s kwasync = {} 543s 543s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 543s """ 543s Create a new database connection. 543s 543s The connection parameters can be specified as a string: 543s 543s conn = psycopg2.connect("dbname=test user=postgres password=secret") 543s 543s or using a set of keyword arguments: 543s 543s conn = psycopg2.connect(database="test", user="postgres", password="secret") 543s 543s Or as a mix of both. The basic connection parameters are: 543s 543s - *dbname*: the database name 543s - *database*: the database name (only as keyword argument) 543s - *user*: user name used to authenticate 543s - *password*: password used to authenticate 543s - *host*: database host address (defaults to UNIX socket if not provided) 543s - *port*: connection port number (defaults to 5432 if not provided) 543s 543s Using the *connection_factory* parameter a different class or connections 543s factory can be specified. It should be a callable object taking a dsn 543s argument. 543s 543s Using the *cursor_factory* parameter, a new default cursor factory will be 543s used by cursor(). 543s 543s Using *async*=True an asynchronous connection will be created. *async_* is 543s a valid alias (for Python versions where ``async`` is a keyword). 543s 543s Any other keyword parameter will be passed to the underlying client 543s library: the list of supported parameters depends on the library version. 543s 543s """ 543s kwasync = {} 543s if 'async' in kwargs: 543s kwasync['async'] = kwargs.pop('async') 543s if 'async_' in kwargs: 543s kwasync['async_'] = kwargs.pop('async_') 543s 543s dsn = _ext.make_dsn(dsn, **kwargs) 543s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 543s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 50681 failed: FATAL: sorry, too many clients already 543s E 543s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 543s 543s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 543s ______________ ERROR at setup of TestClassic.test_proxy_contains _______________ 543s 543s self = 543s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 543s connection = None, _has_events = None, _allow_revalidate = True 543s _allow_autobegin = True 543s 543s def __init__( 543s self, 543s engine: Engine, 543s connection: Optional[PoolProxiedConnection] = None, 543s _has_events: Optional[bool] = None, 543s _allow_revalidate: bool = True, 543s _allow_autobegin: bool = True, 543s ): 543s """Construct a new Connection.""" 543s self.engine = engine 543s self.dialect = dialect = engine.dialect 543s 543s if connection is None: 543s try: 543s > self._dbapi_connection = engine.raw_connection() 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 543s return self.pool.connect() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 543s return _ConnectionFairy._checkout(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 543s fairy = _ConnectionRecord.checkout(pool) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 543s rec = pool._do_get() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 543s with util.safe_reraise(): 543s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 543s raise exc_value.with_traceback(exc_tb) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 543s return self._create_connection() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 543s return _ConnectionRecord(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 543s self.__connect() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 543s with util.safe_reraise(): 543s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 543s raise exc_value.with_traceback(exc_tb) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 543s self.dbapi_connection = connection = pool._invoke_creator(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 543s return dialect.connect(*cargs, **cparams) 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 543s return self.loaded_dbapi.connect(*cargs, **cparams) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 543s connection_factory = None, cursor_factory = None 543s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 543s kwasync = {} 543s 543s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 543s """ 543s Create a new database connection. 543s 543s The connection parameters can be specified as a string: 543s 543s conn = psycopg2.connect("dbname=test user=postgres password=secret") 543s 543s or using a set of keyword arguments: 543s 543s conn = psycopg2.connect(database="test", user="postgres", password="secret") 543s 543s Or as a mix of both. The basic connection parameters are: 543s 543s - *dbname*: the database name 543s - *database*: the database name (only as keyword argument) 543s - *user*: user name used to authenticate 543s - *password*: password used to authenticate 543s - *host*: database host address (defaults to UNIX socket if not provided) 543s - *port*: connection port number (defaults to 5432 if not provided) 543s 543s Using the *connection_factory* parameter a different class or connections 543s factory can be specified. It should be a callable object taking a dsn 543s argument. 543s 543s Using the *cursor_factory* parameter, a new default cursor factory will be 543s used by cursor(). 543s 543s Using *async*=True an asynchronous connection will be created. *async_* is 543s a valid alias (for Python versions where ``async`` is a keyword). 543s 543s Any other keyword parameter will be passed to the underlying client 543s library: the list of supported parameters depends on the library version. 543s 543s """ 543s kwasync = {} 543s if 'async' in kwargs: 543s kwasync['async'] = kwargs.pop('async') 543s if 'async_' in kwargs: 543s kwasync['async_'] = kwargs.pop('async_') 543s 543s dsn = _ext.make_dsn(dsn, **kwargs) 543s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 543s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 50681 failed: FATAL: sorry, too many clients already 543s 543s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 543s 543s The above exception was the direct cause of the following exception: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.metadata = sa.MetaData() 543s 543s self.engine = sa.create_engine(self.engine_uri) 543s # self.engine.echo = True 543s > self.connection = self.engine.connect() 543s 543s tests/__init__.py:135: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 543s return self._connection_cls(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 543s Connection._handle_dbapi_exception_noconnection( 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 543s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 543s self._dbapi_connection = engine.raw_connection() 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 543s return self.pool.connect() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 543s return _ConnectionFairy._checkout(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 543s fairy = _ConnectionRecord.checkout(pool) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 543s rec = pool._do_get() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 543s with util.safe_reraise(): 543s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 543s raise exc_value.with_traceback(exc_tb) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 543s return self._create_connection() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 543s return _ConnectionRecord(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 543s self.__connect() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 543s with util.safe_reraise(): 543s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 543s raise exc_value.with_traceback(exc_tb) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 543s self.dbapi_connection = connection = pool._invoke_creator(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 543s return dialect.connect(*cargs, **cparams) 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 543s return self.loaded_dbapi.connect(*cargs, **cparams) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 543s connection_factory = None, cursor_factory = None 543s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 543s kwasync = {} 543s 543s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 543s """ 543s Create a new database connection. 543s 543s The connection parameters can be specified as a string: 543s 543s conn = psycopg2.connect("dbname=test user=postgres password=secret") 543s 543s or using a set of keyword arguments: 543s 543s conn = psycopg2.connect(database="test", user="postgres", password="secret") 543s 543s Or as a mix of both. The basic connection parameters are: 543s 543s - *dbname*: the database name 543s - *database*: the database name (only as keyword argument) 543s - *user*: user name used to authenticate 543s - *password*: password used to authenticate 543s - *host*: database host address (defaults to UNIX socket if not provided) 543s - *port*: connection port number (defaults to 5432 if not provided) 543s 543s Using the *connection_factory* parameter a different class or connections 543s factory can be specified. It should be a callable object taking a dsn 543s argument. 543s 543s Using the *cursor_factory* parameter, a new default cursor factory will be 543s used by cursor(). 543s 543s Using *async*=True an asynchronous connection will be created. *async_* is 543s a valid alias (for Python versions where ``async`` is a keyword). 543s 543s Any other keyword parameter will be passed to the underlying client 543s library: the list of supported parameters depends on the library version. 543s 543s """ 543s kwasync = {} 543s if 'async' in kwargs: 543s kwasync['async'] = kwargs.pop('async') 543s if 'async_' in kwargs: 543s kwasync['async_'] = kwargs.pop('async_') 543s 543s dsn = _ext.make_dsn(dsn, **kwargs) 543s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 543s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 50681 failed: FATAL: sorry, too many clients already 543s E 543s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 543s 543s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 543s ___ ERROR at setup of TestClassic.test_translation_mapping_attribute_getter ____ 543s 543s self = 543s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 543s connection = None, _has_events = None, _allow_revalidate = True 543s _allow_autobegin = True 543s 543s def __init__( 543s self, 543s engine: Engine, 543s connection: Optional[PoolProxiedConnection] = None, 543s _has_events: Optional[bool] = None, 543s _allow_revalidate: bool = True, 543s _allow_autobegin: bool = True, 543s ): 543s """Construct a new Connection.""" 543s self.engine = engine 543s self.dialect = dialect = engine.dialect 543s 543s if connection is None: 543s try: 543s > self._dbapi_connection = engine.raw_connection() 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 543s return self.pool.connect() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 543s return _ConnectionFairy._checkout(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 543s fairy = _ConnectionRecord.checkout(pool) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 543s rec = pool._do_get() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 543s with util.safe_reraise(): 543s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 543s raise exc_value.with_traceback(exc_tb) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 543s return self._create_connection() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 543s return _ConnectionRecord(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 543s self.__connect() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 543s with util.safe_reraise(): 543s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 543s raise exc_value.with_traceback(exc_tb) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 543s self.dbapi_connection = connection = pool._invoke_creator(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 543s return dialect.connect(*cargs, **cparams) 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 543s return self.loaded_dbapi.connect(*cargs, **cparams) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 543s connection_factory = None, cursor_factory = None 543s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 543s kwasync = {} 543s 543s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 543s """ 543s Create a new database connection. 543s 543s The connection parameters can be specified as a string: 543s 543s conn = psycopg2.connect("dbname=test user=postgres password=secret") 543s 543s or using a set of keyword arguments: 543s 543s conn = psycopg2.connect(database="test", user="postgres", password="secret") 543s 543s Or as a mix of both. The basic connection parameters are: 543s 543s - *dbname*: the database name 543s - *database*: the database name (only as keyword argument) 543s - *user*: user name used to authenticate 543s - *password*: password used to authenticate 543s - *host*: database host address (defaults to UNIX socket if not provided) 543s - *port*: connection port number (defaults to 5432 if not provided) 543s 543s Using the *connection_factory* parameter a different class or connections 543s factory can be specified. It should be a callable object taking a dsn 543s argument. 543s 543s Using the *cursor_factory* parameter, a new default cursor factory will be 543s used by cursor(). 543s 543s Using *async*=True an asynchronous connection will be created. *async_* is 543s a valid alias (for Python versions where ``async`` is a keyword). 543s 543s Any other keyword parameter will be passed to the underlying client 543s library: the list of supported parameters depends on the library version. 543s 543s """ 543s kwasync = {} 543s if 'async' in kwargs: 543s kwasync['async'] = kwargs.pop('async') 543s if 'async_' in kwargs: 543s kwasync['async_'] = kwargs.pop('async_') 543s 543s dsn = _ext.make_dsn(dsn, **kwargs) 543s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 543s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 50681 failed: FATAL: sorry, too many clients already 543s 543s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 543s 543s The above exception was the direct cause of the following exception: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.metadata = sa.MetaData() 543s 543s self.engine = sa.create_engine(self.engine_uri) 543s # self.engine.echo = True 543s > self.connection = self.engine.connect() 543s 543s tests/__init__.py:135: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 543s return self._connection_cls(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 543s Connection._handle_dbapi_exception_noconnection( 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 543s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 543s self._dbapi_connection = engine.raw_connection() 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 543s return self.pool.connect() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 543s return _ConnectionFairy._checkout(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 543s fairy = _ConnectionRecord.checkout(pool) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 543s rec = pool._do_get() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 543s with util.safe_reraise(): 543s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 543s raise exc_value.with_traceback(exc_tb) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 543s return self._create_connection() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 543s return _ConnectionRecord(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 543s self.__connect() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 543s with util.safe_reraise(): 543s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 543s raise exc_value.with_traceback(exc_tb) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 543s self.dbapi_connection = connection = pool._invoke_creator(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 543s return dialect.connect(*cargs, **cparams) 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 543s return self.loaded_dbapi.connect(*cargs, **cparams) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 543s connection_factory = None, cursor_factory = None 543s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 543s kwasync = {} 543s 543s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 543s """ 543s Create a new database connection. 543s 543s The connection parameters can be specified as a string: 543s 543s conn = psycopg2.connect("dbname=test user=postgres password=secret") 543s 543s or using a set of keyword arguments: 543s 543s conn = psycopg2.connect(database="test", user="postgres", password="secret") 543s 543s Or as a mix of both. The basic connection parameters are: 543s 543s - *dbname*: the database name 543s - *database*: the database name (only as keyword argument) 543s - *user*: user name used to authenticate 543s - *password*: password used to authenticate 543s - *host*: database host address (defaults to UNIX socket if not provided) 543s - *port*: connection port number (defaults to 5432 if not provided) 543s 543s Using the *connection_factory* parameter a different class or connections 543s factory can be specified. It should be a callable object taking a dsn 543s argument. 543s 543s Using the *cursor_factory* parameter, a new default cursor factory will be 543s used by cursor(). 543s 543s Using *async*=True an asynchronous connection will be created. *async_* is 543s a valid alias (for Python versions where ``async`` is a keyword). 543s 543s Any other keyword parameter will be passed to the underlying client 543s library: the list of supported parameters depends on the library version. 543s 543s """ 543s kwasync = {} 543s if 'async' in kwargs: 543s kwasync['async'] = kwargs.pop('async') 543s if 'async_' in kwargs: 543s kwasync['async_'] = kwargs.pop('async_') 543s 543s dsn = _ext.make_dsn(dsn, **kwargs) 543s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 543s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 50681 failed: FATAL: sorry, too many clients already 543s E 543s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 543s 543s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 543s ___ ERROR at setup of TestClassic.test_attribute_accessor_for_unknown_locale ___ 543s 543s self = 543s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 543s connection = None, _has_events = None, _allow_revalidate = True 543s _allow_autobegin = True 543s 543s def __init__( 543s self, 543s engine: Engine, 543s connection: Optional[PoolProxiedConnection] = None, 543s _has_events: Optional[bool] = None, 543s _allow_revalidate: bool = True, 543s _allow_autobegin: bool = True, 543s ): 543s """Construct a new Connection.""" 543s self.engine = engine 543s self.dialect = dialect = engine.dialect 543s 543s if connection is None: 543s try: 543s > self._dbapi_connection = engine.raw_connection() 543s 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 543s return self.pool.connect() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 543s return _ConnectionFairy._checkout(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 543s fairy = _ConnectionRecord.checkout(pool) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 543s rec = pool._do_get() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 543s with util.safe_reraise(): 543s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 543s raise exc_value.with_traceback(exc_tb) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 543s return self._create_connection() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 543s return _ConnectionRecord(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 543s self.__connect() 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 543s with util.safe_reraise(): 543s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 543s raise exc_value.with_traceback(exc_tb) 543s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 543s self.dbapi_connection = connection = pool._invoke_creator(self) 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 543s return dialect.connect(*cargs, **cparams) 543s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 543s return self.loaded_dbapi.connect(*cargs, **cparams) 543s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 543s 543s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 543s connection_factory = None, cursor_factory = None 543s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 543s kwasync = {} 543s 543s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 543s """ 543s Create a new database connection. 543s 543s The connection parameters can be specified as a string: 543s 543s conn = psycopg2.connect("dbname=test user=postgres password=secret") 543s 543s or using a set of keyword arguments: 543s 543s conn = psycopg2.connect(database="test", user="postgres", password="secret") 543s 543s Or as a mix of both. The basic connection parameters are: 543s 543s - *dbname*: the database name 543s - *database*: the database name (only as keyword argument) 543s - *user*: user name used to authenticate 543s - *password*: password used to authenticate 543s - *host*: database host address (defaults to UNIX socket if not provided) 543s - *port*: connection port number (defaults to 5432 if not provided) 543s 543s Using the *connection_factory* parameter a different class or connections 543s factory can be specified. It should be a callable object taking a dsn 543s argument. 543s 543s Using the *cursor_factory* parameter, a new default cursor factory will be 543s used by cursor(). 543s 543s Using *async*=True an asynchronous connection will be created. *async_* is 543s a valid alias (for Python versions where ``async`` is a keyword). 543s 543s Any other keyword parameter will be passed to the underlying client 543s library: the list of supported parameters depends on the library version. 543s 543s """ 543s kwasync = {} 543s if 'async' in kwargs: 543s kwasync['async'] = kwargs.pop('async') 543s if 'async_' in kwargs: 543s kwasync['async_'] = kwargs.pop('async_') 543s 543s dsn = _ext.make_dsn(dsn, **kwargs) 543s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 543s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 50681 failed: FATAL: sorry, too many clients already 543s 543s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 543s 543s The above exception was the direct cause of the following exception: 543s 543s self = 543s method = > 543s 543s def setup_method(self, method): 543s self.metadata = sa.MetaData() 543s 543s self.engine = sa.create_engine(self.engine_uri) 544s # self.engine.echo = True 544s > self.connection = self.engine.connect() 544s 544s tests/__init__.py:135: 544s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 544s return self._connection_cls(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 544s Connection._handle_dbapi_exception_noconnection( 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 544s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 544s self._dbapi_connection = engine.raw_connection() 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 544s return self.pool.connect() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 544s return _ConnectionFairy._checkout(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 544s fairy = _ConnectionRecord.checkout(pool) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 544s rec = pool._do_get() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 544s with util.safe_reraise(): 544s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 544s raise exc_value.with_traceback(exc_tb) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 544s return self._create_connection() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 544s return _ConnectionRecord(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 544s self.__connect() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 544s with util.safe_reraise(): 544s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 544s raise exc_value.with_traceback(exc_tb) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 544s self.dbapi_connection = connection = pool._invoke_creator(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 544s return dialect.connect(*cargs, **cparams) 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 544s return self.loaded_dbapi.connect(*cargs, **cparams) 544s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 544s 544s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 544s connection_factory = None, cursor_factory = None 544s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 544s kwasync = {} 544s 544s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 544s """ 544s Create a new database connection. 544s 544s The connection parameters can be specified as a string: 544s 544s conn = psycopg2.connect("dbname=test user=postgres password=secret") 544s 544s or using a set of keyword arguments: 544s 544s conn = psycopg2.connect(database="test", user="postgres", password="secret") 544s 544s Or as a mix of both. The basic connection parameters are: 544s 544s - *dbname*: the database name 544s - *database*: the database name (only as keyword argument) 544s - *user*: user name used to authenticate 544s - *password*: password used to authenticate 544s - *host*: database host address (defaults to UNIX socket if not provided) 544s - *port*: connection port number (defaults to 5432 if not provided) 544s 544s Using the *connection_factory* parameter a different class or connections 544s factory can be specified. It should be a callable object taking a dsn 544s argument. 544s 544s Using the *cursor_factory* parameter, a new default cursor factory will be 544s used by cursor(). 544s 544s Using *async*=True an asynchronous connection will be created. *async_* is 544s a valid alias (for Python versions where ``async`` is a keyword). 544s 544s Any other keyword parameter will be passed to the underlying client 544s library: the list of supported parameters depends on the library version. 544s 544s """ 544s kwasync = {} 544s if 'async' in kwargs: 544s kwasync['async'] = kwargs.pop('async') 544s if 'async_' in kwargs: 544s kwasync['async_'] = kwargs.pop('async_') 544s 544s dsn = _ext.make_dsn(dsn, **kwargs) 544s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 544s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 50681 failed: FATAL: sorry, too many clients already 544s E 544s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 544s 544s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 544s ____________ ERROR at setup of TestClassic.test_proxy_not_contains _____________ 544s 544s self = 544s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 544s connection = None, _has_events = None, _allow_revalidate = True 544s _allow_autobegin = True 544s 544s def __init__( 544s self, 544s engine: Engine, 544s connection: Optional[PoolProxiedConnection] = None, 544s _has_events: Optional[bool] = None, 544s _allow_revalidate: bool = True, 544s _allow_autobegin: bool = True, 544s ): 544s """Construct a new Connection.""" 544s self.engine = engine 544s self.dialect = dialect = engine.dialect 544s 544s if connection is None: 544s try: 544s > self._dbapi_connection = engine.raw_connection() 544s 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 544s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 544s return self.pool.connect() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 544s return _ConnectionFairy._checkout(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 544s fairy = _ConnectionRecord.checkout(pool) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 544s rec = pool._do_get() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 544s with util.safe_reraise(): 544s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 544s raise exc_value.with_traceback(exc_tb) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 544s return self._create_connection() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 544s return _ConnectionRecord(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 544s self.__connect() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 544s with util.safe_reraise(): 544s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 544s raise exc_value.with_traceback(exc_tb) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 544s self.dbapi_connection = connection = pool._invoke_creator(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 544s return dialect.connect(*cargs, **cparams) 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 544s return self.loaded_dbapi.connect(*cargs, **cparams) 544s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 544s 544s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 544s connection_factory = None, cursor_factory = None 544s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 544s kwasync = {} 544s 544s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 544s """ 544s Create a new database connection. 544s 544s The connection parameters can be specified as a string: 544s 544s conn = psycopg2.connect("dbname=test user=postgres password=secret") 544s 544s or using a set of keyword arguments: 544s 544s conn = psycopg2.connect(database="test", user="postgres", password="secret") 544s 544s Or as a mix of both. The basic connection parameters are: 544s 544s - *dbname*: the database name 544s - *database*: the database name (only as keyword argument) 544s - *user*: user name used to authenticate 544s - *password*: password used to authenticate 544s - *host*: database host address (defaults to UNIX socket if not provided) 544s - *port*: connection port number (defaults to 5432 if not provided) 544s 544s Using the *connection_factory* parameter a different class or connections 544s factory can be specified. It should be a callable object taking a dsn 544s argument. 544s 544s Using the *cursor_factory* parameter, a new default cursor factory will be 544s used by cursor(). 544s 544s Using *async*=True an asynchronous connection will be created. *async_* is 544s a valid alias (for Python versions where ``async`` is a keyword). 544s 544s Any other keyword parameter will be passed to the underlying client 544s library: the list of supported parameters depends on the library version. 544s 544s """ 544s kwasync = {} 544s if 'async' in kwargs: 544s kwasync['async'] = kwargs.pop('async') 544s if 'async_' in kwargs: 544s kwasync['async_'] = kwargs.pop('async_') 544s 544s dsn = _ext.make_dsn(dsn, **kwargs) 544s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 544s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 50681 failed: FATAL: sorry, too many clients already 544s 544s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 544s 544s The above exception was the direct cause of the following exception: 544s 544s self = 544s method = > 544s 544s def setup_method(self, method): 544s self.metadata = sa.MetaData() 544s 544s self.engine = sa.create_engine(self.engine_uri) 544s # self.engine.echo = True 544s > self.connection = self.engine.connect() 544s 544s tests/__init__.py:135: 544s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 544s return self._connection_cls(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 544s Connection._handle_dbapi_exception_noconnection( 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 544s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 544s self._dbapi_connection = engine.raw_connection() 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 544s return self.pool.connect() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 544s return _ConnectionFairy._checkout(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 544s fairy = _ConnectionRecord.checkout(pool) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 544s rec = pool._do_get() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 544s with util.safe_reraise(): 544s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 544s raise exc_value.with_traceback(exc_tb) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 544s return self._create_connection() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 544s return _ConnectionRecord(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 544s self.__connect() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 544s with util.safe_reraise(): 544s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 544s raise exc_value.with_traceback(exc_tb) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 544s self.dbapi_connection = connection = pool._invoke_creator(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 544s return dialect.connect(*cargs, **cparams) 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 544s return self.loaded_dbapi.connect(*cargs, **cparams) 544s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 544s 544s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 544s connection_factory = None, cursor_factory = None 544s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 544s kwasync = {} 544s 544s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 544s """ 544s Create a new database connection. 544s 544s The connection parameters can be specified as a string: 544s 544s conn = psycopg2.connect("dbname=test user=postgres password=secret") 544s 544s or using a set of keyword arguments: 544s 544s conn = psycopg2.connect(database="test", user="postgres", password="secret") 544s 544s Or as a mix of both. The basic connection parameters are: 544s 544s - *dbname*: the database name 544s - *database*: the database name (only as keyword argument) 544s - *user*: user name used to authenticate 544s - *password*: password used to authenticate 544s - *host*: database host address (defaults to UNIX socket if not provided) 544s - *port*: connection port number (defaults to 5432 if not provided) 544s 544s Using the *connection_factory* parameter a different class or connections 544s factory can be specified. It should be a callable object taking a dsn 544s argument. 544s 544s Using the *cursor_factory* parameter, a new default cursor factory will be 544s used by cursor(). 544s 544s Using *async*=True an asynchronous connection will be created. *async_* is 544s a valid alias (for Python versions where ``async`` is a keyword). 544s 544s Any other keyword parameter will be passed to the underlying client 544s library: the list of supported parameters depends on the library version. 544s 544s """ 544s kwasync = {} 544s if 'async' in kwargs: 544s kwasync['async'] = kwargs.pop('async') 544s if 'async_' in kwargs: 544s kwasync['async_'] = kwargs.pop('async_') 544s 544s dsn = _ext.make_dsn(dsn, **kwargs) 544s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 544s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 50681 failed: FATAL: sorry, too many clients already 544s E 544s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 544s 544s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 544s ___________________ ERROR at setup of TestClassic.test_items ___________________ 544s 544s self = 544s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 544s connection = None, _has_events = None, _allow_revalidate = True 544s _allow_autobegin = True 544s 544s def __init__( 544s self, 544s engine: Engine, 544s connection: Optional[PoolProxiedConnection] = None, 544s _has_events: Optional[bool] = None, 544s _allow_revalidate: bool = True, 544s _allow_autobegin: bool = True, 544s ): 544s """Construct a new Connection.""" 544s self.engine = engine 544s self.dialect = dialect = engine.dialect 544s 544s if connection is None: 544s try: 544s > self._dbapi_connection = engine.raw_connection() 544s 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 544s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 544s return self.pool.connect() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 544s return _ConnectionFairy._checkout(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 544s fairy = _ConnectionRecord.checkout(pool) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 544s rec = pool._do_get() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 544s with util.safe_reraise(): 544s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 544s raise exc_value.with_traceback(exc_tb) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 544s return self._create_connection() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 544s return _ConnectionRecord(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 544s self.__connect() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 544s with util.safe_reraise(): 544s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 544s raise exc_value.with_traceback(exc_tb) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 544s self.dbapi_connection = connection = pool._invoke_creator(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 544s return dialect.connect(*cargs, **cparams) 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 544s return self.loaded_dbapi.connect(*cargs, **cparams) 544s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 544s 544s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 544s connection_factory = None, cursor_factory = None 544s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 544s kwasync = {} 544s 544s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 544s """ 544s Create a new database connection. 544s 544s The connection parameters can be specified as a string: 544s 544s conn = psycopg2.connect("dbname=test user=postgres password=secret") 544s 544s or using a set of keyword arguments: 544s 544s conn = psycopg2.connect(database="test", user="postgres", password="secret") 544s 544s Or as a mix of both. The basic connection parameters are: 544s 544s - *dbname*: the database name 544s - *database*: the database name (only as keyword argument) 544s - *user*: user name used to authenticate 544s - *password*: password used to authenticate 544s - *host*: database host address (defaults to UNIX socket if not provided) 544s - *port*: connection port number (defaults to 5432 if not provided) 544s 544s Using the *connection_factory* parameter a different class or connections 544s factory can be specified. It should be a callable object taking a dsn 544s argument. 544s 544s Using the *cursor_factory* parameter, a new default cursor factory will be 544s used by cursor(). 544s 544s Using *async*=True an asynchronous connection will be created. *async_* is 544s a valid alias (for Python versions where ``async`` is a keyword). 544s 544s Any other keyword parameter will be passed to the underlying client 544s library: the list of supported parameters depends on the library version. 544s 544s """ 544s kwasync = {} 544s if 'async' in kwargs: 544s kwasync['async'] = kwargs.pop('async') 544s if 'async_' in kwargs: 544s kwasync['async_'] = kwargs.pop('async_') 544s 544s dsn = _ext.make_dsn(dsn, **kwargs) 544s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 544s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 50681 failed: FATAL: sorry, too many clients already 544s 544s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 544s 544s The above exception was the direct cause of the following exception: 544s 544s self = 544s method = > 544s 544s def setup_method(self, method): 544s self.metadata = sa.MetaData() 544s 544s self.engine = sa.create_engine(self.engine_uri) 544s # self.engine.echo = True 544s > self.connection = self.engine.connect() 544s 544s tests/__init__.py:135: 544s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 544s return self._connection_cls(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 544s Connection._handle_dbapi_exception_noconnection( 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 544s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 544s self._dbapi_connection = engine.raw_connection() 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 544s return self.pool.connect() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 544s return _ConnectionFairy._checkout(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 544s fairy = _ConnectionRecord.checkout(pool) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 544s rec = pool._do_get() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 544s with util.safe_reraise(): 544s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 544s raise exc_value.with_traceback(exc_tb) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 544s return self._create_connection() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 544s return _ConnectionRecord(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 544s self.__connect() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 544s with util.safe_reraise(): 544s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 544s raise exc_value.with_traceback(exc_tb) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 544s self.dbapi_connection = connection = pool._invoke_creator(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 544s return dialect.connect(*cargs, **cparams) 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 544s return self.loaded_dbapi.connect(*cargs, **cparams) 544s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 544s 544s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 544s connection_factory = None, cursor_factory = None 544s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 544s kwasync = {} 544s 544s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 544s """ 544s Create a new database connection. 544s 544s The connection parameters can be specified as a string: 544s 544s conn = psycopg2.connect("dbname=test user=postgres password=secret") 544s 544s or using a set of keyword arguments: 544s 544s conn = psycopg2.connect(database="test", user="postgres", password="secret") 544s 544s Or as a mix of both. The basic connection parameters are: 544s 544s - *dbname*: the database name 544s - *database*: the database name (only as keyword argument) 544s - *user*: user name used to authenticate 544s - *password*: password used to authenticate 544s - *host*: database host address (defaults to UNIX socket if not provided) 544s - *port*: connection port number (defaults to 5432 if not provided) 544s 544s Using the *connection_factory* parameter a different class or connections 544s factory can be specified. It should be a callable object taking a dsn 544s argument. 544s 544s Using the *cursor_factory* parameter, a new default cursor factory will be 544s used by cursor(). 544s 544s Using *async*=True an asynchronous connection will be created. *async_* is 544s a valid alias (for Python versions where ``async`` is a keyword). 544s 544s Any other keyword parameter will be passed to the underlying client 544s library: the list of supported parameters depends on the library version. 544s 544s """ 544s kwasync = {} 544s if 'async' in kwargs: 544s kwasync['async'] = kwargs.pop('async') 544s if 'async_' in kwargs: 544s kwasync['async_'] = kwargs.pop('async_') 544s 544s dsn = _ext.make_dsn(dsn, **kwargs) 544s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 544s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 50681 failed: FATAL: sorry, too many clients already 544s E 544s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 544s 544s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 544s _________________ ERROR at setup of TestClassic.test_iteritems _________________ 544s 544s self = 544s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 544s connection = None, _has_events = None, _allow_revalidate = True 544s _allow_autobegin = True 544s 544s def __init__( 544s self, 544s engine: Engine, 544s connection: Optional[PoolProxiedConnection] = None, 544s _has_events: Optional[bool] = None, 544s _allow_revalidate: bool = True, 544s _allow_autobegin: bool = True, 544s ): 544s """Construct a new Connection.""" 544s self.engine = engine 544s self.dialect = dialect = engine.dialect 544s 544s if connection is None: 544s try: 544s > self._dbapi_connection = engine.raw_connection() 544s 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 544s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 544s return self.pool.connect() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 544s return _ConnectionFairy._checkout(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 544s fairy = _ConnectionRecord.checkout(pool) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 544s rec = pool._do_get() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 544s with util.safe_reraise(): 544s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 544s raise exc_value.with_traceback(exc_tb) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 544s return self._create_connection() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 544s return _ConnectionRecord(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 544s self.__connect() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 544s with util.safe_reraise(): 544s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 544s raise exc_value.with_traceback(exc_tb) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 544s self.dbapi_connection = connection = pool._invoke_creator(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 544s return dialect.connect(*cargs, **cparams) 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 544s return self.loaded_dbapi.connect(*cargs, **cparams) 544s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 544s 544s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 544s connection_factory = None, cursor_factory = None 544s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 544s kwasync = {} 544s 544s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 544s """ 544s Create a new database connection. 544s 544s The connection parameters can be specified as a string: 544s 544s conn = psycopg2.connect("dbname=test user=postgres password=secret") 544s 544s or using a set of keyword arguments: 544s 544s conn = psycopg2.connect(database="test", user="postgres", password="secret") 544s 544s Or as a mix of both. The basic connection parameters are: 544s 544s - *dbname*: the database name 544s - *database*: the database name (only as keyword argument) 544s - *user*: user name used to authenticate 544s - *password*: password used to authenticate 544s - *host*: database host address (defaults to UNIX socket if not provided) 544s - *port*: connection port number (defaults to 5432 if not provided) 544s 544s Using the *connection_factory* parameter a different class or connections 544s factory can be specified. It should be a callable object taking a dsn 544s argument. 544s 544s Using the *cursor_factory* parameter, a new default cursor factory will be 544s used by cursor(). 544s 544s Using *async*=True an asynchronous connection will be created. *async_* is 544s a valid alias (for Python versions where ``async`` is a keyword). 544s 544s Any other keyword parameter will be passed to the underlying client 544s library: the list of supported parameters depends on the library version. 544s 544s """ 544s kwasync = {} 544s if 'async' in kwargs: 544s kwasync['async'] = kwargs.pop('async') 544s if 'async_' in kwargs: 544s kwasync['async_'] = kwargs.pop('async_') 544s 544s dsn = _ext.make_dsn(dsn, **kwargs) 544s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 544s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 50681 failed: FATAL: sorry, too many clients already 544s 544s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 544s 544s The above exception was the direct cause of the following exception: 544s 544s self = 544s method = > 544s 544s def setup_method(self, method): 544s self.metadata = sa.MetaData() 544s 544s self.engine = sa.create_engine(self.engine_uri) 544s # self.engine.echo = True 544s > self.connection = self.engine.connect() 544s 544s tests/__init__.py:135: 544s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 544s return self._connection_cls(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 544s Connection._handle_dbapi_exception_noconnection( 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 544s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 544s self._dbapi_connection = engine.raw_connection() 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 544s return self.pool.connect() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 544s return _ConnectionFairy._checkout(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 544s fairy = _ConnectionRecord.checkout(pool) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 544s rec = pool._do_get() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 544s with util.safe_reraise(): 544s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 544s raise exc_value.with_traceback(exc_tb) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 544s return self._create_connection() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 544s return _ConnectionRecord(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 544s self.__connect() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 544s with util.safe_reraise(): 544s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 544s raise exc_value.with_traceback(exc_tb) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 544s self.dbapi_connection = connection = pool._invoke_creator(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 544s return dialect.connect(*cargs, **cparams) 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 544s return self.loaded_dbapi.connect(*cargs, **cparams) 544s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 544s 544s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 544s connection_factory = None, cursor_factory = None 544s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 544s kwasync = {} 544s 544s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 544s """ 544s Create a new database connection. 544s 544s The connection parameters can be specified as a string: 544s 544s conn = psycopg2.connect("dbname=test user=postgres password=secret") 544s 544s or using a set of keyword arguments: 544s 544s conn = psycopg2.connect(database="test", user="postgres", password="secret") 544s 544s Or as a mix of both. The basic connection parameters are: 544s 544s - *dbname*: the database name 544s - *database*: the database name (only as keyword argument) 544s - *user*: user name used to authenticate 544s - *password*: password used to authenticate 544s - *host*: database host address (defaults to UNIX socket if not provided) 544s - *port*: connection port number (defaults to 5432 if not provided) 544s 544s Using the *connection_factory* parameter a different class or connections 544s factory can be specified. It should be a callable object taking a dsn 544s argument. 544s 544s Using the *cursor_factory* parameter, a new default cursor factory will be 544s used by cursor(). 544s 544s Using *async*=True an asynchronous connection will be created. *async_* is 544s a valid alias (for Python versions where ``async`` is a keyword). 544s 544s Any other keyword parameter will be passed to the underlying client 544s library: the list of supported parameters depends on the library version. 544s 544s """ 544s kwasync = {} 544s if 'async' in kwargs: 544s kwasync['async'] = kwargs.pop('async') 544s if 'async_' in kwargs: 544s kwasync['async_'] = kwargs.pop('async_') 544s 544s dsn = _ext.make_dsn(dsn, **kwargs) 544s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 544s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 50681 failed: FATAL: sorry, too many clients already 544s E 544s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 544s 544s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 544s _________________ ERROR at setup of TestClassic.test_set_item __________________ 544s 544s self = 544s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 544s connection = None, _has_events = None, _allow_revalidate = True 544s _allow_autobegin = True 544s 544s def __init__( 544s self, 544s engine: Engine, 544s connection: Optional[PoolProxiedConnection] = None, 544s _has_events: Optional[bool] = None, 544s _allow_revalidate: bool = True, 544s _allow_autobegin: bool = True, 544s ): 544s """Construct a new Connection.""" 544s self.engine = engine 544s self.dialect = dialect = engine.dialect 544s 544s if connection is None: 544s try: 544s > self._dbapi_connection = engine.raw_connection() 544s 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 544s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 544s return self.pool.connect() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 544s return _ConnectionFairy._checkout(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 544s fairy = _ConnectionRecord.checkout(pool) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 544s rec = pool._do_get() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 544s with util.safe_reraise(): 544s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 544s raise exc_value.with_traceback(exc_tb) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 544s return self._create_connection() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 544s return _ConnectionRecord(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 544s self.__connect() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 544s with util.safe_reraise(): 544s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 544s raise exc_value.with_traceback(exc_tb) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 544s self.dbapi_connection = connection = pool._invoke_creator(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 544s return dialect.connect(*cargs, **cparams) 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 544s return self.loaded_dbapi.connect(*cargs, **cparams) 544s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 544s 544s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 544s connection_factory = None, cursor_factory = None 544s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 544s kwasync = {} 544s 544s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 544s """ 544s Create a new database connection. 544s 544s The connection parameters can be specified as a string: 544s 544s conn = psycopg2.connect("dbname=test user=postgres password=secret") 544s 544s or using a set of keyword arguments: 544s 544s conn = psycopg2.connect(database="test", user="postgres", password="secret") 544s 544s Or as a mix of both. The basic connection parameters are: 544s 544s - *dbname*: the database name 544s - *database*: the database name (only as keyword argument) 544s - *user*: user name used to authenticate 544s - *password*: password used to authenticate 544s - *host*: database host address (defaults to UNIX socket if not provided) 544s - *port*: connection port number (defaults to 5432 if not provided) 544s 544s Using the *connection_factory* parameter a different class or connections 544s factory can be specified. It should be a callable object taking a dsn 544s argument. 544s 544s Using the *cursor_factory* parameter, a new default cursor factory will be 544s used by cursor(). 544s 544s Using *async*=True an asynchronous connection will be created. *async_* is 544s a valid alias (for Python versions where ``async`` is a keyword). 544s 544s Any other keyword parameter will be passed to the underlying client 544s library: the list of supported parameters depends on the library version. 544s 544s """ 544s kwasync = {} 544s if 'async' in kwargs: 544s kwasync['async'] = kwargs.pop('async') 544s if 'async_' in kwargs: 544s kwasync['async_'] = kwargs.pop('async_') 544s 544s dsn = _ext.make_dsn(dsn, **kwargs) 544s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 544s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 50681 failed: FATAL: sorry, too many clients already 544s 544s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 544s 544s The above exception was the direct cause of the following exception: 544s 544s self = 544s method = > 544s 544s def setup_method(self, method): 544s self.metadata = sa.MetaData() 544s 544s self.engine = sa.create_engine(self.engine_uri) 544s # self.engine.echo = True 544s > self.connection = self.engine.connect() 544s 544s tests/__init__.py:135: 544s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 544s return self._connection_cls(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 544s Connection._handle_dbapi_exception_noconnection( 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 544s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 544s self._dbapi_connection = engine.raw_connection() 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 544s return self.pool.connect() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 544s return _ConnectionFairy._checkout(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 544s fairy = _ConnectionRecord.checkout(pool) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 544s rec = pool._do_get() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 544s with util.safe_reraise(): 544s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 544s raise exc_value.with_traceback(exc_tb) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 544s return self._create_connection() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 544s return _ConnectionRecord(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 544s self.__connect() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 544s with util.safe_reraise(): 544s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 544s raise exc_value.with_traceback(exc_tb) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 544s self.dbapi_connection = connection = pool._invoke_creator(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 544s return dialect.connect(*cargs, **cparams) 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 544s return self.loaded_dbapi.connect(*cargs, **cparams) 544s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 544s 544s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 544s connection_factory = None, cursor_factory = None 544s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 544s kwasync = {} 544s 544s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 544s """ 544s Create a new database connection. 544s 544s The connection parameters can be specified as a string: 544s 544s conn = psycopg2.connect("dbname=test user=postgres password=secret") 544s 544s or using a set of keyword arguments: 544s 544s conn = psycopg2.connect(database="test", user="postgres", password="secret") 544s 544s Or as a mix of both. The basic connection parameters are: 544s 544s - *dbname*: the database name 544s - *database*: the database name (only as keyword argument) 544s - *user*: user name used to authenticate 544s - *password*: password used to authenticate 544s - *host*: database host address (defaults to UNIX socket if not provided) 544s - *port*: connection port number (defaults to 5432 if not provided) 544s 544s Using the *connection_factory* parameter a different class or connections 544s factory can be specified. It should be a callable object taking a dsn 544s argument. 544s 544s Using the *cursor_factory* parameter, a new default cursor factory will be 544s used by cursor(). 544s 544s Using *async*=True an asynchronous connection will be created. *async_* is 544s a valid alias (for Python versions where ``async`` is a keyword). 544s 544s Any other keyword parameter will be passed to the underlying client 544s library: the list of supported parameters depends on the library version. 544s 544s """ 544s kwasync = {} 544s if 'async' in kwargs: 544s kwasync['async'] = kwargs.pop('async') 544s if 'async_' in kwargs: 544s kwasync['async_'] = kwargs.pop('async_') 544s 544s dsn = _ext.make_dsn(dsn, **kwargs) 544s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 544s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 50681 failed: FATAL: sorry, too many clients already 544s E 544s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 544s 544s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 544s ___________________ ERROR at setup of TestClassic.test_repr ____________________ 544s 544s self = 544s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 544s connection = None, _has_events = None, _allow_revalidate = True 544s _allow_autobegin = True 544s 544s def __init__( 544s self, 544s engine: Engine, 544s connection: Optional[PoolProxiedConnection] = None, 544s _has_events: Optional[bool] = None, 544s _allow_revalidate: bool = True, 544s _allow_autobegin: bool = True, 544s ): 544s """Construct a new Connection.""" 544s self.engine = engine 544s self.dialect = dialect = engine.dialect 544s 544s if connection is None: 544s try: 544s > self._dbapi_connection = engine.raw_connection() 544s 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 544s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 544s return self.pool.connect() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 544s return _ConnectionFairy._checkout(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 544s fairy = _ConnectionRecord.checkout(pool) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 544s rec = pool._do_get() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 544s with util.safe_reraise(): 544s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 544s raise exc_value.with_traceback(exc_tb) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 544s return self._create_connection() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 544s return _ConnectionRecord(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 544s self.__connect() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 544s with util.safe_reraise(): 544s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 544s raise exc_value.with_traceback(exc_tb) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 544s self.dbapi_connection = connection = pool._invoke_creator(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 544s return dialect.connect(*cargs, **cparams) 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 544s return self.loaded_dbapi.connect(*cargs, **cparams) 544s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 544s 544s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 544s connection_factory = None, cursor_factory = None 544s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 544s kwasync = {} 544s 544s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 544s """ 544s Create a new database connection. 544s 544s The connection parameters can be specified as a string: 544s 544s conn = psycopg2.connect("dbname=test user=postgres password=secret") 544s 544s or using a set of keyword arguments: 544s 544s conn = psycopg2.connect(database="test", user="postgres", password="secret") 544s 544s Or as a mix of both. The basic connection parameters are: 544s 544s - *dbname*: the database name 544s - *database*: the database name (only as keyword argument) 544s - *user*: user name used to authenticate 544s - *password*: password used to authenticate 544s - *host*: database host address (defaults to UNIX socket if not provided) 544s - *port*: connection port number (defaults to 5432 if not provided) 544s 544s Using the *connection_factory* parameter a different class or connections 544s factory can be specified. It should be a callable object taking a dsn 544s argument. 544s 544s Using the *cursor_factory* parameter, a new default cursor factory will be 544s used by cursor(). 544s 544s Using *async*=True an asynchronous connection will be created. *async_* is 544s a valid alias (for Python versions where ``async`` is a keyword). 544s 544s Any other keyword parameter will be passed to the underlying client 544s library: the list of supported parameters depends on the library version. 544s 544s """ 544s kwasync = {} 544s if 'async' in kwargs: 544s kwasync['async'] = kwargs.pop('async') 544s if 'async_' in kwargs: 544s kwasync['async_'] = kwargs.pop('async_') 544s 544s dsn = _ext.make_dsn(dsn, **kwargs) 544s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 544s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 50681 failed: FATAL: sorry, too many clients already 544s 544s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 544s 544s The above exception was the direct cause of the following exception: 544s 544s self = 544s method = > 544s 544s def setup_method(self, method): 544s self.metadata = sa.MetaData() 544s 544s self.engine = sa.create_engine(self.engine_uri) 544s # self.engine.echo = True 544s > self.connection = self.engine.connect() 544s 544s tests/__init__.py:135: 544s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 544s return self._connection_cls(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 544s Connection._handle_dbapi_exception_noconnection( 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 544s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 544s self._dbapi_connection = engine.raw_connection() 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 544s return self.pool.connect() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 544s return _ConnectionFairy._checkout(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 544s fairy = _ConnectionRecord.checkout(pool) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 544s rec = pool._do_get() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 544s with util.safe_reraise(): 544s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 544s raise exc_value.with_traceback(exc_tb) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 544s return self._create_connection() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 544s return _ConnectionRecord(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 544s self.__connect() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 544s with util.safe_reraise(): 544s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 544s raise exc_value.with_traceback(exc_tb) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 544s self.dbapi_connection = connection = pool._invoke_creator(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 544s return dialect.connect(*cargs, **cparams) 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 544s return self.loaded_dbapi.connect(*cargs, **cparams) 544s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 544s 544s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 544s connection_factory = None, cursor_factory = None 544s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 544s kwasync = {} 544s 544s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 544s """ 544s Create a new database connection. 544s 544s The connection parameters can be specified as a string: 544s 544s conn = psycopg2.connect("dbname=test user=postgres password=secret") 544s 544s or using a set of keyword arguments: 544s 544s conn = psycopg2.connect(database="test", user="postgres", password="secret") 544s 544s Or as a mix of both. The basic connection parameters are: 544s 544s - *dbname*: the database name 544s - *database*: the database name (only as keyword argument) 544s - *user*: user name used to authenticate 544s - *password*: password used to authenticate 544s - *host*: database host address (defaults to UNIX socket if not provided) 544s - *port*: connection port number (defaults to 5432 if not provided) 544s 544s Using the *connection_factory* parameter a different class or connections 544s factory can be specified. It should be a callable object taking a dsn 544s argument. 544s 544s Using the *cursor_factory* parameter, a new default cursor factory will be 544s used by cursor(). 544s 544s Using *async*=True an asynchronous connection will be created. *async_* is 544s a valid alias (for Python versions where ``async`` is a keyword). 544s 544s Any other keyword parameter will be passed to the underlying client 544s library: the list of supported parameters depends on the library version. 544s 544s """ 544s kwasync = {} 544s if 'async' in kwargs: 544s kwasync['async'] = kwargs.pop('async') 544s if 'async_' in kwargs: 544s kwasync['async_'] = kwargs.pop('async_') 544s 544s dsn = _ext.make_dsn(dsn, **kwargs) 544s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 544s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 50681 failed: FATAL: sorry, too many clients already 544s E 544s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 544s 544s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 544s ___________________ ERROR at setup of TestClassic.test_iter ____________________ 544s 544s self = 544s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 544s connection = None, _has_events = None, _allow_revalidate = True 544s _allow_autobegin = True 544s 544s def __init__( 544s self, 544s engine: Engine, 544s connection: Optional[PoolProxiedConnection] = None, 544s _has_events: Optional[bool] = None, 544s _allow_revalidate: bool = True, 544s _allow_autobegin: bool = True, 544s ): 544s """Construct a new Connection.""" 544s self.engine = engine 544s self.dialect = dialect = engine.dialect 544s 544s if connection is None: 544s try: 544s > self._dbapi_connection = engine.raw_connection() 544s 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 544s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 544s return self.pool.connect() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 544s return _ConnectionFairy._checkout(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 544s fairy = _ConnectionRecord.checkout(pool) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 544s rec = pool._do_get() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 544s with util.safe_reraise(): 544s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 544s raise exc_value.with_traceback(exc_tb) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 544s return self._create_connection() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 544s return _ConnectionRecord(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 544s self.__connect() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 544s with util.safe_reraise(): 544s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 544s raise exc_value.with_traceback(exc_tb) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 544s self.dbapi_connection = connection = pool._invoke_creator(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 544s return dialect.connect(*cargs, **cparams) 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 544s return self.loaded_dbapi.connect(*cargs, **cparams) 544s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 544s 544s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 544s connection_factory = None, cursor_factory = None 544s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 544s kwasync = {} 544s 544s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 544s """ 544s Create a new database connection. 544s 544s The connection parameters can be specified as a string: 544s 544s conn = psycopg2.connect("dbname=test user=postgres password=secret") 544s 544s or using a set of keyword arguments: 544s 544s conn = psycopg2.connect(database="test", user="postgres", password="secret") 544s 544s Or as a mix of both. The basic connection parameters are: 544s 544s - *dbname*: the database name 544s - *database*: the database name (only as keyword argument) 544s - *user*: user name used to authenticate 544s - *password*: password used to authenticate 544s - *host*: database host address (defaults to UNIX socket if not provided) 544s - *port*: connection port number (defaults to 5432 if not provided) 544s 544s Using the *connection_factory* parameter a different class or connections 544s factory can be specified. It should be a callable object taking a dsn 544s argument. 544s 544s Using the *cursor_factory* parameter, a new default cursor factory will be 544s used by cursor(). 544s 544s Using *async*=True an asynchronous connection will be created. *async_* is 544s a valid alias (for Python versions where ``async`` is a keyword). 544s 544s Any other keyword parameter will be passed to the underlying client 544s library: the list of supported parameters depends on the library version. 544s 544s """ 544s kwasync = {} 544s if 'async' in kwargs: 544s kwasync['async'] = kwargs.pop('async') 544s if 'async_' in kwargs: 544s kwasync['async_'] = kwargs.pop('async_') 544s 544s dsn = _ext.make_dsn(dsn, **kwargs) 544s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 544s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 50681 failed: FATAL: sorry, too many clients already 544s 544s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 544s 544s The above exception was the direct cause of the following exception: 544s 544s self = 544s method = > 544s 544s def setup_method(self, method): 544s self.metadata = sa.MetaData() 544s 544s self.engine = sa.create_engine(self.engine_uri) 544s # self.engine.echo = True 544s > self.connection = self.engine.connect() 544s 544s tests/__init__.py:135: 544s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 544s return self._connection_cls(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 544s Connection._handle_dbapi_exception_noconnection( 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 544s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 544s self._dbapi_connection = engine.raw_connection() 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 544s return self.pool.connect() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 544s return _ConnectionFairy._checkout(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 544s fairy = _ConnectionRecord.checkout(pool) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 544s rec = pool._do_get() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 544s with util.safe_reraise(): 544s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 544s raise exc_value.with_traceback(exc_tb) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 544s return self._create_connection() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 544s return _ConnectionRecord(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 544s self.__connect() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 544s with util.safe_reraise(): 544s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 544s raise exc_value.with_traceback(exc_tb) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 544s self.dbapi_connection = connection = pool._invoke_creator(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 544s return dialect.connect(*cargs, **cparams) 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 544s return self.loaded_dbapi.connect(*cargs, **cparams) 544s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 544s 544s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 544s connection_factory = None, cursor_factory = None 544s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 544s kwasync = {} 544s 544s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 544s """ 544s Create a new database connection. 544s 544s The connection parameters can be specified as a string: 544s 544s conn = psycopg2.connect("dbname=test user=postgres password=secret") 544s 544s or using a set of keyword arguments: 544s 544s conn = psycopg2.connect(database="test", user="postgres", password="secret") 544s 544s Or as a mix of both. The basic connection parameters are: 544s 544s - *dbname*: the database name 544s - *database*: the database name (only as keyword argument) 544s - *user*: user name used to authenticate 544s - *password*: password used to authenticate 544s - *host*: database host address (defaults to UNIX socket if not provided) 544s - *port*: connection port number (defaults to 5432 if not provided) 544s 544s Using the *connection_factory* parameter a different class or connections 544s factory can be specified. It should be a callable object taking a dsn 544s argument. 544s 544s Using the *cursor_factory* parameter, a new default cursor factory will be 544s used by cursor(). 544s 544s Using *async*=True an asynchronous connection will be created. *async_* is 544s a valid alias (for Python versions where ``async`` is a keyword). 544s 544s Any other keyword parameter will be passed to the underlying client 544s library: the list of supported parameters depends on the library version. 544s 544s """ 544s kwasync = {} 544s if 'async' in kwargs: 544s kwasync['async'] = kwargs.pop('async') 544s if 'async_' in kwargs: 544s kwasync['async_'] = kwargs.pop('async_') 544s 544s dsn = _ext.make_dsn(dsn, **kwargs) 544s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 544s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 50681 failed: FATAL: sorry, too many clients already 544s E 544s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 544s 544s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 544s __________________ ERROR at setup of TestClassic.test_values ___________________ 544s 544s self = 544s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 544s connection = None, _has_events = None, _allow_revalidate = True 544s _allow_autobegin = True 544s 544s def __init__( 544s self, 544s engine: Engine, 544s connection: Optional[PoolProxiedConnection] = None, 544s _has_events: Optional[bool] = None, 544s _allow_revalidate: bool = True, 544s _allow_autobegin: bool = True, 544s ): 544s """Construct a new Connection.""" 544s self.engine = engine 544s self.dialect = dialect = engine.dialect 544s 544s if connection is None: 544s try: 544s > self._dbapi_connection = engine.raw_connection() 544s 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 544s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 544s return self.pool.connect() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 544s return _ConnectionFairy._checkout(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 544s fairy = _ConnectionRecord.checkout(pool) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 544s rec = pool._do_get() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 544s with util.safe_reraise(): 544s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 544s raise exc_value.with_traceback(exc_tb) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 544s return self._create_connection() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 544s return _ConnectionRecord(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 544s self.__connect() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 544s with util.safe_reraise(): 544s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 544s raise exc_value.with_traceback(exc_tb) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 544s self.dbapi_connection = connection = pool._invoke_creator(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 544s return dialect.connect(*cargs, **cparams) 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 544s return self.loaded_dbapi.connect(*cargs, **cparams) 544s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 544s 544s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 544s connection_factory = None, cursor_factory = None 544s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 544s kwasync = {} 544s 544s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 544s """ 544s Create a new database connection. 544s 544s The connection parameters can be specified as a string: 544s 544s conn = psycopg2.connect("dbname=test user=postgres password=secret") 544s 544s or using a set of keyword arguments: 544s 544s conn = psycopg2.connect(database="test", user="postgres", password="secret") 544s 544s Or as a mix of both. The basic connection parameters are: 544s 544s - *dbname*: the database name 544s - *database*: the database name (only as keyword argument) 544s - *user*: user name used to authenticate 544s - *password*: password used to authenticate 544s - *host*: database host address (defaults to UNIX socket if not provided) 544s - *port*: connection port number (defaults to 5432 if not provided) 544s 544s Using the *connection_factory* parameter a different class or connections 544s factory can be specified. It should be a callable object taking a dsn 544s argument. 544s 544s Using the *cursor_factory* parameter, a new default cursor factory will be 544s used by cursor(). 544s 544s Using *async*=True an asynchronous connection will be created. *async_* is 544s a valid alias (for Python versions where ``async`` is a keyword). 544s 544s Any other keyword parameter will be passed to the underlying client 544s library: the list of supported parameters depends on the library version. 544s 544s """ 544s kwasync = {} 544s if 'async' in kwargs: 544s kwasync['async'] = kwargs.pop('async') 544s if 'async_' in kwargs: 544s kwasync['async_'] = kwargs.pop('async_') 544s 544s dsn = _ext.make_dsn(dsn, **kwargs) 544s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 544s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 50681 failed: FATAL: sorry, too many clients already 544s 544s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 544s 544s The above exception was the direct cause of the following exception: 544s 544s self = 544s method = > 544s 544s def setup_method(self, method): 544s self.metadata = sa.MetaData() 544s 544s self.engine = sa.create_engine(self.engine_uri) 544s # self.engine.echo = True 544s > self.connection = self.engine.connect() 544s 544s tests/__init__.py:135: 544s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 544s return self._connection_cls(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 544s Connection._handle_dbapi_exception_noconnection( 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 544s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 544s self._dbapi_connection = engine.raw_connection() 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 544s return self.pool.connect() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 544s return _ConnectionFairy._checkout(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 544s fairy = _ConnectionRecord.checkout(pool) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 544s rec = pool._do_get() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 544s with util.safe_reraise(): 544s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 544s raise exc_value.with_traceback(exc_tb) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 544s return self._create_connection() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 544s return _ConnectionRecord(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 544s self.__connect() 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 544s with util.safe_reraise(): 544s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 544s raise exc_value.with_traceback(exc_tb) 544s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 544s self.dbapi_connection = connection = pool._invoke_creator(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 544s return dialect.connect(*cargs, **cparams) 544s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 544s return self.loaded_dbapi.connect(*cargs, **cparams) 544s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 544s 544s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 544s connection_factory = None, cursor_factory = None 544s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 544s kwasync = {} 544s 544s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 544s """ 544s Create a new database connection. 544s 544s The connection parameters can be specified as a string: 544s 544s conn = psycopg2.connect("dbname=test user=postgres password=secret") 544s 544s or using a set of keyword arguments: 544s 544s conn = psycopg2.connect(database="test", user="postgres", password="secret") 544s 544s Or as a mix of both. The basic connection parameters are: 544s 544s - *dbname*: the database name 544s - *database*: the database name (only as keyword argument) 544s - *user*: user name used to authenticate 544s - *password*: password used to authenticate 544s - *host*: database host address (defaults to UNIX socket if not provided) 544s - *port*: connection port number (defaults to 5432 if not provided) 544s 544s Using the *connection_factory* parameter a different class or connections 544s factory can be specified. It should be a callable object taking a dsn 544s argument. 544s 544s Using the *cursor_factory* parameter, a new default cursor factory will be 544s used by cursor(). 544s 544s Using *async*=True an asynchronous connection will be created. *async_* is 544s a valid alias (for Python versions where ``async`` is a keyword). 544s 544s Any other keyword parameter will be passed to the underlying client 544s library: the list of supported parameters depends on the library version. 544s 544s """ 544s kwasync = {} 544s if 'async' in kwargs: 544s kwasync['async'] = kwargs.pop('async') 544s if 'async_' in kwargs: 544s kwasync['async_'] = kwargs.pop('async_') 544s 544s dsn = _ext.make_dsn(dsn, **kwargs) 544s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 544s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 50681 failed: FATAL: sorry, too many clients already 544s E 544s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 544s 544s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 544s =================================== FAILURES =================================== 544s ___________ TestDeclarative.test_does_not_generate_hybrid_properties ___________ 544s 544s self = 544s locale = '_slots_dispatch' 544s 544s def __getattr__(self, locale): 544s class_ = self._parentmapper.class_ 544s try: 544s > return getattr(class_, '_translation_%s' % locale) 544s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 544s 544s sqlalchemy_i18n/comparators.py:13: AttributeError 544s 544s During handling of the above exception, another exception occurred: 544s 544s self = 544s 544s def test_does_not_generate_hybrid_properties(self): 544s > self.Article() 544s 544s tests/test_hybrid_property_exclusion.py:15: 544s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 544s :4: in __init__ 544s ??? 544s /usr/lib/python3/dist-packages/sqlalchemy/orm/state.py:566: in _initialize_instance 544s manager.dispatch.init(self, args, kwargs) 544s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:497: in __call__ 544s fn(*args, **kw) 544s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4396: in _event_on_init 544s instrumenting_mapper._check_configure() 544s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2388: in _check_configure 544s _configure_registries({self.registry}, cascade=True) 544s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 544s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 544s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 544s fn(*args, **kw) 544s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 544s fn(*arg, **kw) 544s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 544s RelationshipBuilder(self, cls)() 544s sqlalchemy_i18n/builders.py:228: in __call__ 544s self.assign_translations() 544s sqlalchemy_i18n/builders.py:186: in assign_translations 544s mapper.add_property('_translations', sa.orm.relationship( 544s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 544s prop = self._configure_property( 544s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 544s prop.post_instrument_class(self) 544s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 544s self.strategy.init_class_attribute(mapper) 544s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 544s _register_attribute( 544s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 544s desc = attributes.register_attribute_impl( 544s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 544s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 544s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 544s if hasattr(obj, "_slots_dispatch"): 544s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 544s return getattr(self.comparator, key) 544s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 544s 544s self = 544s locale = '_slots_dispatch' 544s 544s def __getattr__(self, locale): 544s class_ = self._parentmapper.class_ 544s try: 544s return getattr(class_, '_translation_%s' % locale) 544s except AttributeError: 544s > raise UnknownLocaleError(locale, class_) 544s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 544s 544s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 544s =============================== warnings summary =============================== 544s sqlalchemy_i18n/translatable.py:62 544s /tmp/autopkgtest.xUsyLr/build.kIZ/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. 544s @sa.event.listens_for(sa.orm.mapper, 'expire') 544s 544s sqlalchemy_i18n/__init__.py:41 544s /tmp/autopkgtest.xUsyLr/build.kIZ/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. 544s sa.event.listen( 544s 544s sqlalchemy_i18n/__init__.py:44 544s /tmp/autopkgtest.xUsyLr/build.kIZ/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. 544s sa.event.listen( 544s 544s tests/test_common_base_class.py: 1 warning 544s tests/test_comparator.py: 2 warnings 544s tests/test_composite_primary_key.py: 1 warning 544s tests/test_configuration.py: 2 warnings 544s tests/test_current_translation_property.py: 3 warnings 544s tests/test_current_translation_property_with_locale.py: 1 warning 544s tests/test_custom_base_class.py: 1 warning 544s tests/test_fallback_locale_as_callable.py: 2 warnings 544s tests/test_fallback_locale_without_class_default.py: 2 warnings 544s tests/test_fallback_translation.py: 3 warnings 544s tests/test_find_translations.py: 2 warnings 544s tests/test_hybrid_property_as_dynamic_source_locale.py: 1 warning 544s tests/test_hybrid_property_exclusion.py: 1 warning 544s tests/test_join_expressions.py: 4 warnings 544s tests/test_joined_loading.py: 5 warnings 544s tests/test_joined_table_inheritance.py: 8 warnings 544s tests/test_property_collision.py: 1 warning 544s tests/test_relationships.py: 1 warning 544s tests/test_translatable.py: 8 warnings 544s tests/test_translation_auto_creation.py: 1 warning 544s tests/test_translation_auto_creation_with_non_nullables.py: 1 warning 544s tests/test_translation_mapping.py: 4 warnings 544s /tmp/autopkgtest.xUsyLr/build.kIZ/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) 544s self.Model = declarative_base() 544s 544s tests/test_common_base_class.py: 2 warnings 544s tests/test_comparator.py: 2 warnings 544s tests/test_composite_primary_key.py: 1 warning 544s tests/test_configuration.py: 2 warnings 544s tests/test_current_translation_property.py: 3 warnings 544s tests/test_current_translation_property_with_locale.py: 1 warning 544s tests/test_custom_base_class.py: 1 warning 544s tests/test_fallback_locale_as_callable.py: 2 warnings 544s tests/test_fallback_locale_without_class_default.py: 2 warnings 544s tests/test_fallback_translation.py: 3 warnings 544s tests/test_find_translations.py: 2 warnings 544s tests/test_hybrid_property_as_dynamic_source_locale.py: 1 warning 544s tests/test_hybrid_property_exclusion.py: 1 warning 544s tests/test_join_expressions.py: 4 warnings 544s tests/test_joined_loading.py: 5 warnings 544s tests/test_joined_table_inheritance.py: 8 warnings 544s tests/test_property_collision.py: 1 warning 544s tests/test_relationships.py: 1 warning 544s tests/test_translatable.py: 8 warnings 544s tests/test_translation_auto_creation.py: 1 warning 544s tests/test_translation_auto_creation_with_non_nullables.py: 1 warning 544s tests/test_translation_mapping.py: 4 warnings 544s /tmp/autopkgtest.xUsyLr/build.kIZ/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) 544s if has_inherited_table(cls): 544s 544s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 544s =========================== short test summary info ============================ 544s FAILED tests/test_hybrid_property_exclusion.py::TestDeclarative::test_does_not_generate_hybrid_properties 544s ERROR tests/test_common_base_class.py::TestDeclarative::test_translatable_dict_copied_to_each_child_class 544s ERROR tests/test_common_base_class.py::TestClassic::test_translatable_dict_copied_to_each_child_class 544s ERROR tests/test_comparator.py::TestDeclarative::test_attribute_accessor_for_unknown_locale 544s ERROR tests/test_comparator.py::TestDeclarative::test_attribute_accessors - s... 544s ERROR tests/test_comparator.py::TestClassic::test_attribute_accessor_for_unknown_locale 544s ERROR tests/test_comparator.py::TestClassic::test_attribute_accessors - sqlal... 544s ERROR tests/test_composite_primary_key.py::TestDeclarative::test_relationships 544s ERROR tests/test_composite_primary_key.py::TestClassic::test_relationships - ... 544s ERROR tests/test_configuration.py::TestTranslationBaseCustomization::test_customize_foreign_key_args 544s ERROR tests/test_configuration.py::TestTranslationBaseCustomization::test_customize_relationships_args 544s ERROR tests/test_current_translation_property.py::TestDeclarative::test_as_object_property 544s ERROR tests/test_current_translation_property.py::TestDeclarative::test_as_class_property 544s ERROR tests/test_current_translation_property.py::TestDeclarative::test_setter 544s ERROR tests/test_current_translation_property.py::TestClassic::test_as_object_property 544s ERROR tests/test_current_translation_property.py::TestClassic::test_as_class_property 544s ERROR tests/test_current_translation_property.py::TestClassic::test_setter - ... 544s ERROR tests/test_current_translation_property_with_locale.py::TestDeclarative::test_converts_locale_object_to_unicode 544s ERROR tests/test_current_translation_property_with_locale.py::TestClassic::test_converts_locale_object_to_unicode 544s ERROR tests/test_custom_base_class.py::TestDeclarative::test_translatable_dict_copied_to_each_child_class 544s ERROR tests/test_fallback_locale_as_callable.py::TestDeclarative::test_hybrid_properties_support_callable_fallback_locales 544s ERROR tests/test_fallback_locale_as_callable.py::TestDeclarative::test_locale_fallback 544s ERROR tests/test_fallback_locale_as_callable.py::TestClassic::test_hybrid_properties_support_callable_fallback_locales 544s ERROR tests/test_fallback_locale_as_callable.py::TestClassic::test_locale_fallback 544s ERROR tests/test_fallback_locale_without_class_default.py::TestDeclarative::test_hybrid_properties_support_callable_fallback_locales 544s ERROR tests/test_fallback_locale_without_class_default.py::TestDeclarative::test_locale_fallback 544s ERROR tests/test_fallback_locale_without_class_default.py::TestClassic::test_hybrid_properties_support_callable_fallback_locales 544s ERROR tests/test_fallback_locale_without_class_default.py::TestClassic::test_locale_fallback 544s ERROR tests/test_fallback_translation.py::TestDeclarative::test_as_object_property_with_force_locale 544s ERROR tests/test_fallback_translation.py::TestDeclarative::test_as_class_property 544s ERROR tests/test_fallback_translation.py::TestDeclarative::test_setter - sqla... 544s ERROR tests/test_fallback_translation.py::TestClassic::test_as_object_property_with_force_locale 544s ERROR tests/test_fallback_translation.py::TestClassic::test_as_class_property 544s ERROR tests/test_fallback_translation.py::TestClassic::test_setter - sqlalche... 544s ERROR tests/test_find_translations.py::TestDeclarative::test_with_full_confidence 544s ERROR tests/test_find_translations.py::TestDeclarative::test_with_varying_confidence 544s ERROR tests/test_find_translations.py::TestClassic::test_with_full_confidence 544s ERROR tests/test_find_translations.py::TestClassic::test_with_varying_confidence 544s ERROR tests/test_hybrid_property_as_dynamic_source_locale.py::TestDeclarative::test_joinedload_for_current_translation 544s ERROR tests/test_hybrid_property_as_dynamic_source_locale.py::TestClassic::test_joinedload_for_current_translation 544s ERROR tests/test_hybrid_property_exclusion.py::TestClassic::test_does_not_generate_hybrid_properties 544s ERROR tests/test_join_expressions.py::TestDeclarative::test_current_translation_as_expression 544s ERROR tests/test_join_expressions.py::TestDeclarative::test_order_by_translation 544s ERROR tests/test_join_expressions.py::TestDeclarative::test_fallback_locale_as_expression 544s ERROR tests/test_join_expressions.py::TestDeclarative::test_querying - sqlalc... 544s ERROR tests/test_join_expressions.py::TestClassic::test_current_translation_as_expression 544s ERROR tests/test_join_expressions.py::TestClassic::test_order_by_translation 544s ERROR tests/test_join_expressions.py::TestClassic::test_fallback_locale_as_expression 544s ERROR tests/test_join_expressions.py::TestClassic::test_querying - sqlalchemy... 544s ERROR tests/test_joined_loading.py::TestDeclarative::test_joinedload_for_current_translation 544s ERROR tests/test_joined_loading.py::TestDeclarative::test_contains_eager_for_current_translation 544s ERROR tests/test_joined_loading.py::TestDeclarative::test_joinedload_for_single_translation 544s ERROR tests/test_joined_loading.py::TestDeclarative::test_joinedload_for_attr_accessor 544s ERROR tests/test_joined_loading.py::TestDeclarative::test_joinedload_for_all_translations 544s ERROR tests/test_joined_loading.py::TestClassic::test_joinedload_for_current_translation 544s ERROR tests/test_joined_loading.py::TestClassic::test_contains_eager_for_current_translation 544s ERROR tests/test_joined_loading.py::TestClassic::test_joinedload_for_single_translation 544s ERROR tests/test_joined_loading.py::TestClassic::test_joinedload_for_attr_accessor 544s ERROR tests/test_joined_loading.py::TestClassic::test_joinedload_for_all_translations 544s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_auto_creates_relations 544s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_auto_creates_current_translation 544s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_translatable_attributes 544s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_inherits_child_properties 544s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_translated_columns 544s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_property_delegators 544s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_table_name 544s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_inherits_parent_table 544s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_auto_creates_relations 544s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_auto_creates_current_translation 544s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_translatable_attributes 544s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_inherits_child_properties 544s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_translated_columns 544s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_property_delegators 544s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_table_name - ... 544s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_inherits_parent_table 544s ERROR tests/test_relationships.py::TestDeclarative::test_nullify_relation - s... 544s ERROR tests/test_relationships.py::TestClassic::test_nullify_relation - sqlal... 544s ERROR tests/test_translatable.py::TestDeclarative::test_auto_creates_relations 544s ERROR tests/test_translatable.py::TestDeclarative::test_translatable_attributes 544s ERROR tests/test_translatable.py::TestDeclarative::test_relationship_consistency 544s ERROR tests/test_translatable.py::TestDeclarative::test_property_delegators 544s ERROR tests/test_translatable.py::TestDeclarative::test_commit_session - sqla... 544s ERROR tests/test_translatable.py::TestDeclarative::test_delete - sqlalchemy_i... 544s ERROR tests/test_translatable.py::TestDeclarative::test_translated_columns - ... 544s ERROR tests/test_translatable.py::TestDeclarative::test_appends_locale_column_to_translation_table 544s ERROR tests/test_translatable.py::TestClassic::test_auto_creates_relations - ... 544s ERROR tests/test_translatable.py::TestClassic::test_translatable_attributes 544s ERROR tests/test_translatable.py::TestClassic::test_relationship_consistency 544s ERROR tests/test_translatable.py::TestClassic::test_property_delegators - sql... 544s ERROR tests/test_translatable.py::TestClassic::test_commit_session - sqlalche... 544s ERROR tests/test_translatable.py::TestClassic::test_delete - sqlalchemy.exc.I... 544s ERROR tests/test_translatable.py::TestClassic::test_translated_columns - sqla... 544s ERROR tests/test_translatable.py::TestClassic::test_appends_locale_column_to_translation_table 544s ERROR tests/test_translation_auto_creation.py::TestDeclarative::test_auto_creates_translation_objects 544s ERROR tests/test_translation_auto_creation.py::TestClassic::test_auto_creates_translation_objects 544s ERROR tests/test_translation_auto_creation_with_non_nullables.py::TestDeclarative::test_auto_sets_nullables_as_empty_strings 544s ERROR tests/test_translation_auto_creation_with_non_nullables.py::TestClassic::test_auto_sets_nullables_as_empty_strings 544s ERROR tests/test_translation_mapping.py::TestDeclarative::test_proxy_contains 544s ERROR tests/test_translation_mapping.py::TestDeclarative::test_translation_mapping_attribute_getter 544s ERROR tests/test_translation_mapping.py::TestDeclarative::test_attribute_accessor_for_unknown_locale 544s ERROR tests/test_translation_mapping.py::TestDeclarative::test_proxy_not_contains 544s ERROR tests/test_translation_mapping.py::TestDeclarative::test_items - sqlalc... 544s ERROR tests/test_translation_mapping.py::TestDeclarative::test_iteritems - sq... 544s ERROR tests/test_translation_mapping.py::TestDeclarative::test_set_item - sql... 544s ERROR tests/test_translation_mapping.py::TestDeclarative::test_repr - sqlalch... 544s ERROR tests/test_translation_mapping.py::TestDeclarative::test_iter - sqlalch... 544s ERROR tests/test_translation_mapping.py::TestDeclarative::test_values - sqlal... 544s ERROR tests/test_translation_mapping.py::TestClassic::test_proxy_contains - s... 544s ERROR tests/test_translation_mapping.py::TestClassic::test_translation_mapping_attribute_getter 544s ERROR tests/test_translation_mapping.py::TestClassic::test_attribute_accessor_for_unknown_locale 544s ERROR tests/test_translation_mapping.py::TestClassic::test_proxy_not_contains 544s ERROR tests/test_translation_mapping.py::TestClassic::test_items - sqlalchemy... 544s ERROR tests/test_translation_mapping.py::TestClassic::test_iteritems - sqlalc...2024-11-13 11:08:40.521 UTC [4557] LOG: received smart shutdown request 548s 2024-11-13 11:08:45.530 UTC [4573] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.530 UTC [4585] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.530 UTC [4572] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.532 UTC [4600] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.533 UTC [4568] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.533 UTC [4628] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.534 UTC [4567] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.535 UTC [4617] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.535 UTC [4566] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.536 UTC [4619] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.537 UTC [4565] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.537 UTC [4611] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.538 UTC [4603] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.540 UTC [4614] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.541 UTC [4599] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.542 UTC [4649] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.542 UTC [4621] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.544 UTC [4601] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.544 UTC [4571] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.545 UTC [4616] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.545 UTC [4610] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.547 UTC [4570] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.547 UTC [4615] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.548 UTC [4652] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.548 UTC [4580] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.549 UTC [4613] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.550 UTC [4579] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.550 UTC [4578] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.551 UTC [4577] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.552 UTC [4569] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.553 UTC [4576] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.553 UTC [4602] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.554 UTC [4646] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.554 UTC [4575] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.555 UTC [4596] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.557 UTC [4598] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.557 UTC [4586] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.558 UTC [4584] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.559 UTC [4597] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.559 UTC [4583] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.560 UTC [4595] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.561 UTC [4582] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.562 UTC [4581] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.562 UTC [4594] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.563 UTC [4588] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.563 UTC [4593] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.564 UTC [4590] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.565 UTC [4589] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.566 UTC [4574] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.566 UTC [4587] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.567 UTC [4607] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.567 UTC [4592] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.569 UTC [4606] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.569 UTC [4591] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.570 UTC [4605] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.570 UTC [4666] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.571 UTC [4609] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.571 UTC [4665] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.572 UTC [4612] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.573 UTC [4664] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.574 UTC [4608] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.574 UTC [4618] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.575 UTC [4620] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.576 UTC [4629] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.577 UTC [4627] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.578 UTC [4661] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.578 UTC [4624] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.579 UTC [4660] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.579 UTC [4625] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.581 UTC [4622] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.581 UTC [4662] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.582 UTC [4630] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.582 UTC [4659] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.583 UTC [4631] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.584 UTC [4658] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.584 UTC [4632] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.586 UTC [4663] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.586 UTC [4633] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.587 UTC [4657] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.587 UTC [4634] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.589 UTC [4656] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.589 UTC [4635] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.590 UTC [4636] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.590 UTC [4655] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.591 UTC [4623] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.592 UTC [4654] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.593 UTC [4637] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.593 UTC [4653] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.594 UTC [4638] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.595 UTC [4651] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.596 UTC [4626] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.597 UTC [4639] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.597 UTC [4645] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.599 UTC [4641] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.599 UTC [4647] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.600 UTC [4648] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.600 UTC [4642] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.602 UTC [4643] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.602 UTC [4644] FATAL: terminating connection due to unexpected postmaster exit 548s 2024-11-13 11:08:45.604 UTC [4650] FATAL: terminating connection due to unexpected postmaster exit 548s 548s ERROR tests/test_translation_mapping.py::TestClassic::test_set_item - sqlalch... 548s ERROR tests/test_translation_mapping.py::TestClassic::test_repr - sqlalchemy.... 548s ERROR tests/test_translation_mapping.py::TestClassic::test_iter - sqlalchemy.... 548s ERROR tests/test_translation_mapping.py::TestClassic::test_values - sqlalchem... 548s ============ 1 failed, 2 passed, 114 warnings, 116 errors in 28.19s ============ 548s stopping server 548s clean up 549s autopkgtest [11:08:46]: test setup-db-and-run-tests.py: -----------------------] 551s setup-db-and-run-tests.py PASS 551s autopkgtest [11:08:48]: test setup-db-and-run-tests.py: - - - - - - - - - - results - - - - - - - - - - 551s autopkgtest [11:08:48]: @@@@@@@@@@@@@@@@@@@@ summary 551s setup-db-and-run-tests.py PASS