Warning: Permanently added '54.81.90.233' (ED25519) to the list of known hosts. Running (timeout=18000): unbuffer mock --spec /var/lib/copr-rpmbuild/workspace/workdir-4gxvi_it/python-sqlalchemy-utils/python-sqlalchemy-utils.spec --sources /var/lib/copr-rpmbuild/workspace/workdir-4gxvi_it/python-sqlalchemy-utils --resultdir /var/lib/copr-rpmbuild/results --uniqueext 1756211287.875025 -r /var/lib/copr-rpmbuild/results/configs/child.cfg INFO: mock.py version 6.3 starting (python version = 3.13.5, NVR = mock-6.3-1.fc42), args: /usr/libexec/mock/mock --spec /var/lib/copr-rpmbuild/workspace/workdir-4gxvi_it/python-sqlalchemy-utils/python-sqlalchemy-utils.spec --sources /var/lib/copr-rpmbuild/workspace/workdir-4gxvi_it/python-sqlalchemy-utils --resultdir /var/lib/copr-rpmbuild/results --uniqueext 1756211287.875025 -r /var/lib/copr-rpmbuild/results/configs/child.cfg Start(bootstrap): init plugins INFO: tmpfs initialized INFO: selinux enabled INFO: chroot_scan: initialized INFO: compress_logs: initialized Finish(bootstrap): init plugins Start: init plugins INFO: tmpfs initialized INFO: selinux enabled INFO: chroot_scan: initialized INFO: compress_logs: initialized Finish: init plugins INFO: Signal handler active Start: run INFO: Start(/var/lib/copr-rpmbuild/workspace/workdir-4gxvi_it/python-sqlalchemy-utils/python-sqlalchemy-utils.spec) Config(fedora-rawhide-x86_64) Start: clean chroot Finish: clean chroot Mock Version: 6.3 INFO: Mock Version: 6.3 Start(bootstrap): chroot init INFO: mounting tmpfs at /var/lib/mock/fedora-rawhide-x86_64-bootstrap-1756211287.875025/root. INFO: calling preinit hooks INFO: enabled root cache INFO: enabled package manager cache Start(bootstrap): cleaning package manager metadata Finish(bootstrap): cleaning package manager metadata INFO: Guessed host environment type: unknown INFO: Using container image: registry.fedoraproject.org/fedora:rawhide INFO: Pulling image: registry.fedoraproject.org/fedora:rawhide INFO: Tagging container image as mock-bootstrap-17f03f9d-2706-4747-8756-810a037d73c1 INFO: Checking that ac69f932f370f7ec6843d3025807ce2318ccbdf873126ba1439a59229127d8f8 image matches host's architecture INFO: Copy content of container ac69f932f370f7ec6843d3025807ce2318ccbdf873126ba1439a59229127d8f8 to /var/lib/mock/fedora-rawhide-x86_64-bootstrap-1756211287.875025/root INFO: mounting ac69f932f370f7ec6843d3025807ce2318ccbdf873126ba1439a59229127d8f8 with podman image mount INFO: image ac69f932f370f7ec6843d3025807ce2318ccbdf873126ba1439a59229127d8f8 as /var/lib/containers/storage/overlay/7c8f39fe0a18973d34b8401630f25c8a89bc41127ce36c3817a183f488d69b3f/merged INFO: umounting image ac69f932f370f7ec6843d3025807ce2318ccbdf873126ba1439a59229127d8f8 (/var/lib/containers/storage/overlay/7c8f39fe0a18973d34b8401630f25c8a89bc41127ce36c3817a183f488d69b3f/merged) with podman image umount INFO: Removing image mock-bootstrap-17f03f9d-2706-4747-8756-810a037d73c1 INFO: Package manager dnf5 detected and used (fallback) INFO: Not updating bootstrap chroot, bootstrap_image_ready=True Start(bootstrap): creating root cache Finish(bootstrap): creating root cache Finish(bootstrap): chroot init Start: chroot init INFO: mounting tmpfs at /var/lib/mock/fedora-rawhide-x86_64-1756211287.875025/root. INFO: calling preinit hooks INFO: enabled root cache INFO: enabled package manager cache Start: cleaning package manager metadata Finish: cleaning package manager metadata INFO: enabled HW Info plugin INFO: Package manager dnf5 detected and used (direct choice) INFO: Buildroot is handled by package management downloaded with a bootstrap image: rpm-5.99.91-4.fc44.x86_64 rpm-sequoia-1.9.0-2.fc43.x86_64 dnf5-5.2.16.0-3.fc44.x86_64 dnf5-plugins-5.2.16.0-3.fc44.x86_64 Start: installing minimal buildroot with dnf5 Updating and loading repositories: Additional repo http_kojipkgs_fedorapr 100% | 56.3 KiB/s | 3.8 KiB | 00m00s Copr repository 100% | 22.6 KiB/s | 1.5 KiB | 00m00s fedora 100% | 223.9 KiB/s | 29.1 KiB | 00m00s Repositories loaded. Package Arch Version Repository Size Installing group/module packages: bash x86_64 5.3.0-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 8.4 MiB bzip2 x86_64 1.0.8-21.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 95.3 KiB coreutils x86_64 9.7-5.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 5.4 MiB cpio x86_64 2.15-6.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.1 MiB diffutils x86_64 3.12-3.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.6 MiB fedora-release-common noarch 44-0.2 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 20.4 KiB findutils x86_64 1:4.10.0-6.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.8 MiB gawk x86_64 5.3.2-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.8 MiB glibc-minimal-langpack x86_64 2.42.9000-1.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 0.0 B grep x86_64 3.12-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.0 MiB gzip x86_64 1.14-1.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 397.8 KiB info x86_64 7.2-6.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 353.9 KiB patch x86_64 2.8-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 222.8 KiB redhat-rpm-config noarch 343-13.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 183.2 KiB rpm-build x86_64 5.99.91-5.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 285.5 KiB sed x86_64 4.9-5.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 857.3 KiB shadow-utils x86_64 2:4.18.0-3.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 3.9 MiB tar x86_64 2:1.35-6.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 2.9 MiB unzip x86_64 6.0-68.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 390.3 KiB util-linux x86_64 2.41.1-16.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 3.5 MiB which x86_64 2.23-3.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 83.5 KiB xz x86_64 1:5.8.1-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.3 MiB Installing dependencies: add-determinism x86_64 0.6.0-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 2.4 MiB alternatives x86_64 1.33-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 62.2 KiB ansible-srpm-macros noarch 1-18.1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 35.7 KiB audit-libs x86_64 4.1.1-2.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 378.9 KiB binutils x86_64 2.45-3.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 26.5 MiB build-reproducibility-srpm-macros noarch 0.6.0-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 735.0 B bzip2-libs x86_64 1.0.8-21.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 80.6 KiB ca-certificates noarch 2024.2.69_v8.0.401-8.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 2.6 MiB coreutils-common x86_64 9.7-5.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 11.3 MiB crypto-policies noarch 20250714-4.gitcd6043a.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 146.9 KiB curl x86_64 8.15.0-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 473.6 KiB cyrus-sasl-lib x86_64 2.1.28-33.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 2.3 MiB debugedit x86_64 5.2-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 197.8 KiB dwz x86_64 0.16-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 287.1 KiB ed x86_64 1.22.2-1.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 148.1 KiB efi-srpm-macros noarch 6-4.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 40.1 KiB elfutils x86_64 0.193-3.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 2.9 MiB elfutils-debuginfod-client x86_64 0.193-3.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 83.9 KiB elfutils-default-yama-scope noarch 0.193-3.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.8 KiB elfutils-libelf x86_64 0.193-3.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.2 MiB elfutils-libs x86_64 0.193-3.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 683.4 KiB fedora-gpg-keys noarch 44-0.1 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 131.2 KiB fedora-release noarch 44-0.2 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 0.0 B fedora-release-identity-basic noarch 44-0.2 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 664.0 B fedora-repos noarch 44-0.1 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 4.9 KiB fedora-repos-rawhide noarch 44-0.1 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 2.2 KiB file x86_64 5.46-7.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 100.2 KiB file-libs x86_64 5.46-7.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 11.9 MiB filesystem x86_64 3.18-50.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 112.0 B filesystem-srpm-macros noarch 3.18-50.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 38.2 KiB fonts-srpm-macros noarch 1:2.0.5-23.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 55.8 KiB forge-srpm-macros noarch 0.4.0-3.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 38.9 KiB fpc-srpm-macros noarch 1.3-15.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 144.0 B gap-srpm-macros noarch 1-1.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 2.0 KiB gdb-minimal x86_64 16.3-5.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 13.3 MiB gdbm-libs x86_64 1:1.23-10.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 129.9 KiB ghc-srpm-macros noarch 1.9.2-3.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 779.0 B glibc x86_64 2.42.9000-1.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 6.7 MiB glibc-common x86_64 2.42.9000-1.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.0 MiB glibc-gconv-extra x86_64 2.42.9000-1.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 7.2 MiB gmp x86_64 1:6.3.0-4.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 811.2 KiB gnat-srpm-macros noarch 6-8.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.0 KiB gnupg2 x86_64 2.4.8-4.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 6.5 MiB gnupg2-dirmngr x86_64 2.4.8-4.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 618.4 KiB gnupg2-gpg-agent x86_64 2.4.8-4.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 671.4 KiB gnupg2-gpgconf x86_64 2.4.8-4.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 250.0 KiB gnupg2-keyboxd x86_64 2.4.8-4.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 201.4 KiB gnupg2-verify x86_64 2.4.8-4.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 348.5 KiB gnutls x86_64 3.8.10-3.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 3.8 MiB go-srpm-macros noarch 3.7.0-4.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 61.6 KiB gpgverify noarch 2.2-3.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 8.7 KiB ima-evm-utils-libs x86_64 1.6.2-6.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 60.7 KiB jansson x86_64 2.14-3.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 89.1 KiB java-srpm-macros noarch 1-7.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 870.0 B json-c x86_64 0.18-7.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 82.7 KiB kernel-srpm-macros noarch 1.0-27.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.9 KiB keyutils-libs x86_64 1.6.3-6.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 54.3 KiB krb5-libs x86_64 1.21.3-7.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 2.3 MiB libacl x86_64 2.3.2-4.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 35.9 KiB libarchive x86_64 3.8.1-3.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 951.1 KiB libassuan x86_64 2.5.7-4.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 163.8 KiB libattr x86_64 2.5.2-6.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 24.4 KiB libblkid x86_64 2.41.1-16.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 262.4 KiB libbrotli x86_64 1.1.0-9.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 833.3 KiB libcap x86_64 2.76-3.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 209.1 KiB libcap-ng x86_64 0.8.5-7.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 68.9 KiB libcom_err x86_64 1.47.3-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 63.1 KiB libcurl x86_64 8.15.0-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 903.2 KiB libeconf x86_64 0.7.9-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 64.9 KiB libevent x86_64 2.1.12-16.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 883.1 KiB libfdisk x86_64 2.41.1-16.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 380.4 KiB libffi x86_64 3.5.1-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 83.6 KiB libfsverity x86_64 1.6-3.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 28.5 KiB libgcc x86_64 15.2.1-1.fc44.1 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 266.6 KiB libgcrypt x86_64 1.11.1-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.6 MiB libgomp x86_64 15.2.1-1.fc44.1 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 541.1 KiB libgpg-error x86_64 1.55-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 915.3 KiB libidn2 x86_64 2.3.8-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 552.5 KiB libksba x86_64 1.6.7-4.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 398.5 KiB liblastlog2 x86_64 2.41.1-16.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 33.9 KiB libmount x86_64 2.41.1-16.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 372.7 KiB libnghttp2 x86_64 1.66.0-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 162.2 KiB libpkgconf x86_64 2.3.0-3.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 78.1 KiB libpsl x86_64 0.21.5-6.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 76.4 KiB libselinux x86_64 3.9-4.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 193.1 KiB libsemanage x86_64 3.9-3.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 308.5 KiB libsepol x86_64 3.9-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 822.0 KiB libsmartcols x86_64 2.41.1-16.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 180.5 KiB libssh x86_64 0.11.2-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 566.7 KiB libssh-config noarch 0.11.2-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 277.0 B libstdc++ x86_64 15.2.1-1.fc44.1 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 2.8 MiB libtasn1 x86_64 4.20.0-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 176.3 KiB libtool-ltdl x86_64 2.5.4-7.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 70.1 KiB libunistring x86_64 1.1-10.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.7 MiB libusb1 x86_64 1.0.29-3.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 171.3 KiB libuuid x86_64 2.41.1-16.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 37.4 KiB libverto x86_64 0.3.2-11.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 25.4 KiB libxcrypt x86_64 4.4.38-8.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 284.5 KiB libxml2 x86_64 2.12.10-4.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.7 MiB libzstd x86_64 1.5.7-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 799.9 KiB lua-libs x86_64 5.4.8-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 280.8 KiB lua-srpm-macros noarch 1-16.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.3 KiB lz4-libs x86_64 1.10.0-3.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 161.4 KiB mpfr x86_64 4.2.2-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 832.8 KiB ncurses-base noarch 6.5-7.20250614.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 328.1 KiB ncurses-libs x86_64 6.5-7.20250614.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 946.3 KiB nettle x86_64 3.10.1-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 790.6 KiB npth x86_64 1.8-3.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 49.6 KiB ocaml-srpm-macros noarch 11-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.9 KiB openblas-srpm-macros noarch 2-20.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 112.0 B openldap x86_64 2.6.10-3.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 655.8 KiB openssl-libs x86_64 1:3.5.1-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 8.9 MiB p11-kit x86_64 0.25.5-9.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 2.2 MiB p11-kit-trust x86_64 0.25.5-9.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 395.5 KiB package-notes-srpm-macros noarch 0.5-14.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.6 KiB pam-libs x86_64 1.7.1-3.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 126.8 KiB pcre2 x86_64 10.45-1.fc43.1 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 697.7 KiB pcre2-syntax noarch 10.45-1.fc43.1 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 273.9 KiB perl-srpm-macros noarch 1-60.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 861.0 B pkgconf x86_64 2.3.0-3.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 88.5 KiB pkgconf-m4 noarch 2.3.0-3.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 14.4 KiB pkgconf-pkg-config x86_64 2.3.0-3.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 989.0 B popt x86_64 1.19-9.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 132.8 KiB publicsuffix-list-dafsa noarch 20250616-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 69.1 KiB pyproject-srpm-macros noarch 1.18.3-2.fc44 copr_base 1.9 KiB python-srpm-macros noarch 3.14-5.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 51.5 KiB qt5-srpm-macros noarch 5.15.17-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 500.0 B qt6-srpm-macros noarch 6.9.1-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 464.0 B readline x86_64 8.3-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 511.7 KiB rpm x86_64 5.99.91-5.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 3.0 MiB rpm-build-libs x86_64 5.99.91-5.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 268.4 KiB rpm-libs x86_64 5.99.91-5.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 933.7 KiB rpm-sequoia x86_64 1.9.0-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 2.5 MiB rpm-sign-libs x86_64 5.99.91-5.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 39.7 KiB rust-srpm-macros noarch 26.4-1.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 4.8 KiB setup noarch 2.15.0-26.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 725.0 KiB sqlite-libs x86_64 3.50.2-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.5 MiB systemd-libs x86_64 257.7-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 2.2 MiB systemd-standalone-sysusers x86_64 257.7-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 277.3 KiB tpm2-tss x86_64 4.1.3-8.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.6 MiB tree-sitter-srpm-macros noarch 0.4.2-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 8.3 KiB util-linux-core x86_64 2.41.1-16.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.5 MiB xxhash-libs x86_64 0.8.3-3.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 90.2 KiB xz-libs x86_64 1:5.8.1-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 217.8 KiB zig-srpm-macros noarch 1-5.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.1 KiB zip x86_64 3.0-44.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 694.5 KiB zlib-ng-compat x86_64 2.2.5-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 137.6 KiB zstd x86_64 1.5.7-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.7 MiB Installing groups: Buildsystem building group Transaction Summary: Installing: 170 packages Total size of inbound packages is 58 MiB. Need to download 0 B. After this operation, 198 MiB extra will be used (install 198 MiB, remove 0 B). [ 1/170] tar-2:1.35-6.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 2/170] bzip2-0:1.0.8-21.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 3/170] redhat-rpm-config-0:343-13.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 4/170] rpm-build-0:5.99.91-5.fc44.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 5/170] unzip-0:6.0-68.fc44.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 6/170] cpio-0:2.15-6.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 7/170] which-0:2.23-3.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 8/170] bash-0:5.3.0-2.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 9/170] coreutils-0:9.7-5.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 10/170] grep-0:3.12-2.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 11/170] patch-0:2.8-2.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 12/170] sed-0:4.9-5.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 13/170] shadow-utils-2:4.18.0-3.fc43. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 14/170] util-linux-0:2.41.1-16.fc44.x 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 15/170] diffutils-0:3.12-3.fc43.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 16/170] fedora-release-common-0:44-0. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 17/170] findutils-1:4.10.0-6.fc43.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 18/170] gawk-0:5.3.2-2.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 19/170] glibc-minimal-langpack-0:2.42 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 20/170] gzip-0:1.14-1.fc44.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 21/170] info-0:7.2-6.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 22/170] xz-1:5.8.1-2.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 23/170] rpm-0:5.99.91-5.fc44.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 24/170] rpm-libs-0:5.99.91-5.fc44.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 25/170] rpm-build-libs-0:5.99.91-5.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 26/170] rpm-sign-libs-0:5.99.91-5.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 27/170] glibc-0:2.42.9000-1.fc44.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 28/170] xz-libs-1:5.8.1-2.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 29/170] audit-libs-0:4.1.1-2.fc44.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 30/170] filesystem-0:3.18-50.fc43.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 31/170] libblkid-0:2.41.1-16.fc44.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 32/170] libcap-ng-0:0.8.5-7.fc44.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 33/170] libfdisk-0:2.41.1-16.fc44.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 34/170] libgcc-0:15.2.1-1.fc44.1.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 35/170] liblastlog2-0:2.41.1-16.fc44. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 36/170] libmount-0:2.41.1-16.fc44.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 37/170] libselinux-0:3.9-4.fc44.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 38/170] libsmartcols-0:2.41.1-16.fc44 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 39/170] libuuid-0:2.41.1-16.fc44.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 40/170] ncurses-libs-0:6.5-7.20250614 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 41/170] pam-libs-0:1.7.1-3.fc43.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 42/170] readline-0:8.3-2.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 43/170] systemd-libs-0:257.7-1.fc43.x 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 44/170] util-linux-core-0:2.41.1-16.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 45/170] zlib-ng-compat-0:2.2.5-1.fc43 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 46/170] bzip2-libs-0:1.0.8-21.fc43.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 47/170] libacl-0:2.3.2-4.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 48/170] libcap-0:2.76-3.fc44.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 49/170] libeconf-0:0.7.9-2.fc43.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 50/170] libsemanage-0:3.9-3.fc44.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 51/170] libxcrypt-0:4.4.38-8.fc43.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 52/170] setup-0:2.15.0-26.fc43.noarch 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 53/170] gnupg2-0:2.4.8-4.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 54/170] ima-evm-utils-libs-0:1.6.2-6. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 55/170] libfsverity-0:1.6-3.fc43.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 56/170] libstdc++-0:15.2.1-1.fc44.1.x 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 57/170] popt-0:1.19-9.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 58/170] libzstd-0:1.5.7-2.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 59/170] lua-libs-0:5.4.8-2.fc43.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 60/170] rpm-sequoia-0:1.9.0-2.fc43.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 61/170] sqlite-libs-0:3.50.2-2.fc43.x 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 62/170] elfutils-libelf-0:0.193-3.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 63/170] elfutils-libs-0:0.193-3.fc43. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 64/170] file-libs-0:5.46-7.fc44.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 65/170] libgomp-0:15.2.1-1.fc44.1.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 66/170] binutils-0:2.45-3.fc44.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 67/170] debugedit-0:5.2-2.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 68/170] elfutils-0:0.193-3.fc43.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 69/170] file-0:5.46-7.fc44.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 70/170] libarchive-0:3.8.1-3.fc43.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 71/170] pkgconf-pkg-config-0:2.3.0-3. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 72/170] zstd-0:1.5.7-2.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 73/170] curl-0:8.15.0-2.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 74/170] gpgverify-0:2.2-3.fc43.noarch 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 75/170] glibc-gconv-extra-0:2.42.9000 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 76/170] ansible-srpm-macros-0:1-18.1. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 77/170] build-reproducibility-srpm-ma 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 78/170] dwz-0:0.16-2.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 79/170] efi-srpm-macros-0:6-4.fc43.no 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 80/170] filesystem-srpm-macros-0:3.18 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 81/170] fonts-srpm-macros-1:2.0.5-23. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 82/170] forge-srpm-macros-0:0.4.0-3.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 83/170] fpc-srpm-macros-0:1.3-15.fc43 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 84/170] gap-srpm-macros-0:1-1.fc44.no 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 85/170] ghc-srpm-macros-0:1.9.2-3.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 86/170] gnat-srpm-macros-0:6-8.fc43.n 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 87/170] go-srpm-macros-0:3.7.0-4.fc43 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 88/170] java-srpm-macros-0:1-7.fc43.n 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 89/170] kernel-srpm-macros-0:1.0-27.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 90/170] lua-srpm-macros-0:1-16.fc43.n 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 91/170] ocaml-srpm-macros-0:11-2.fc43 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 92/170] openblas-srpm-macros-0:2-20.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 93/170] package-notes-srpm-macros-0:0 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 94/170] perl-srpm-macros-0:1-60.fc43. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 95/170] pyproject-srpm-macros-0:1.18. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 96/170] python-srpm-macros-0:3.14-5.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 97/170] qt5-srpm-macros-0:5.15.17-2.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 98/170] qt6-srpm-macros-0:6.9.1-2.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 99/170] rust-srpm-macros-0:26.4-1.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [100/170] tree-sitter-srpm-macros-0:0.4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [101/170] zig-srpm-macros-0:1-5.fc43.no 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [102/170] zip-0:3.0-44.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [103/170] pkgconf-0:2.3.0-3.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [104/170] pkgconf-m4-0:2.3.0-3.fc43.noa 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [105/170] libpkgconf-0:2.3.0-3.fc43.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [106/170] ed-0:1.22.2-1.fc44.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [107/170] libattr-0:2.5.2-6.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [108/170] ncurses-base-0:6.5-7.20250614 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [109/170] libsepol-0:3.9-2.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [110/170] pcre2-0:10.45-1.fc43.1.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [111/170] openssl-libs-1:3.5.1-2.fc43.x 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [112/170] libxml2-0:2.12.10-4.fc44.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [113/170] lz4-libs-0:1.10.0-3.fc43.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [114/170] tpm2-tss-0:4.1.3-8.fc43.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [115/170] gnupg2-verify-0:2.4.8-4.fc43. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [116/170] libassuan-0:2.5.7-4.fc43.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [117/170] libgcrypt-0:1.11.1-2.fc43.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [118/170] libgpg-error-0:1.55-2.fc43.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [119/170] npth-0:1.8-3.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [120/170] gnupg2-dirmngr-0:2.4.8-4.fc43 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [121/170] gnupg2-gpg-agent-0:2.4.8-4.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [122/170] gnupg2-gpgconf-0:2.4.8-4.fc43 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [123/170] gnupg2-keyboxd-0:2.4.8-4.fc43 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [124/170] glibc-common-0:2.42.9000-1.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [125/170] gmp-1:6.3.0-4.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [126/170] mpfr-0:4.2.2-2.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [127/170] fedora-repos-0:44-0.1.noarch 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [128/170] elfutils-default-yama-scope-0 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [129/170] elfutils-debuginfod-client-0: 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [130/170] coreutils-common-0:9.7-5.fc43 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [131/170] add-determinism-0:0.6.0-2.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [132/170] alternatives-0:1.33-2.fc43.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [133/170] jansson-0:2.14-3.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [134/170] json-c-0:0.18-7.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [135/170] libusb1-0:1.0.29-3.fc43.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [136/170] pcre2-syntax-0:10.45-1.fc43.1 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [137/170] ca-certificates-0:2024.2.69_v 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [138/170] crypto-policies-0:20250714-4. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [139/170] libksba-0:1.6.7-4.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [140/170] gnutls-0:3.8.10-3.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [141/170] openldap-0:2.6.10-3.fc43.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [142/170] fedora-gpg-keys-0:44-0.1.noar 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [143/170] fedora-repos-rawhide-0:44-0.1 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [144/170] libffi-0:3.5.1-2.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [145/170] p11-kit-0:0.25.5-9.fc43.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [146/170] p11-kit-trust-0:0.25.5-9.fc43 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [147/170] libtasn1-0:4.20.0-2.fc43.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [148/170] cyrus-sasl-lib-0:2.1.28-33.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [149/170] libevent-0:2.1.12-16.fc43.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [150/170] libtool-ltdl-0:2.5.4-7.fc43.x 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [151/170] libidn2-0:2.3.8-2.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [152/170] libunistring-0:1.1-10.fc43.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [153/170] nettle-0:3.10.1-2.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [154/170] gdbm-libs-1:1.23-10.fc43.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [155/170] fedora-release-0:44-0.2.noarc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [156/170] systemd-standalone-sysusers-0 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [157/170] gdb-minimal-0:16.3-5.fc44.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [158/170] xxhash-libs-0:0.8.3-3.fc43.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [159/170] fedora-release-identity-basic 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [160/170] libcurl-0:8.15.0-2.fc43.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [161/170] krb5-libs-0:1.21.3-7.fc43.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [162/170] libbrotli-0:1.1.0-9.fc44.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [163/170] libnghttp2-0:1.66.0-2.fc43.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [164/170] libpsl-0:0.21.5-6.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [165/170] libssh-0:0.11.2-2.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [166/170] keyutils-libs-0:1.6.3-6.fc43. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [167/170] libcom_err-0:1.47.3-2.fc43.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [168/170] libverto-0:0.3.2-11.fc43.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [169/170] libssh-config-0:0.11.2-2.fc43 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [170/170] publicsuffix-list-dafsa-0:202 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [170/170] Total 100% | 0.0 B/s | 0.0 B | 00m00s Running transaction [ 1/172] Verify package files 100% | 821.0 B/s | 170.0 B | 00m00s >>> Running %pretrans scriptlet: filesystem-0:3.18-50.fc43.x86_64 >>> Finished %pretrans scriptlet: filesystem-0:3.18-50.fc43.x86_64 >>> [RPM] /var/lib/mock/fedora-rawhide-x86_64-1756211287.875025/root/var/cache/d [ 2/172] Prepare transaction 100% | 4.4 KiB/s | 170.0 B | 00m00s [ 3/172] Installing libgcc-0:15.2.1-1. 100% | 262.0 MiB/s | 268.3 KiB | 00m00s [ 4/172] Installing publicsuffix-list- 100% | 0.0 B/s | 69.8 KiB | 00m00s [ 5/172] Installing libssh-config-0:0. 100% | 0.0 B/s | 816.0 B | 00m00s [ 6/172] Installing fedora-release-ide 100% | 0.0 B/s | 920.0 B | 00m00s [ 7/172] Installing fedora-repos-rawhi 100% | 0.0 B/s | 2.4 KiB | 00m00s [ 8/172] Installing fedora-gpg-keys-0: 100% | 58.3 MiB/s | 179.0 KiB | 00m00s [ 9/172] Installing fedora-repos-0:44- 100% | 0.0 B/s | 5.7 KiB | 00m00s [ 10/172] Installing fedora-release-com 100% | 24.2 MiB/s | 24.8 KiB | 00m00s [ 11/172] Installing fedora-release-0:4 100% | 20.2 KiB/s | 124.0 B | 00m00s >>> Running sysusers scriptlet: setup-0:2.15.0-26.fc43.noarch >>> Finished sysusers scriptlet: setup-0:2.15.0-26.fc43.noarch >>> Scriptlet output: >>> Creating group 'adm' with GID 4. >>> Creating group 'audio' with GID 63. >>> Creating group 'cdrom' with GID 11. >>> Creating group 'clock' with GID 103. >>> Creating group 'dialout' with GID 18. >>> Creating group 'disk' with GID 6. >>> Creating group 'floppy' with GID 19. >>> Creating group 'ftp' with GID 50. >>> Creating group 'games' with GID 20. >>> Creating group 'input' with GID 104. >>> Creating group 'kmem' with GID 9. >>> Creating group 'kvm' with GID 36. >>> Creating group 'lock' with GID 54. >>> Creating group 'lp' with GID 7. >>> Creating group 'mail' with GID 12. >>> Creating group 'man' with GID 15. >>> Creating group 'mem' with GID 8. >>> Creating group 'nobody' with GID 65534. >>> Creating group 'render' with GID 105. >>> Creating group 'root' with GID 0. >>> Creating group 'sgx' with GID 106. >>> Creating group 'sys' with GID 3. >>> Creating group 'tape' with GID 33. >>> Creating group 'tty' with GID 5. >>> Creating group 'users' with GID 100. >>> Creating group 'utmp' with GID 22. >>> Creating group 'video' with GID 39. >>> Creating group 'wheel' with GID 10. >>> Creating user 'adm' (adm) with UID 3 and GID 4. >>> Creating group 'bin' with GID 1. >>> Creating user 'bin' (bin) with UID 1 and GID 1. >>> Creating group 'daemon' with GID 2. >>> Creating user 'daemon' (daemon) with UID 2 and GID 2. >>> Creating user 'ftp' (FTP User) with UID 14 and GID 50. >>> Creating user 'games' (games) with UID 12 and GID 100. >>> Creating user 'halt' (halt) with UID 7 and GID 0. >>> Creating user 'lp' (lp) with UID 4 and GID 7. >>> Creating user 'mail' (mail) with UID 8 and GID 12. >>> Creating user 'nobody' (Kernel Overflow User) with UID 65534 and GID 65534. >>> Creating user 'operator' (operator) with UID 11 and GID 0. >>> Creating user 'root' (Super User) with UID 0 and GID 0. >>> Creating user 'shutdown' (shutdown) with UID 6 and GID 0. >>> Creating user 'sync' (sync) with UID 5 and GID 0. >>> [ 12/172] Installing setup-0:2.15.0-26. 100% | 59.5 MiB/s | 730.6 KiB | 00m00s >>> [RPM] /etc/hosts created as /etc/hosts.rpmnew [ 13/172] Installing filesystem-0:3.18- 100% | 3.1 MiB/s | 212.8 KiB | 00m00s [ 14/172] Installing pcre2-syntax-0:10. 100% | 269.9 MiB/s | 276.4 KiB | 00m00s [ 15/172] Installing coreutils-common-0 100% | 418.2 MiB/s | 11.3 MiB | 00m00s [ 16/172] Installing ncurses-base-0:6.5 100% | 86.3 MiB/s | 353.5 KiB | 00m00s [ 17/172] Installing bash-0:5.3.0-2.fc4 100% | 301.1 MiB/s | 8.4 MiB | 00m00s [ 18/172] Installing glibc-common-0:2.4 100% | 72.9 MiB/s | 1.0 MiB | 00m00s [ 19/172] Installing glibc-gconv-extra- 100% | 304.7 MiB/s | 7.3 MiB | 00m00s [ 20/172] Installing glibc-0:2.42.9000- 100% | 203.1 MiB/s | 6.7 MiB | 00m00s [ 21/172] Installing ncurses-libs-0:6.5 100% | 310.1 MiB/s | 952.8 KiB | 00m00s [ 22/172] Installing glibc-minimal-lang 100% | 0.0 B/s | 124.0 B | 00m00s [ 23/172] Installing zlib-ng-compat-0:2 100% | 135.2 MiB/s | 138.4 KiB | 00m00s [ 24/172] Installing bzip2-libs-0:1.0.8 100% | 0.0 B/s | 81.7 KiB | 00m00s [ 25/172] Installing libgpg-error-0:1.5 100% | 69.2 MiB/s | 921.1 KiB | 00m00s [ 26/172] Installing libstdc++-0:15.2.1 100% | 406.3 MiB/s | 2.8 MiB | 00m00s [ 27/172] Installing xz-libs-1:5.8.1-2. 100% | 213.8 MiB/s | 218.9 KiB | 00m00s [ 28/172] Installing libassuan-0:2.5.7- 100% | 161.7 MiB/s | 165.6 KiB | 00m00s [ 29/172] Installing libgcrypt-0:1.11.1 100% | 393.8 MiB/s | 1.6 MiB | 00m00s [ 30/172] Installing readline-0:8.3-2.f 100% | 501.8 MiB/s | 513.9 KiB | 00m00s [ 31/172] Installing libuuid-0:2.41.1-1 100% | 0.0 B/s | 38.5 KiB | 00m00s [ 32/172] Installing gmp-1:6.3.0-4.fc43 100% | 397.2 MiB/s | 813.5 KiB | 00m00s [ 33/172] Installing popt-0:1.19-9.fc43 100% | 68.1 MiB/s | 139.4 KiB | 00m00s [ 34/172] Installing npth-0:1.8-3.fc43. 100% | 0.0 B/s | 50.7 KiB | 00m00s [ 35/172] Installing libblkid-0:2.41.1- 100% | 257.3 MiB/s | 263.5 KiB | 00m00s [ 36/172] Installing libxcrypt-0:4.4.38 100% | 280.4 MiB/s | 287.2 KiB | 00m00s [ 37/172] Installing libzstd-0:1.5.7-2. 100% | 391.2 MiB/s | 801.1 KiB | 00m00s [ 38/172] Installing elfutils-libelf-0: 100% | 388.8 MiB/s | 1.2 MiB | 00m00s [ 39/172] Installing sqlite-libs-0:3.50 100% | 379.1 MiB/s | 1.5 MiB | 00m00s [ 40/172] Installing gnupg2-gpgconf-0:2 100% | 22.4 MiB/s | 252.0 KiB | 00m00s [ 41/172] Installing libattr-0:2.5.2-6. 100% | 0.0 B/s | 25.4 KiB | 00m00s [ 42/172] Installing libacl-0:2.3.2-4.f 100% | 0.0 B/s | 36.8 KiB | 00m00s [ 43/172] Installing libtasn1-0:4.20.0- 100% | 173.9 MiB/s | 178.1 KiB | 00m00s [ 44/172] Installing libunistring-0:1.1 100% | 431.7 MiB/s | 1.7 MiB | 00m00s [ 45/172] Installing libidn2-0:2.3.8-2. 100% | 60.6 MiB/s | 558.7 KiB | 00m00s [ 46/172] Installing crypto-policies-0: 100% | 42.0 MiB/s | 172.0 KiB | 00m00s [ 47/172] Installing dwz-0:0.16-2.fc43. 100% | 23.5 MiB/s | 288.5 KiB | 00m00s [ 48/172] Installing gnupg2-verify-0:2. 100% | 31.1 MiB/s | 349.9 KiB | 00m00s [ 49/172] Installing mpfr-0:4.2.2-2.fc4 100% | 407.4 MiB/s | 834.4 KiB | 00m00s [ 50/172] Installing gawk-0:5.3.2-2.fc4 100% | 113.5 MiB/s | 1.8 MiB | 00m00s [ 51/172] Installing libksba-0:1.6.7-4. 100% | 391.7 MiB/s | 401.1 KiB | 00m00s [ 52/172] Installing unzip-0:6.0-68.fc4 100% | 35.0 MiB/s | 393.8 KiB | 00m00s [ 53/172] Installing file-libs-0:5.46-7 100% | 741.1 MiB/s | 11.9 MiB | 00m00s [ 54/172] Installing file-0:5.46-7.fc44 100% | 9.9 MiB/s | 101.7 KiB | 00m00s [ 55/172] Installing libcap-ng-0:0.8.5- 100% | 0.0 B/s | 70.8 KiB | 00m00s [ 56/172] Installing audit-libs-0:4.1.1 100% | 372.6 MiB/s | 381.5 KiB | 00m00s [ 57/172] Installing libsmartcols-0:2.4 100% | 177.3 MiB/s | 181.6 KiB | 00m00s [ 58/172] Installing libeconf-0:0.7.9-2 100% | 0.0 B/s | 66.5 KiB | 00m00s [ 59/172] Installing pam-libs-0:1.7.1-3 100% | 126.0 MiB/s | 129.0 KiB | 00m00s [ 60/172] Installing libcap-0:2.76-3.fc 100% | 19.0 MiB/s | 214.3 KiB | 00m00s [ 61/172] Installing systemd-libs-0:257 100% | 372.0 MiB/s | 2.2 MiB | 00m00s [ 62/172] Installing lua-libs-0:5.4.8-2 100% | 275.3 MiB/s | 281.9 KiB | 00m00s [ 63/172] Installing libsepol-0:3.9-2.f 100% | 401.8 MiB/s | 822.9 KiB | 00m00s [ 64/172] Installing pcre2-0:10.45-1.fc 100% | 341.4 MiB/s | 699.1 KiB | 00m00s [ 65/172] Installing libselinux-0:3.9-4 100% | 189.8 MiB/s | 194.4 KiB | 00m00s [ 66/172] Installing grep-0:3.12-2.fc43 100% | 71.6 MiB/s | 1.0 MiB | 00m00s [ 67/172] Installing sed-0:4.9-5.fc43.x 100% | 65.0 MiB/s | 865.5 KiB | 00m00s [ 68/172] Installing findutils-1:4.10.0 100% | 123.9 MiB/s | 1.9 MiB | 00m00s [ 69/172] Installing xz-1:5.8.1-2.fc43. 100% | 88.8 MiB/s | 1.3 MiB | 00m00s [ 70/172] Installing libmount-0:2.41.1- 100% | 364.9 MiB/s | 373.7 KiB | 00m00s [ 71/172] Installing lz4-libs-0:1.10.0- 100% | 158.6 MiB/s | 162.5 KiB | 00m00s [ 72/172] Installing alternatives-0:1.3 100% | 6.2 MiB/s | 63.8 KiB | 00m00s [ 73/172] Installing json-c-0:0.18-7.fc 100% | 0.0 B/s | 84.0 KiB | 00m00s [ 74/172] Installing libffi-0:3.5.1-2.f 100% | 0.0 B/s | 85.0 KiB | 00m00s [ 75/172] Installing p11-kit-0:0.25.5-9 100% | 128.5 MiB/s | 2.2 MiB | 00m00s [ 76/172] Installing p11-kit-trust-0:0. 100% | 21.5 MiB/s | 397.1 KiB | 00m00s [ 77/172] Installing openssl-libs-1:3.5 100% | 404.7 MiB/s | 8.9 MiB | 00m00s [ 78/172] Installing coreutils-0:9.7-5. 100% | 187.8 MiB/s | 5.4 MiB | 00m00s [ 79/172] Installing ca-certificates-0: 100% | 2.1 MiB/s | 2.4 MiB | 00m01s [ 80/172] Installing gzip-0:1.14-1.fc44 100% | 32.8 MiB/s | 403.3 KiB | 00m00s [ 81/172] Installing libfsverity-0:1.6- 100% | 0.0 B/s | 29.5 KiB | 00m00s [ 82/172] Installing rpm-sequoia-0:1.9. 100% | 413.1 MiB/s | 2.5 MiB | 00m00s [ 83/172] Installing libevent-0:2.1.12- 100% | 288.7 MiB/s | 886.8 KiB | 00m00s [ 84/172] Installing zstd-0:1.5.7-2.fc4 100% | 122.1 MiB/s | 1.7 MiB | 00m00s [ 85/172] Installing util-linux-core-0: 100% | 92.5 MiB/s | 1.5 MiB | 00m00s [ 86/172] Installing tar-2:1.35-6.fc43. 100% | 174.0 MiB/s | 3.0 MiB | 00m00s [ 87/172] Installing libsemanage-0:3.9- 100% | 303.0 MiB/s | 310.2 KiB | 00m00s [ 88/172] Installing systemd-standalone 100% | 24.7 MiB/s | 277.8 KiB | 00m00s [ 89/172] Installing rpm-libs-0:5.99.91 100% | 304.4 MiB/s | 935.2 KiB | 00m00s [ 90/172] Installing libusb1-0:1.0.29-3 100% | 24.1 MiB/s | 172.9 KiB | 00m00s >>> Running sysusers scriptlet: tpm2-tss-0:4.1.3-8.fc43.x86_64 >>> Finished sysusers scriptlet: tpm2-tss-0:4.1.3-8.fc43.x86_64 >>> Scriptlet output: >>> Creating group 'tss' with GID 59. >>> Creating user 'tss' (Account used for TPM access) with UID 59 and GID 59. >>> [ 91/172] Installing tpm2-tss-0:4.1.3-8 100% | 314.4 MiB/s | 1.6 MiB | 00m00s [ 92/172] Installing ima-evm-utils-libs 100% | 60.5 MiB/s | 62.0 KiB | 00m00s [ 93/172] Installing gnupg2-gpg-agent-0 100% | 36.6 MiB/s | 675.4 KiB | 00m00s [ 94/172] Installing zip-0:3.0-44.fc43. 100% | 56.8 MiB/s | 698.4 KiB | 00m00s [ 95/172] Installing gnupg2-keyboxd-0:2 100% | 39.6 MiB/s | 202.7 KiB | 00m00s [ 96/172] Installing libpsl-0:0.21.5-6. 100% | 75.7 MiB/s | 77.5 KiB | 00m00s [ 97/172] Installing liblastlog2-0:2.41 100% | 8.8 MiB/s | 36.0 KiB | 00m00s [ 98/172] Installing libfdisk-0:2.41.1- 100% | 186.3 MiB/s | 381.5 KiB | 00m00s [ 99/172] Installing nettle-0:3.10.1-2. 100% | 387.5 MiB/s | 793.7 KiB | 00m00s [100/172] Installing gnutls-0:3.8.10-3. 100% | 383.9 MiB/s | 3.8 MiB | 00m00s [101/172] Installing libxml2-0:2.12.10- 100% | 106.5 MiB/s | 1.7 MiB | 00m00s [102/172] Installing libarchive-0:3.8.1 100% | 310.2 MiB/s | 953.1 KiB | 00m00s [103/172] Installing bzip2-0:1.0.8-21.f 100% | 8.9 MiB/s | 99.8 KiB | 00m00s [104/172] Installing add-determinism-0: 100% | 152.7 MiB/s | 2.4 MiB | 00m00s [105/172] Installing build-reproducibil 100% | 0.0 B/s | 1.0 KiB | 00m00s [106/172] Installing cpio-0:2.15-6.fc43 100% | 78.5 MiB/s | 1.1 MiB | 00m00s [107/172] Installing diffutils-0:3.12-3 100% | 104.1 MiB/s | 1.6 MiB | 00m00s [108/172] Installing libgomp-0:15.2.1-1 100% | 529.8 MiB/s | 542.5 KiB | 00m00s [109/172] Installing libpkgconf-0:2.3.0 100% | 0.0 B/s | 79.2 KiB | 00m00s [110/172] Installing pkgconf-0:2.3.0-3. 100% | 8.1 MiB/s | 91.0 KiB | 00m00s [111/172] Installing ed-0:1.22.2-1.fc44 100% | 13.3 MiB/s | 150.4 KiB | 00m00s [112/172] Installing patch-0:2.8-2.fc43 100% | 19.9 MiB/s | 224.3 KiB | 00m00s [113/172] Installing jansson-0:2.14-3.f 100% | 0.0 B/s | 90.5 KiB | 00m00s [114/172] Installing libtool-ltdl-0:2.5 100% | 0.0 B/s | 71.2 KiB | 00m00s [115/172] Installing gdbm-libs-1:1.23-1 100% | 128.5 MiB/s | 131.6 KiB | 00m00s [116/172] Installing cyrus-sasl-lib-0:2 100% | 143.7 MiB/s | 2.3 MiB | 00m00s [117/172] Installing openldap-0:2.6.10- 100% | 322.1 MiB/s | 659.6 KiB | 00m00s [118/172] Installing gnupg2-dirmngr-0:2 100% | 35.7 MiB/s | 621.1 KiB | 00m00s [119/172] Installing gnupg2-0:2.4.8-4.f 100% | 242.6 MiB/s | 6.6 MiB | 00m00s [120/172] Installing rpm-sign-libs-0:5. 100% | 0.0 B/s | 40.6 KiB | 00m00s [121/172] Installing gpgverify-0:2.2-3. 100% | 0.0 B/s | 9.4 KiB | 00m00s [122/172] Installing xxhash-libs-0:0.8. 100% | 0.0 B/s | 91.6 KiB | 00m00s [123/172] Installing libbrotli-0:1.1.0- 100% | 272.0 MiB/s | 835.6 KiB | 00m00s [124/172] Installing libnghttp2-0:1.66. 100% | 159.5 MiB/s | 163.3 KiB | 00m00s [125/172] Installing keyutils-libs-0:1. 100% | 0.0 B/s | 55.7 KiB | 00m00s [126/172] Installing libcom_err-0:1.47. 100% | 0.0 B/s | 64.2 KiB | 00m00s [127/172] Installing libverto-0:0.3.2-1 100% | 0.0 B/s | 27.2 KiB | 00m00s [128/172] Installing krb5-libs-0:1.21.3 100% | 382.0 MiB/s | 2.3 MiB | 00m00s [129/172] Installing libssh-0:0.11.2-2. 100% | 277.7 MiB/s | 568.7 KiB | 00m00s [130/172] Installing libcurl-0:8.15.0-2 100% | 294.4 MiB/s | 904.3 KiB | 00m00s [131/172] Installing curl-0:8.15.0-2.fc 100% | 23.3 MiB/s | 476.3 KiB | 00m00s [132/172] Installing rpm-0:5.99.91-5.fc 100% | 89.0 MiB/s | 2.5 MiB | 00m00s [133/172] Installing efi-srpm-macros-0: 100% | 0.0 B/s | 41.1 KiB | 00m00s [134/172] Installing java-srpm-macros-0 100% | 0.0 B/s | 1.1 KiB | 00m00s [135/172] Installing lua-srpm-macros-0: 100% | 0.0 B/s | 1.9 KiB | 00m00s [136/172] Installing tree-sitter-srpm-m 100% | 0.0 B/s | 9.3 KiB | 00m00s [137/172] Installing zig-srpm-macros-0: 100% | 0.0 B/s | 1.7 KiB | 00m00s [138/172] Installing filesystem-srpm-ma 100% | 0.0 B/s | 38.9 KiB | 00m00s [139/172] Installing elfutils-default-y 100% | 510.7 KiB/s | 2.0 KiB | 00m00s [140/172] Installing elfutils-libs-0:0. 100% | 223.1 MiB/s | 685.2 KiB | 00m00s [141/172] Installing elfutils-debuginfo 100% | 7.0 MiB/s | 86.2 KiB | 00m00s [142/172] Installing binutils-0:2.45-3. 100% | 344.7 MiB/s | 26.5 MiB | 00m00s [143/172] Installing elfutils-0:0.193-3 100% | 171.7 MiB/s | 2.9 MiB | 00m00s [144/172] Installing gdb-minimal-0:16.3 100% | 315.6 MiB/s | 13.3 MiB | 00m00s [145/172] Installing debugedit-0:5.2-2. 100% | 16.3 MiB/s | 200.5 KiB | 00m00s [146/172] Installing rpm-build-libs-0:5 100% | 262.9 MiB/s | 269.2 KiB | 00m00s [147/172] Installing pkgconf-m4-0:2.3.0 100% | 0.0 B/s | 14.8 KiB | 00m00s [148/172] Installing pkgconf-pkg-config 100% | 161.2 KiB/s | 1.8 KiB | 00m00s [149/172] Installing rust-srpm-macros-0 100% | 0.0 B/s | 5.6 KiB | 00m00s [150/172] Installing qt6-srpm-macros-0: 100% | 0.0 B/s | 740.0 B | 00m00s [151/172] Installing qt5-srpm-macros-0: 100% | 0.0 B/s | 776.0 B | 00m00s [152/172] Installing perl-srpm-macros-0 100% | 0.0 B/s | 1.1 KiB | 00m00s [153/172] Installing package-notes-srpm 100% | 0.0 B/s | 2.0 KiB | 00m00s [154/172] Installing openblas-srpm-macr 100% | 0.0 B/s | 392.0 B | 00m00s [155/172] Installing ocaml-srpm-macros- 100% | 0.0 B/s | 2.1 KiB | 00m00s [156/172] Installing kernel-srpm-macros 100% | 0.0 B/s | 2.3 KiB | 00m00s [157/172] Installing gnat-srpm-macros-0 100% | 0.0 B/s | 1.3 KiB | 00m00s [158/172] Installing ghc-srpm-macros-0: 100% | 0.0 B/s | 1.0 KiB | 00m00s [159/172] Installing gap-srpm-macros-0: 100% | 0.0 B/s | 2.6 KiB | 00m00s [160/172] Installing fpc-srpm-macros-0: 100% | 0.0 B/s | 420.0 B | 00m00s [161/172] Installing ansible-srpm-macro 100% | 0.0 B/s | 36.2 KiB | 00m00s [162/172] Installing rpm-build-0:5.99.9 100% | 24.0 MiB/s | 294.4 KiB | 00m00s [163/172] Installing pyproject-srpm-mac 100% | 0.0 B/s | 2.5 KiB | 00m00s [164/172] Installing redhat-rpm-config- 100% | 185.0 MiB/s | 189.4 KiB | 00m00s [165/172] Installing forge-srpm-macros- 100% | 0.0 B/s | 40.3 KiB | 00m00s [166/172] Installing fonts-srpm-macros- 100% | 0.0 B/s | 57.0 KiB | 00m00s [167/172] Installing go-srpm-macros-0:3 100% | 0.0 B/s | 62.7 KiB | 00m00s [168/172] Installing python-srpm-macros 100% | 51.6 MiB/s | 52.8 KiB | 00m00s [169/172] Installing util-linux-0:2.41. 100% | 111.6 MiB/s | 3.6 MiB | 00m00s [170/172] Installing shadow-utils-2:4.1 100% | 147.0 MiB/s | 4.0 MiB | 00m00s [171/172] Installing which-0:2.23-3.fc4 100% | 7.6 MiB/s | 85.7 KiB | 00m00s [172/172] Installing info-0:7.2-6.fc43. 100% | 246.2 KiB/s | 354.3 KiB | 00m01s Warning: skipped OpenPGP checks for 170 packages from repositories: copr_base, http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch Complete! Finish: installing minimal buildroot with dnf5 Start: creating root cache Finish: creating root cache Finish: chroot init INFO: Installed packages: INFO: add-determinism-0.6.0-2.fc43.x86_64 alternatives-1.33-2.fc43.x86_64 ansible-srpm-macros-1-18.1.fc43.noarch audit-libs-4.1.1-2.fc44.x86_64 bash-5.3.0-2.fc43.x86_64 binutils-2.45-3.fc44.x86_64 build-reproducibility-srpm-macros-0.6.0-2.fc43.noarch bzip2-1.0.8-21.fc43.x86_64 bzip2-libs-1.0.8-21.fc43.x86_64 ca-certificates-2024.2.69_v8.0.401-8.fc44.noarch coreutils-9.7-5.fc43.x86_64 coreutils-common-9.7-5.fc43.x86_64 cpio-2.15-6.fc43.x86_64 crypto-policies-20250714-4.gitcd6043a.fc44.noarch curl-8.15.0-2.fc43.x86_64 cyrus-sasl-lib-2.1.28-33.fc44.x86_64 debugedit-5.2-2.fc43.x86_64 diffutils-3.12-3.fc43.x86_64 dwz-0.16-2.fc43.x86_64 ed-1.22.2-1.fc44.x86_64 efi-srpm-macros-6-4.fc43.noarch elfutils-0.193-3.fc43.x86_64 elfutils-debuginfod-client-0.193-3.fc43.x86_64 elfutils-default-yama-scope-0.193-3.fc43.noarch elfutils-libelf-0.193-3.fc43.x86_64 elfutils-libs-0.193-3.fc43.x86_64 fedora-gpg-keys-44-0.1.noarch fedora-release-44-0.2.noarch fedora-release-common-44-0.2.noarch fedora-release-identity-basic-44-0.2.noarch fedora-repos-44-0.1.noarch fedora-repos-rawhide-44-0.1.noarch file-5.46-7.fc44.x86_64 file-libs-5.46-7.fc44.x86_64 filesystem-3.18-50.fc43.x86_64 filesystem-srpm-macros-3.18-50.fc43.noarch findutils-4.10.0-6.fc43.x86_64 fonts-srpm-macros-2.0.5-23.fc43.noarch forge-srpm-macros-0.4.0-3.fc43.noarch fpc-srpm-macros-1.3-15.fc43.noarch gap-srpm-macros-1-1.fc44.noarch gawk-5.3.2-2.fc43.x86_64 gdb-minimal-16.3-5.fc44.x86_64 gdbm-libs-1.23-10.fc43.x86_64 ghc-srpm-macros-1.9.2-3.fc43.noarch glibc-2.42.9000-1.fc44.x86_64 glibc-common-2.42.9000-1.fc44.x86_64 glibc-gconv-extra-2.42.9000-1.fc44.x86_64 glibc-minimal-langpack-2.42.9000-1.fc44.x86_64 gmp-6.3.0-4.fc43.x86_64 gnat-srpm-macros-6-8.fc43.noarch gnupg2-2.4.8-4.fc43.x86_64 gnupg2-dirmngr-2.4.8-4.fc43.x86_64 gnupg2-gpg-agent-2.4.8-4.fc43.x86_64 gnupg2-gpgconf-2.4.8-4.fc43.x86_64 gnupg2-keyboxd-2.4.8-4.fc43.x86_64 gnupg2-verify-2.4.8-4.fc43.x86_64 gnutls-3.8.10-3.fc43.x86_64 go-srpm-macros-3.7.0-4.fc43.noarch gpgverify-2.2-3.fc43.noarch grep-3.12-2.fc43.x86_64 gzip-1.14-1.fc44.x86_64 ima-evm-utils-libs-1.6.2-6.fc43.x86_64 info-7.2-6.fc43.x86_64 jansson-2.14-3.fc43.x86_64 java-srpm-macros-1-7.fc43.noarch json-c-0.18-7.fc43.x86_64 kernel-srpm-macros-1.0-27.fc43.noarch keyutils-libs-1.6.3-6.fc43.x86_64 krb5-libs-1.21.3-7.fc43.x86_64 libacl-2.3.2-4.fc43.x86_64 libarchive-3.8.1-3.fc43.x86_64 libassuan-2.5.7-4.fc43.x86_64 libattr-2.5.2-6.fc43.x86_64 libblkid-2.41.1-16.fc44.x86_64 libbrotli-1.1.0-9.fc44.x86_64 libcap-2.76-3.fc44.x86_64 libcap-ng-0.8.5-7.fc44.x86_64 libcom_err-1.47.3-2.fc43.x86_64 libcurl-8.15.0-2.fc43.x86_64 libeconf-0.7.9-2.fc43.x86_64 libevent-2.1.12-16.fc43.x86_64 libfdisk-2.41.1-16.fc44.x86_64 libffi-3.5.1-2.fc43.x86_64 libfsverity-1.6-3.fc43.x86_64 libgcc-15.2.1-1.fc44.1.x86_64 libgcrypt-1.11.1-2.fc43.x86_64 libgomp-15.2.1-1.fc44.1.x86_64 libgpg-error-1.55-2.fc43.x86_64 libidn2-2.3.8-2.fc43.x86_64 libksba-1.6.7-4.fc43.x86_64 liblastlog2-2.41.1-16.fc44.x86_64 libmount-2.41.1-16.fc44.x86_64 libnghttp2-1.66.0-2.fc43.x86_64 libpkgconf-2.3.0-3.fc43.x86_64 libpsl-0.21.5-6.fc43.x86_64 libselinux-3.9-4.fc44.x86_64 libsemanage-3.9-3.fc44.x86_64 libsepol-3.9-2.fc43.x86_64 libsmartcols-2.41.1-16.fc44.x86_64 libssh-0.11.2-2.fc43.x86_64 libssh-config-0.11.2-2.fc43.noarch libstdc++-15.2.1-1.fc44.1.x86_64 libtasn1-4.20.0-2.fc43.x86_64 libtool-ltdl-2.5.4-7.fc43.x86_64 libunistring-1.1-10.fc43.x86_64 libusb1-1.0.29-3.fc43.x86_64 libuuid-2.41.1-16.fc44.x86_64 libverto-0.3.2-11.fc43.x86_64 libxcrypt-4.4.38-8.fc43.x86_64 libxml2-2.12.10-4.fc44.x86_64 libzstd-1.5.7-2.fc43.x86_64 lua-libs-5.4.8-2.fc43.x86_64 lua-srpm-macros-1-16.fc43.noarch lz4-libs-1.10.0-3.fc43.x86_64 mpfr-4.2.2-2.fc43.x86_64 ncurses-base-6.5-7.20250614.fc43.noarch ncurses-libs-6.5-7.20250614.fc43.x86_64 nettle-3.10.1-2.fc43.x86_64 npth-1.8-3.fc43.x86_64 ocaml-srpm-macros-11-2.fc43.noarch openblas-srpm-macros-2-20.fc43.noarch openldap-2.6.10-3.fc43.x86_64 openssl-libs-3.5.1-2.fc43.x86_64 p11-kit-0.25.5-9.fc43.x86_64 p11-kit-trust-0.25.5-9.fc43.x86_64 package-notes-srpm-macros-0.5-14.fc43.noarch pam-libs-1.7.1-3.fc43.x86_64 patch-2.8-2.fc43.x86_64 pcre2-10.45-1.fc43.1.x86_64 pcre2-syntax-10.45-1.fc43.1.noarch perl-srpm-macros-1-60.fc43.noarch pkgconf-2.3.0-3.fc43.x86_64 pkgconf-m4-2.3.0-3.fc43.noarch pkgconf-pkg-config-2.3.0-3.fc43.x86_64 popt-1.19-9.fc43.x86_64 publicsuffix-list-dafsa-20250616-2.fc43.noarch pyproject-srpm-macros-1.18.3-2.fc44.noarch python-srpm-macros-3.14-5.fc43.noarch qt5-srpm-macros-5.15.17-2.fc43.noarch qt6-srpm-macros-6.9.1-2.fc43.noarch readline-8.3-2.fc43.x86_64 redhat-rpm-config-343-13.fc44.noarch rpm-5.99.91-5.fc44.x86_64 rpm-build-5.99.91-5.fc44.x86_64 rpm-build-libs-5.99.91-5.fc44.x86_64 rpm-libs-5.99.91-5.fc44.x86_64 rpm-sequoia-1.9.0-2.fc43.x86_64 rpm-sign-libs-5.99.91-5.fc44.x86_64 rust-srpm-macros-26.4-1.fc44.noarch sed-4.9-5.fc43.x86_64 setup-2.15.0-26.fc43.noarch shadow-utils-4.18.0-3.fc43.x86_64 sqlite-libs-3.50.2-2.fc43.x86_64 systemd-libs-257.7-1.fc43.x86_64 systemd-standalone-sysusers-257.7-1.fc43.x86_64 tar-1.35-6.fc43.x86_64 tpm2-tss-4.1.3-8.fc43.x86_64 tree-sitter-srpm-macros-0.4.2-1.fc43.noarch unzip-6.0-68.fc44.x86_64 util-linux-2.41.1-16.fc44.x86_64 util-linux-core-2.41.1-16.fc44.x86_64 which-2.23-3.fc43.x86_64 xxhash-libs-0.8.3-3.fc43.x86_64 xz-5.8.1-2.fc43.x86_64 xz-libs-5.8.1-2.fc43.x86_64 zig-srpm-macros-1-5.fc43.noarch zip-3.0-44.fc43.x86_64 zlib-ng-compat-2.2.5-1.fc43.x86_64 zstd-1.5.7-2.fc43.x86_64 Start: buildsrpm Start: rpmbuild -bs Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1755216000 Wrote: /builddir/build/SRPMS/python-sqlalchemy-utils-0.41.1-12.fc44.src.rpm Finish: rpmbuild -bs INFO: chroot_scan: 1 files copied to /var/lib/copr-rpmbuild/results/chroot_scan INFO: /var/lib/mock/fedora-rawhide-x86_64-1756211287.875025/root/var/log/dnf5.log INFO: chroot_scan: creating tarball /var/lib/copr-rpmbuild/results/chroot_scan.tar.gz /bin/tar: Removing leading `/' from member names Finish: buildsrpm INFO: Done(/var/lib/copr-rpmbuild/workspace/workdir-4gxvi_it/python-sqlalchemy-utils/python-sqlalchemy-utils.spec) Config(child) 0 minutes 10 seconds INFO: Results and/or logs in: /var/lib/copr-rpmbuild/results INFO: Cleaning up build root ('cleanup_on_success=True') Start: clean chroot INFO: unmounting tmpfs. Finish: clean chroot INFO: Start(/var/lib/copr-rpmbuild/results/python-sqlalchemy-utils-0.41.1-12.fc44.src.rpm) Config(fedora-rawhide-x86_64) Start(bootstrap): chroot init INFO: mounting tmpfs at /var/lib/mock/fedora-rawhide-x86_64-bootstrap-1756211287.875025/root. INFO: reusing tmpfs at /var/lib/mock/fedora-rawhide-x86_64-bootstrap-1756211287.875025/root. INFO: calling preinit hooks INFO: enabled root cache INFO: enabled package manager cache Start(bootstrap): cleaning package manager metadata Finish(bootstrap): cleaning package manager metadata Finish(bootstrap): chroot init Start: chroot init INFO: mounting tmpfs at /var/lib/mock/fedora-rawhide-x86_64-1756211287.875025/root. INFO: calling preinit hooks INFO: enabled root cache Start: unpacking root cache Finish: unpacking root cache INFO: enabled package manager cache Start: cleaning package manager metadata Finish: cleaning package manager metadata INFO: enabled HW Info plugin INFO: Buildroot is handled by package management downloaded with a bootstrap image: rpm-5.99.91-4.fc44.x86_64 rpm-sequoia-1.9.0-2.fc43.x86_64 dnf5-5.2.16.0-3.fc44.x86_64 dnf5-plugins-5.2.16.0-3.fc44.x86_64 Finish: chroot init Start: build phase for python-sqlalchemy-utils-0.41.1-12.fc44.src.rpm Start: build setup for python-sqlalchemy-utils-0.41.1-12.fc44.src.rpm Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1755216000 Wrote: /builddir/build/SRPMS/python-sqlalchemy-utils-0.41.1-12.fc44.src.rpm Updating and loading repositories: Additional repo http_kojipkgs_fedorapr 100% | 57.2 KiB/s | 3.8 KiB | 00m00s Copr repository 100% | 22.9 KiB/s | 1.5 KiB | 00m00s fedora 100% | 82.5 KiB/s | 29.1 KiB | 00m00s Repositories loaded. Package Arch Version Repository Size Installing: python3-colour noarch 0.1.5-27.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 102.3 KiB python3-devel x86_64 3.14.0~rc2-1.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.9 MiB python3-phonenumbers noarch 8.13.48-5.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 42.6 MiB python3-pytest noarch 8.3.5-8.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 21.6 MiB Installing dependencies: expat x86_64 2.7.1-3.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 294.2 KiB mpdecimal x86_64 4.0.1-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 217.2 KiB pyproject-rpm-macros noarch 1.18.3-2.fc44 copr_base 114.5 KiB python-pip-wheel noarch 25.2-1.fc44 copr_base 1.2 MiB python-rpm-macros noarch 3.14-5.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 23.2 KiB python3 x86_64 3.14.0~rc2-1.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 28.9 KiB python3-iniconfig noarch 2.1.0-2.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 42.4 KiB python3-libs x86_64 3.14.0~rc2-1.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 42.9 MiB python3-packaging noarch 25.0-5.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 607.4 KiB python3-pluggy noarch 1.6.0-3.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 211.0 KiB python3-rpm-generators noarch 14-13.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 81.7 KiB python3-rpm-macros noarch 3.14-5.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 6.5 KiB tzdata noarch 2025b-3.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.6 MiB Transaction Summary: Installing: 17 packages Total size of inbound packages is 19 MiB. Need to download 4 MiB. After this operation, 114 MiB extra will be used (install 114 MiB, remove 0 B). [ 1/17] python3-devel-0:3.14.0~rc2-1.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 2/17] python3-pytest-0:8.3.5-8.fc44.n 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 3/17] python3-0:3.14.0~rc2-1.fc44.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 4/17] python3-iniconfig-0:2.1.0-2.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 5/17] python3-packaging-0:25.0-5.fc44 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 6/17] python3-pluggy-0:1.6.0-3.fc44.n 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 7/17] python3-libs-0:3.14.0~rc2-1.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 8/17] expat-0:2.7.1-3.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 9/17] mpdecimal-0:4.0.1-2.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [10/17] python-pip-wheel-0:25.2-1.fc44. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [11/17] tzdata-0:2025b-3.fc43.noarch 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [12/17] pyproject-rpm-macros-0:1.18.3-2 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [13/17] python-rpm-macros-0:3.14-5.fc43 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [14/17] python3-rpm-macros-0:3.14-5.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [15/17] python3-rpm-generators-0:14-13. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [16/17] python3-colour-0:0.1.5-27.fc44. 100% | 443.8 KiB/s | 37.3 KiB | 00m00s [17/17] python3-phonenumbers-0:8.13.48- 100% | 22.1 MiB/s | 4.4 MiB | 00m00s -------------------------------------------------------------------------------- [17/17] Total 100% | 20.9 MiB/s | 4.5 MiB | 00m00s Running transaction [ 1/19] Verify package files 100% | 269.0 B/s | 17.0 B | 00m00s [ 2/19] Prepare transaction 100% | 548.0 B/s | 17.0 B | 00m00s [ 3/19] Installing python-rpm-macros-0: 100% | 0.0 B/s | 23.9 KiB | 00m00s [ 4/19] Installing python3-rpm-macros-0 100% | 0.0 B/s | 6.8 KiB | 00m00s [ 5/19] Installing pyproject-rpm-macros 100% | 37.9 MiB/s | 116.5 KiB | 00m00s [ 6/19] Installing tzdata-0:2025b-3.fc4 100% | 67.6 MiB/s | 1.9 MiB | 00m00s [ 7/19] Installing python-pip-wheel-0:2 100% | 589.5 MiB/s | 1.2 MiB | 00m00s [ 8/19] Installing mpdecimal-0:4.0.1-2. 100% | 213.7 MiB/s | 218.8 KiB | 00m00s [ 9/19] Installing expat-0:2.7.1-3.fc43 100% | 18.1 MiB/s | 296.3 KiB | 00m00s [10/19] Installing python3-libs-0:3.14. 100% | 357.9 MiB/s | 43.3 MiB | 00m00s [11/19] Installing python3-0:3.14.0~rc2 100% | 2.7 MiB/s | 30.7 KiB | 00m00s [12/19] Installing python3-packaging-0: 100% | 302.7 MiB/s | 619.9 KiB | 00m00s [13/19] Installing python3-rpm-generato 100% | 0.0 B/s | 82.9 KiB | 00m00s [14/19] Installing python3-iniconfig-0: 100% | 45.4 MiB/s | 46.5 KiB | 00m00s [15/19] Installing python3-pluggy-0:1.6 100% | 106.2 MiB/s | 217.5 KiB | 00m00s [16/19] Installing python3-pytest-0:8.3 100% | 396.3 MiB/s | 21.8 MiB | 00m00s [17/19] Installing python3-devel-0:3.14 100% | 104.7 MiB/s | 2.0 MiB | 00m00s [18/19] Installing python3-colour-0:0.1 100% | 34.1 MiB/s | 104.9 KiB | 00m00s [19/19] Installing python3-phonenumbers 100% | 401.2 MiB/s | 42.9 MiB | 00m00s Warning: skipped OpenPGP checks for 17 packages from repositories: copr_base, http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch Complete! Finish: build setup for python-sqlalchemy-utils-0.41.1-12.fc44.src.rpm Start: rpmbuild python-sqlalchemy-utils-0.41.1-12.fc44.src.rpm Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1755216000 Executing(%mkbuilddir): /bin/sh -e /var/tmp/rpm-tmp.vFWmcN Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.jsJpQf + umask 022 + cd /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build + cd /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build + rm -rf SQLAlchemy-Utils-0.41.1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/SQLAlchemy-Utils-0.41.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd SQLAlchemy-Utils-0.41.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/no-psycopg2cffi.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/python-sqlalchemy-utils-0.41.1-no-pyodbc-dep.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/python-sqlalchemy-utils-0.41.1-nosqla2.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + rm -rf SQLAlchemy-Utils.egg-info + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.zlOi9x + umask 022 + cd /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build + cd SQLAlchemy-Utils-0.41.1 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(packaging)' + echo 'python3dist(pip) >= 19' + '[' -f pyproject.toml ']' + '[' -f setup.py ']' + echo 'python3dist(setuptools) >= 40.8' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/.pyproject-builddir + echo -n + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + VALAFLAGS=-g + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + LT_SYS_LIBRARY_PATH=/usr/lib64: + CC=gcc + CXX=g++ + TMPDIR=/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/.pyproject-builddir + RPM_TOXENV=py314 + FEDORA=44 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/pyproject-wheeldir --output /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/python-sqlalchemy-utils-0.41.1-12.fc44.x86_64-pyproject-buildrequires -x test Handling setuptools >= 40.8 from default build backend Requirement not satisfied: setuptools >= 40.8 Exiting dependency generation pass: build backend + cat /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/python-sqlalchemy-utils-0.41.1-12.fc44.x86_64-pyproject-buildrequires + rm -rfv '*.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-sqlalchemy-utils-0.41.1-12.fc44.buildreqs.nosrc.rpm INFO: Going to install missing dynamic buildrequires Updating and loading repositories: Additional repo http_kojipkgs_fedorapr 100% | 55.5 KiB/s | 3.8 KiB | 00m00s Copr repository 100% | 22.2 KiB/s | 1.5 KiB | 00m00s fedora 100% | 83.7 KiB/s | 29.1 KiB | 00m00s Repositories loaded. Package "pyproject-rpm-macros-1.18.3-2.fc44.noarch" is already installed. Package "python3-colour-0.1.5-27.fc44.noarch" is already installed. Package "python3-devel-3.14.0~rc2-1.fc44.x86_64" is already installed. Package "python3-phonenumbers-8.13.48-5.fc44.noarch" is already installed. Package "python3-pytest-8.3.5-8.fc44.noarch" is already installed. Package "python3-packaging-25.0-5.fc44.noarch" is already installed. Package Arch Version Repository Size Installing: python3-pip noarch 25.2-1.fc44 copr_base 11.3 MiB python3-setuptools noarch 78.1.1-12.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 9.0 MiB Transaction Summary: Installing: 2 packages Total size of inbound packages is 4 MiB. Need to download 0 B. After this operation, 20 MiB extra will be used (install 20 MiB, remove 0 B). [1/2] python3-pip-0:25.2-1.fc44.noarch 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [2/2] python3-setuptools-0:78.1.1-12.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [2/2] Total 100% | 0.0 B/s | 0.0 B | 00m00s Running transaction [1/4] Verify package files 100% | 125.0 B/s | 2.0 B | 00m00s [2/4] Prepare transaction 100% | 105.0 B/s | 2.0 B | 00m00s [3/4] Installing python3-setuptools-0:7 100% | 230.5 MiB/s | 9.2 MiB | 00m00s [4/4] Installing python3-pip-0:25.2-1.f 100% | 162.4 MiB/s | 11.5 MiB | 00m00s Warning: skipped OpenPGP checks for 2 packages from repositories: copr_base, http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch Complete! Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1755216000 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.O6itJd + umask 022 + cd /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build + cd SQLAlchemy-Utils-0.41.1 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(packaging)' + echo 'python3dist(pip) >= 19' + '[' -f pyproject.toml ']' + '[' -f setup.py ']' + echo 'python3dist(setuptools) >= 40.8' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/.pyproject-builddir + echo -n + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + VALAFLAGS=-g + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + LT_SYS_LIBRARY_PATH=/usr/lib64: + CC=gcc + CXX=g++ + TMPDIR=/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/.pyproject-builddir + RPM_TOXENV=py314 + FEDORA=44 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/pyproject-wheeldir --output /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/python-sqlalchemy-utils-0.41.1-12.fc44.x86_64-pyproject-buildrequires -x test Handling setuptools >= 40.8 from default build backend Requirement satisfied: setuptools >= 40.8 (installed: setuptools 78.1.1) /usr/lib/python3.14/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: BSD License See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() running egg_info writing SQLAlchemy_Utils.egg-info/PKG-INFO writing dependency_links to SQLAlchemy_Utils.egg-info/dependency_links.txt writing requirements to SQLAlchemy_Utils.egg-info/requires.txt writing top-level names to SQLAlchemy_Utils.egg-info/top_level.txt reading manifest file 'SQLAlchemy_Utils.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*.pyc' found under directory 'tests' warning: no previously-included files matching '*.pyc' found under directory 'docs' no previously-included directories found matching 'docs/_build' warning: no previously-included files found matching 'docs/_themes/.git' adding license file 'LICENSE' writing manifest file 'SQLAlchemy_Utils.egg-info/SOURCES.txt' running dist_info writing SQLAlchemy_Utils.egg-info/PKG-INFO writing dependency_links to SQLAlchemy_Utils.egg-info/dependency_links.txt writing requirements to SQLAlchemy_Utils.egg-info/requires.txt writing top-level names to SQLAlchemy_Utils.egg-info/top_level.txt reading manifest file 'SQLAlchemy_Utils.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*.pyc' found under directory 'tests' warning: no previously-included files matching '*.pyc' found under directory 'docs' no previously-included directories found matching 'docs/_build' warning: no previously-included files found matching 'docs/_themes/.git' adding license file 'LICENSE' writing manifest file 'SQLAlchemy_Utils.egg-info/SOURCES.txt' creating '/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/sqlalchemy_utils-0.41.1.dist-info' Handling SQLAlchemy<2,>=1.3 from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Requirement not satisfied: SQLAlchemy<2,>=1.3 Handling importlib_metadata; python_version < "3.8" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: importlib_metadata; python_version < "3.8" Handling pytest>=2.7.1; extra == "test" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Requirement satisfied: pytest>=2.7.1; extra == "test" (installed: pytest 8.3.5) Handling Pygments>=1.2; extra == "test" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Requirement not satisfied: Pygments>=1.2; extra == "test" Handling Jinja2>=2.3; extra == "test" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Requirement not satisfied: Jinja2>=2.3; extra == "test" Handling docutils>=0.10; extra == "test" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Requirement not satisfied: docutils>=0.10; extra == "test" Handling flexmock>=0.9.7; extra == "test" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Requirement not satisfied: flexmock>=0.9.7; extra == "test" Handling psycopg>=3.1.8; extra == "test" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Requirement not satisfied: psycopg>=3.1.8; extra == "test" Handling psycopg2>=2.5.1; extra == "test" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Requirement not satisfied: psycopg2>=2.5.1; extra == "test" Handling pg8000>=1.12.4; extra == "test" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Requirement not satisfied: pg8000>=1.12.4; extra == "test" Handling pytz>=2014.2; extra == "test" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Requirement not satisfied: pytz>=2014.2; extra == "test" Handling python-dateutil>=2.6; extra == "test" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Requirement not satisfied: python-dateutil>=2.6; extra == "test" Handling backports.zoneinfo; python_version < "3.9" and extra == "test" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: backports.zoneinfo; python_version < "3.9" and extra == "test" Handling pymysql; extra == "test" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Requirement not satisfied: pymysql; extra == "test" Handling flake8>=2.4.0; extra == "test" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Requirement not satisfied: flake8>=2.4.0; extra == "test" Handling isort>=4.2.2; extra == "test" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Requirement not satisfied: isort>=4.2.2; extra == "test" Handling Babel>=1.3; extra == "babel" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: Babel>=1.3; extra == "babel" Handling arrow>=0.3.4; extra == "arrow" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: arrow>=0.3.4; extra == "arrow" Handling pendulum>=2.0.5; extra == "pendulum" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: pendulum>=2.0.5; extra == "pendulum" Handling intervals>=0.7.1; extra == "intervals" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: intervals>=0.7.1; extra == "intervals" Handling phonenumbers>=5.9.2; extra == "phone" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: phonenumbers>=5.9.2; extra == "phone" Handling passlib<2.0,>=1.6; extra == "password" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: passlib<2.0,>=1.6; extra == "password" Handling colour>=0.0.4; extra == "color" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: colour>=0.0.4; extra == "color" Handling python-dateutil; extra == "timezone" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: python-dateutil; extra == "timezone" Handling furl>=0.4.1; extra == "url" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: furl>=0.4.1; extra == "url" Handling cryptography>=0.6; extra == "encrypted" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: cryptography>=0.6; extra == "encrypted" Handling Babel>=1.3; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: Babel>=1.3; extra == "test-all" Handling Jinja2>=2.3; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: Jinja2>=2.3; extra == "test-all" Handling Pygments>=1.2; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: Pygments>=1.2; extra == "test-all" Handling arrow>=0.3.4; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: arrow>=0.3.4; extra == "test-all" Handling backports.zoneinfo; python_version < "3.9" and extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: backports.zoneinfo; python_version < "3.9" and extra == "test-all" Handling colour>=0.0.4; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: colour>=0.0.4; extra == "test-all" Handling cryptography>=0.6; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: cryptography>=0.6; extra == "test-all" Handling docutils>=0.10; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: docutils>=0.10; extra == "test-all" Handling flake8>=2.4.0; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: flake8>=2.4.0; extra == "test-all" Handling flexmock>=0.9.7; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: flexmock>=0.9.7; extra == "test-all" Handling furl>=0.4.1; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: furl>=0.4.1; extra == "test-all" Handling intervals>=0.7.1; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: intervals>=0.7.1; extra == "test-all" Handling isort>=4.2.2; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: isort>=4.2.2; extra == "test-all" Handling passlib<2.0,>=1.6; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: passlib<2.0,>=1.6; extra == "test-all" Handling pendulum>=2.0.5; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: pendulum>=2.0.5; extra == "test-all" Handling pg8000>=1.12.4; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: pg8000>=1.12.4; extra == "test-all" Handling phonenumbers>=5.9.2; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: phonenumbers>=5.9.2; extra == "test-all" Handling psycopg2>=2.5.1; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: psycopg2>=2.5.1; extra == "test-all" Handling psycopg>=3.1.8; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: psycopg>=3.1.8; extra == "test-all" Handling pymysql; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: pymysql; extra == "test-all" Handling pytest>=2.7.1; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: pytest>=2.7.1; extra == "test-all" Handling python-dateutil; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: python-dateutil; extra == "test-all" Handling python-dateutil>=2.6; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: python-dateutil>=2.6; extra == "test-all" Handling pytz>=2014.2; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: pytz>=2014.2; extra == "test-all" + cat /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/python-sqlalchemy-utils-0.41.1-12.fc44.x86_64-pyproject-buildrequires + rm -rfv sqlalchemy_utils-0.41.1.dist-info/ removed 'sqlalchemy_utils-0.41.1.dist-info/licenses/LICENSE' removed directory 'sqlalchemy_utils-0.41.1.dist-info/licenses' removed 'sqlalchemy_utils-0.41.1.dist-info/METADATA' removed 'sqlalchemy_utils-0.41.1.dist-info/top_level.txt' removed directory 'sqlalchemy_utils-0.41.1.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-sqlalchemy-utils-0.41.1-12.fc44.buildreqs.nosrc.rpm INFO: Going to install missing dynamic buildrequires Updating and loading repositories: Additional repo http_kojipkgs_fedorapr 100% | 57.2 KiB/s | 3.8 KiB | 00m00s Copr repository 100% | 22.9 KiB/s | 1.5 KiB | 00m00s fedora 100% | 227.4 KiB/s | 29.1 KiB | 00m00s Repositories loaded. Package "pyproject-rpm-macros-1.18.3-2.fc44.noarch" is already installed. Package "python3-colour-0.1.5-27.fc44.noarch" is already installed. Package "python3-devel-3.14.0~rc2-1.fc44.x86_64" is already installed. Package "python3-phonenumbers-8.13.48-5.fc44.noarch" is already installed. Package "python3-pytest-8.3.5-8.fc44.noarch" is already installed. Package "python3-packaging-25.0-5.fc44.noarch" is already installed. Package "python3-pip-25.2-1.fc44.noarch" is already installed. Package "python3-pytest-8.3.5-8.fc44.noarch" is already installed. Package "python3-setuptools-78.1.1-12.fc44.noarch" is already installed. Package Arch Version Repository Size Installing: python3-PyMySQL noarch 1.1.1-6.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 402.3 KiB python3-dateutil noarch 1:2.9.0.post0-5.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 877.5 KiB python3-docutils noarch 0.21.2-5.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 5.0 MiB python3-flake8 noarch 6.1.0-8.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 476.1 KiB python3-flexmock noarch 0.12.2-5.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 301.8 KiB python3-isort noarch 6.0.1-4.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 814.6 KiB python3-jinja2 noarch 3.1.6-5.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 3.1 MiB python3-pg8000 noarch 1.31.4-3.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 352.9 KiB python3-psycopg2 x86_64 2.9.10-3.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 628.4 KiB python3-psycopg3 noarch 3.2.9-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.9 MiB python3-pygments noarch 2.19.1-5.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 11.3 MiB python3-pytz noarch 2025.2-4.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 224.0 KiB python3-sqlalchemy1.4 x86_64 1.4.54-6.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 17.1 MiB Installing dependencies: libpq x86_64 18.0-2.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.9 MiB python3-asn1crypto noarch 1.5.1-15.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.0 MiB python3-greenlet x86_64 3.1.1-7.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 950.9 KiB python3-markupsafe x86_64 3.0.2-5.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 61.5 KiB python3-mccabe noarch 0.7.0-15.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 39.3 KiB python3-pycodestyle noarch 2.12.1-8.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 374.1 KiB python3-pyflakes noarch 3.1.0-7.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 359.1 KiB python3-scramp noarch 1.4.6-3.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 117.3 KiB python3-six noarch 1.17.0-6.fc44 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 118.0 KiB Transaction Summary: Installing: 22 packages Total size of inbound packages is 10 MiB. Need to download 5 MiB. After this operation, 47 MiB extra will be used (install 47 MiB, remove 0 B). [ 1/22] python3-docutils-0:0.21.2-5.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 2/22] python3-jinja2-0:3.1.6-5.fc44.n 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 3/22] python3-pygments-0:2.19.1-5.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 4/22] python3-dateutil-1:2.9.0.post0- 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 5/22] python3-markupsafe-0:3.0.2-5.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 6/22] python3-six-0:1.17.0-6.fc44.noa 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 7/22] python3-flexmock-0:0.12.2-5.fc4 100% | 895.4 KiB/s | 81.5 KiB | 00m00s [ 8/22] python3-flake8-0:6.1.0-8.fc44.n 100% | 1.2 MiB/s | 137.4 KiB | 00m00s [ 9/22] python3-isort-0:6.0.1-4.fc44.no 100% | 1.8 MiB/s | 233.1 KiB | 00m00s [10/22] python3-pg8000-0:1.31.4-3.fc44. 100% | 2.3 MiB/s | 95.3 KiB | 00m00s [11/22] python3-PyMySQL-0:1.1.1-6.fc44. 100% | 3.7 MiB/s | 109.1 KiB | 00m00s [12/22] python3-psycopg2-0:2.9.10-3.fc4 100% | 4.0 MiB/s | 202.5 KiB | 00m00s [13/22] python3-pytz-0:2025.2-4.fc44.no 100% | 2.1 MiB/s | 61.6 KiB | 00m00s [14/22] python3-psycopg3-0:3.2.9-2.fc43 100% | 4.0 MiB/s | 442.6 KiB | 00m00s [15/22] python3-greenlet-0:3.1.1-7.fc44 100% | 5.7 MiB/s | 244.3 KiB | 00m00s [16/22] libpq-0:18.0-2.fc44.x86_64 100% | 7.3 MiB/s | 371.6 KiB | 00m00s [17/22] python3-sqlalchemy1.4-0:1.4.54- 100% | 32.1 MiB/s | 2.9 MiB | 00m00s [18/22] python3-scramp-0:1.4.6-3.fc44.n 100% | 944.3 KiB/s | 34.0 KiB | 00m00s [19/22] python3-mccabe-0:0.7.0-15.fc44. 100% | 823.8 KiB/s | 23.1 KiB | 00m00s [20/22] python3-pycodestyle-0:2.12.1-8. 100% | 3.8 MiB/s | 106.4 KiB | 00m00s [21/22] python3-pyflakes-0:3.1.0-7.fc44 100% | 3.2 MiB/s | 87.5 KiB | 00m00s [22/22] python3-asn1crypto-0:1.5.1-15.f 100% | 7.9 MiB/s | 227.8 KiB | 00m00s -------------------------------------------------------------------------------- [22/22] Total 100% | 16.1 MiB/s | 5.3 MiB | 00m00s Running transaction [ 1/24] Verify package files 100% | 666.0 B/s | 22.0 B | 00m00s [ 2/24] Prepare transaction 100% | 814.0 B/s | 22.0 B | 00m00s [ 3/24] Installing libpq-0:18.0-2.fc44. 100% | 323.6 MiB/s | 1.9 MiB | 00m00s [ 4/24] Installing python3-asn1crypto-0 100% | 331.7 MiB/s | 1.0 MiB | 00m00s [ 5/24] Installing python3-scramp-0:1.4 100% | 118.2 MiB/s | 121.0 KiB | 00m00s [ 6/24] Installing python3-six-0:1.17.0 100% | 117.5 MiB/s | 120.3 KiB | 00m00s [ 7/24] Installing python3-dateutil-1:2 100% | 290.1 MiB/s | 891.1 KiB | 00m00s [ 8/24] Installing python3-pyflakes-0:3 100% | 27.6 MiB/s | 367.1 KiB | 00m00s [ 9/24] Installing python3-pycodestyle- 100% | 30.7 MiB/s | 377.2 KiB | 00m00s [10/24] Installing python3-mccabe-0:0.7 100% | 0.0 B/s | 41.7 KiB | 00m00s [11/24] Installing python3-markupsafe-0 100% | 64.2 MiB/s | 65.8 KiB | 00m00s [12/24] Installing python3-greenlet-0:3 100% | 191.7 MiB/s | 981.3 KiB | 00m00s [13/24] Installing python3-sqlalchemy1. 100% | 384.2 MiB/s | 17.3 MiB | 00m00s [14/24] Installing python3-jinja2-0:3.1 100% | 441.7 MiB/s | 3.1 MiB | 00m00s [15/24] Installing python3-flake8-0:6.1 100% | 34.8 MiB/s | 498.9 KiB | 00m00s [16/24] Installing python3-pg8000-0:1.3 100% | 175.1 MiB/s | 358.7 KiB | 00m00s [17/24] Installing python3-psycopg3-0:3 100% | 282.6 MiB/s | 2.0 MiB | 00m00s [18/24] Installing python3-psycopg2-0:2 100% | 311.2 MiB/s | 637.3 KiB | 00m00s [19/24] Installing python3-pytz-0:2025. 100% | 224.0 MiB/s | 229.4 KiB | 00m00s [20/24] Installing python3-PyMySQL-0:1. 100% | 135.0 MiB/s | 414.6 KiB | 00m00s [21/24] Installing python3-pygments-0:2 100% | 244.4 MiB/s | 11.5 MiB | 00m00s [22/24] Installing python3-isort-0:6.0. 100% | 54.9 MiB/s | 843.4 KiB | 00m00s [23/24] Installing python3-flexmock-0:0 100% | 152.1 MiB/s | 311.6 KiB | 00m00s [24/24] Installing python3-docutils-0:0 100% | 120.5 MiB/s | 5.1 MiB | 00m00s Warning: skipped OpenPGP checks for 22 packages from repository: http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch Complete! Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1755216000 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.bHRxQm + umask 022 + cd /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build + cd SQLAlchemy-Utils-0.41.1 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(packaging)' + echo 'python3dist(pip) >= 19' + '[' -f pyproject.toml ']' + '[' -f setup.py ']' + echo 'python3dist(setuptools) >= 40.8' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/.pyproject-builddir + echo -n + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + VALAFLAGS=-g + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + LT_SYS_LIBRARY_PATH=/usr/lib64: + CC=gcc + CXX=g++ + TMPDIR=/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/.pyproject-builddir + RPM_TOXENV=py314 + FEDORA=44 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/pyproject-wheeldir --output /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/python-sqlalchemy-utils-0.41.1-12.fc44.x86_64-pyproject-buildrequires -x test Handling setuptools >= 40.8 from default build backend Requirement satisfied: setuptools >= 40.8 (installed: setuptools 78.1.1) /usr/lib/python3.14/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: BSD License See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() running egg_info writing SQLAlchemy_Utils.egg-info/PKG-INFO writing dependency_links to SQLAlchemy_Utils.egg-info/dependency_links.txt writing requirements to SQLAlchemy_Utils.egg-info/requires.txt writing top-level names to SQLAlchemy_Utils.egg-info/top_level.txt reading manifest file 'SQLAlchemy_Utils.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*.pyc' found under directory 'tests' warning: no previously-included files matching '*.pyc' found under directory 'docs' no previously-included directories found matching 'docs/_build' warning: no previously-included files found matching 'docs/_themes/.git' adding license file 'LICENSE' writing manifest file 'SQLAlchemy_Utils.egg-info/SOURCES.txt' running dist_info writing SQLAlchemy_Utils.egg-info/PKG-INFO writing dependency_links to SQLAlchemy_Utils.egg-info/dependency_links.txt writing requirements to SQLAlchemy_Utils.egg-info/requires.txt writing top-level names to SQLAlchemy_Utils.egg-info/top_level.txt reading manifest file 'SQLAlchemy_Utils.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*.pyc' found under directory 'tests' warning: no previously-included files matching '*.pyc' found under directory 'docs' no previously-included directories found matching 'docs/_build' warning: no previously-included files found matching 'docs/_themes/.git' adding license file 'LICENSE' writing manifest file 'SQLAlchemy_Utils.egg-info/SOURCES.txt' creating '/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/sqlalchemy_utils-0.41.1.dist-info' Handling SQLAlchemy<2,>=1.3 from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Requirement satisfied: SQLAlchemy<2,>=1.3 (installed: SQLAlchemy 1.4.54) Handling importlib_metadata; python_version < "3.8" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: importlib_metadata; python_version < "3.8" Handling pytest>=2.7.1; extra == "test" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Requirement satisfied: pytest>=2.7.1; extra == "test" (installed: pytest 8.3.5) Handling Pygments>=1.2; extra == "test" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Requirement satisfied: Pygments>=1.2; extra == "test" (installed: Pygments 2.19.1) Handling Jinja2>=2.3; extra == "test" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Requirement satisfied: Jinja2>=2.3; extra == "test" (installed: Jinja2 3.1.6) Handling docutils>=0.10; extra == "test" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Requirement satisfied: docutils>=0.10; extra == "test" (installed: docutils 0.21.2) Handling flexmock>=0.9.7; extra == "test" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Requirement satisfied: flexmock>=0.9.7; extra == "test" (installed: flexmock 0.12.2) Handling psycopg>=3.1.8; extra == "test" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Requirement satisfied: psycopg>=3.1.8; extra == "test" (installed: psycopg 3.2.9) Handling psycopg2>=2.5.1; extra == "test" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Requirement satisfied: psycopg2>=2.5.1; extra == "test" (installed: psycopg2 2.9.10) Handling pg8000>=1.12.4; extra == "test" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Requirement satisfied: pg8000>=1.12.4; extra == "test" (installed: pg8000 1.31.4) Handling pytz>=2014.2; extra == "test" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Requirement satisfied: pytz>=2014.2; extra == "test" (installed: pytz 2025.2) Handling python-dateutil>=2.6; extra == "test" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Requirement satisfied: python-dateutil>=2.6; extra == "test" (installed: python-dateutil 2.9.0.post0) Handling backports.zoneinfo; python_version < "3.9" and extra == "test" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: backports.zoneinfo; python_version < "3.9" and extra == "test" Handling pymysql; extra == "test" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Requirement satisfied: pymysql; extra == "test" (installed: pymysql 1.1.1) Handling flake8>=2.4.0; extra == "test" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Requirement satisfied: flake8>=2.4.0; extra == "test" (installed: flake8 6.1.0) Handling isort>=4.2.2; extra == "test" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Requirement satisfied: isort>=4.2.2; extra == "test" (installed: isort 6.0.1) Handling Babel>=1.3; extra == "babel" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: Babel>=1.3; extra == "babel" Handling arrow>=0.3.4; extra == "arrow" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: arrow>=0.3.4; extra == "arrow" Handling pendulum>=2.0.5; extra == "pendulum" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: pendulum>=2.0.5; extra == "pendulum" Handling intervals>=0.7.1; extra == "intervals" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: intervals>=0.7.1; extra == "intervals" Handling phonenumbers>=5.9.2; extra == "phone" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: phonenumbers>=5.9.2; extra == "phone" Handling passlib<2.0,>=1.6; extra == "password" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: passlib<2.0,>=1.6; extra == "password" Handling colour>=0.0.4; extra == "color" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: colour>=0.0.4; extra == "color" Handling python-dateutil; extra == "timezone" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: python-dateutil; extra == "timezone" Handling furl>=0.4.1; extra == "url" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: furl>=0.4.1; extra == "url" Handling cryptography>=0.6; extra == "encrypted" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: cryptography>=0.6; extra == "encrypted" Handling Babel>=1.3; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: Babel>=1.3; extra == "test-all" Handling Jinja2>=2.3; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: Jinja2>=2.3; extra == "test-all" Handling Pygments>=1.2; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: Pygments>=1.2; extra == "test-all" Handling arrow>=0.3.4; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: arrow>=0.3.4; extra == "test-all" Handling backports.zoneinfo; python_version < "3.9" and extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: backports.zoneinfo; python_version < "3.9" and extra == "test-all" Handling colour>=0.0.4; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: colour>=0.0.4; extra == "test-all" Handling cryptography>=0.6; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: cryptography>=0.6; extra == "test-all" Handling docutils>=0.10; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: docutils>=0.10; extra == "test-all" Handling flake8>=2.4.0; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: flake8>=2.4.0; extra == "test-all" Handling flexmock>=0.9.7; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: flexmock>=0.9.7; extra == "test-all" Handling furl>=0.4.1; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: furl>=0.4.1; extra == "test-all" Handling intervals>=0.7.1; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: intervals>=0.7.1; extra == "test-all" Handling isort>=4.2.2; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: isort>=4.2.2; extra == "test-all" Handling passlib<2.0,>=1.6; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: passlib<2.0,>=1.6; extra == "test-all" Handling pendulum>=2.0.5; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: pendulum>=2.0.5; extra == "test-all" Handling pg8000>=1.12.4; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: pg8000>=1.12.4; extra == "test-all" Handling phonenumbers>=5.9.2; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: phonenumbers>=5.9.2; extra == "test-all" Handling psycopg2>=2.5.1; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: psycopg2>=2.5.1; extra == "test-all" Handling psycopg>=3.1.8; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: psycopg>=3.1.8; extra == "test-all" Handling pymysql; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: pymysql; extra == "test-all" Handling pytest>=2.7.1; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: pytest>=2.7.1; extra == "test-all" Handling python-dateutil; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: python-dateutil; extra == "test-all" Handling python-dateutil>=2.6; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: python-dateutil>=2.6; extra == "test-all" Handling pytz>=2014.2; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: pytz>=2014.2; extra == "test-all" + cat /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/python-sqlalchemy-utils-0.41.1-12.fc44.x86_64-pyproject-buildrequires + rm -rfv sqlalchemy_utils-0.41.1.dist-info/ removed 'sqlalchemy_utils-0.41.1.dist-info/licenses/LICENSE' removed directory 'sqlalchemy_utils-0.41.1.dist-info/licenses' removed 'sqlalchemy_utils-0.41.1.dist-info/METADATA' removed 'sqlalchemy_utils-0.41.1.dist-info/top_level.txt' removed directory 'sqlalchemy_utils-0.41.1.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-sqlalchemy-utils-0.41.1-12.fc44.buildreqs.nosrc.rpm INFO: Going to install missing dynamic buildrequires Updating and loading repositories: Additional repo http_kojipkgs_fedorapr 100% | 53.9 KiB/s | 3.8 KiB | 00m00s Copr repository 100% | 21.6 KiB/s | 1.5 KiB | 00m00s fedora 100% | 160.8 KiB/s | 29.1 KiB | 00m00s Repositories loaded. Nothing to do. Package "pyproject-rpm-macros-1.18.3-2.fc44.noarch" is already installed. Package "python3-colour-0.1.5-27.fc44.noarch" is already installed. Package "python3-devel-3.14.0~rc2-1.fc44.x86_64" is already installed. Package "python3-phonenumbers-8.13.48-5.fc44.noarch" is already installed. Package "python3-pytest-8.3.5-8.fc44.noarch" is already installed. Package "python3-docutils-0.21.2-5.fc44.noarch" is already installed. Package "python3-flake8-6.1.0-8.fc44.noarch" is already installed. Package "python3-flexmock-0.12.2-5.fc44.noarch" is already installed. Package "python3-isort-6.0.1-4.fc44.noarch" is already installed. Package "python3-jinja2-3.1.6-5.fc44.noarch" is already installed. Package "python3-packaging-25.0-5.fc44.noarch" is already installed. Package "python3-pg8000-1.31.4-3.fc44.noarch" is already installed. Package "python3-pip-25.2-1.fc44.noarch" is already installed. Package "python3-psycopg3-3.2.9-2.fc43.noarch" is already installed. Package "python3-psycopg2-2.9.10-3.fc44.x86_64" is already installed. Package "python3-pygments-2.19.1-5.fc44.noarch" is already installed. Package "python3-PyMySQL-1.1.1-6.fc44.noarch" is already installed. Package "python3-pytest-8.3.5-8.fc44.noarch" is already installed. Package "python3-dateutil-1:2.9.0.post0-5.fc44.noarch" is already installed. Package "python3-pytz-2025.2-4.fc44.noarch" is already installed. Package "python3-setuptools-78.1.1-12.fc44.noarch" is already installed. Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1755216000 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.fE9hey + umask 022 + cd /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build + cd SQLAlchemy-Utils-0.41.1 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(packaging)' + echo 'python3dist(pip) >= 19' + '[' -f pyproject.toml ']' + '[' -f setup.py ']' + echo 'python3dist(setuptools) >= 40.8' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/.pyproject-builddir + echo -n + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + VALAFLAGS=-g + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + LT_SYS_LIBRARY_PATH=/usr/lib64: + CC=gcc + CXX=g++ + TMPDIR=/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/.pyproject-builddir + RPM_TOXENV=py314 + FEDORA=44 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/pyproject-wheeldir --output /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/python-sqlalchemy-utils-0.41.1-12.fc44.x86_64-pyproject-buildrequires -x test Handling setuptools >= 40.8 from default build backend Requirement satisfied: setuptools >= 40.8 (installed: setuptools 78.1.1) /usr/lib/python3.14/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: BSD License See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() running egg_info writing SQLAlchemy_Utils.egg-info/PKG-INFO writing dependency_links to SQLAlchemy_Utils.egg-info/dependency_links.txt writing requirements to SQLAlchemy_Utils.egg-info/requires.txt writing top-level names to SQLAlchemy_Utils.egg-info/top_level.txt reading manifest file 'SQLAlchemy_Utils.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*.pyc' found under directory 'tests' warning: no previously-included files matching '*.pyc' found under directory 'docs' no previously-included directories found matching 'docs/_build' warning: no previously-included files found matching 'docs/_themes/.git' adding license file 'LICENSE' writing manifest file 'SQLAlchemy_Utils.egg-info/SOURCES.txt' running dist_info writing SQLAlchemy_Utils.egg-info/PKG-INFO writing dependency_links to SQLAlchemy_Utils.egg-info/dependency_links.txt writing requirements to SQLAlchemy_Utils.egg-info/requires.txt writing top-level names to SQLAlchemy_Utils.egg-info/top_level.txt reading manifest file 'SQLAlchemy_Utils.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*.pyc' found under directory 'tests' warning: no previously-included files matching '*.pyc' found under directory 'docs' no previously-included directories found matching 'docs/_build' warning: no previously-included files found matching 'docs/_themes/.git' adding license file 'LICENSE' writing manifest file 'SQLAlchemy_Utils.egg-info/SOURCES.txt' creating '/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/sqlalchemy_utils-0.41.1.dist-info' Handling SQLAlchemy<2,>=1.3 from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Requirement satisfied: SQLAlchemy<2,>=1.3 (installed: SQLAlchemy 1.4.54) Handling importlib_metadata; python_version < "3.8" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: importlib_metadata; python_version < "3.8" Handling pytest>=2.7.1; extra == "test" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Requirement satisfied: pytest>=2.7.1; extra == "test" (installed: pytest 8.3.5) Handling Pygments>=1.2; extra == "test" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Requirement satisfied: Pygments>=1.2; extra == "test" (installed: Pygments 2.19.1) Handling Jinja2>=2.3; extra == "test" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Requirement satisfied: Jinja2>=2.3; extra == "test" (installed: Jinja2 3.1.6) Handling docutils>=0.10; extra == "test" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Requirement satisfied: docutils>=0.10; extra == "test" (installed: docutils 0.21.2) Handling flexmock>=0.9.7; extra == "test" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Requirement satisfied: flexmock>=0.9.7; extra == "test" (installed: flexmock 0.12.2) Handling psycopg>=3.1.8; extra == "test" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Requirement satisfied: psycopg>=3.1.8; extra == "test" (installed: psycopg 3.2.9) Handling psycopg2>=2.5.1; extra == "test" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Requirement satisfied: psycopg2>=2.5.1; extra == "test" (installed: psycopg2 2.9.10) Handling pg8000>=1.12.4; extra == "test" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Requirement satisfied: pg8000>=1.12.4; extra == "test" (installed: pg8000 1.31.4) Handling pytz>=2014.2; extra == "test" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Requirement satisfied: pytz>=2014.2; extra == "test" (installed: pytz 2025.2) Handling python-dateutil>=2.6; extra == "test" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Requirement satisfied: python-dateutil>=2.6; extra == "test" (installed: python-dateutil 2.9.0.post0) Handling backports.zoneinfo; python_version < "3.9" and extra == "test" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: backports.zoneinfo; python_version < "3.9" and extra == "test" Handling pymysql; extra == "test" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Requirement satisfied: pymysql; extra == "test" (installed: pymysql 1.1.1) Handling flake8>=2.4.0; extra == "test" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Requirement satisfied: flake8>=2.4.0; extra == "test" (installed: flake8 6.1.0) Handling isort>=4.2.2; extra == "test" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Requirement satisfied: isort>=4.2.2; extra == "test" (installed: isort 6.0.1) Handling Babel>=1.3; extra == "babel" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: Babel>=1.3; extra == "babel" Handling arrow>=0.3.4; extra == "arrow" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: arrow>=0.3.4; extra == "arrow" Handling pendulum>=2.0.5; extra == "pendulum" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: pendulum>=2.0.5; extra == "pendulum" Handling intervals>=0.7.1; extra == "intervals" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: intervals>=0.7.1; extra == "intervals" Handling phonenumbers>=5.9.2; extra == "phone" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: phonenumbers>=5.9.2; extra == "phone" Handling passlib<2.0,>=1.6; extra == "password" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: passlib<2.0,>=1.6; extra == "password" Handling colour>=0.0.4; extra == "color" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: colour>=0.0.4; extra == "color" Handling python-dateutil; extra == "timezone" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: python-dateutil; extra == "timezone" Handling furl>=0.4.1; extra == "url" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: furl>=0.4.1; extra == "url" Handling cryptography>=0.6; extra == "encrypted" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: cryptography>=0.6; extra == "encrypted" Handling Babel>=1.3; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: Babel>=1.3; extra == "test-all" Handling Jinja2>=2.3; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: Jinja2>=2.3; extra == "test-all" Handling Pygments>=1.2; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: Pygments>=1.2; extra == "test-all" Handling arrow>=0.3.4; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: arrow>=0.3.4; extra == "test-all" Handling backports.zoneinfo; python_version < "3.9" and extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: backports.zoneinfo; python_version < "3.9" and extra == "test-all" Handling colour>=0.0.4; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: colour>=0.0.4; extra == "test-all" Handling cryptography>=0.6; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: cryptography>=0.6; extra == "test-all" Handling docutils>=0.10; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: docutils>=0.10; extra == "test-all" Handling flake8>=2.4.0; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: flake8>=2.4.0; extra == "test-all" Handling flexmock>=0.9.7; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: flexmock>=0.9.7; extra == "test-all" Handling furl>=0.4.1; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: furl>=0.4.1; extra == "test-all" Handling intervals>=0.7.1; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: intervals>=0.7.1; extra == "test-all" Handling isort>=4.2.2; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: isort>=4.2.2; extra == "test-all" Handling passlib<2.0,>=1.6; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: passlib<2.0,>=1.6; extra == "test-all" Handling pendulum>=2.0.5; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: pendulum>=2.0.5; extra == "test-all" Handling pg8000>=1.12.4; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: pg8000>=1.12.4; extra == "test-all" Handling phonenumbers>=5.9.2; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: phonenumbers>=5.9.2; extra == "test-all" Handling psycopg2>=2.5.1; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: psycopg2>=2.5.1; extra == "test-all" Handling psycopg>=3.1.8; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: psycopg>=3.1.8; extra == "test-all" Handling pymysql; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: pymysql; extra == "test-all" Handling pytest>=2.7.1; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: pytest>=2.7.1; extra == "test-all" Handling python-dateutil; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: python-dateutil; extra == "test-all" Handling python-dateutil>=2.6; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: python-dateutil>=2.6; extra == "test-all" Handling pytz>=2014.2; extra == "test-all" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils) Ignoring alien requirement: pytz>=2014.2; extra == "test-all" + cat /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/python-sqlalchemy-utils-0.41.1-12.fc44.x86_64-pyproject-buildrequires + rm -rfv sqlalchemy_utils-0.41.1.dist-info/ removed 'sqlalchemy_utils-0.41.1.dist-info/licenses/LICENSE' removed directory 'sqlalchemy_utils-0.41.1.dist-info/licenses' removed 'sqlalchemy_utils-0.41.1.dist-info/METADATA' removed 'sqlalchemy_utils-0.41.1.dist-info/top_level.txt' removed directory 'sqlalchemy_utils-0.41.1.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.mi5WpK + umask 022 + cd /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd SQLAlchemy-Utils-0.41.1 + mkdir -p /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/.pyproject-builddir + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + VALAFLAGS=-g + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + LT_SYS_LIBRARY_PATH=/usr/lib64: + CC=gcc + CXX=g++ + TMPDIR=/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/.pyproject-builddir + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_wheel.py /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/pyproject-wheeldir Processing /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1 Preparing metadata (pyproject.toml): started Running command Preparing metadata (pyproject.toml) /usr/lib/python3.14/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: BSD License See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() running dist_info creating /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/.pyproject-builddir/pip-modern-metadata-duxtaweg/SQLAlchemy_Utils.egg-info writing /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/.pyproject-builddir/pip-modern-metadata-duxtaweg/SQLAlchemy_Utils.egg-info/PKG-INFO writing dependency_links to /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/.pyproject-builddir/pip-modern-metadata-duxtaweg/SQLAlchemy_Utils.egg-info/dependency_links.txt writing requirements to /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/.pyproject-builddir/pip-modern-metadata-duxtaweg/SQLAlchemy_Utils.egg-info/requires.txt writing top-level names to /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/.pyproject-builddir/pip-modern-metadata-duxtaweg/SQLAlchemy_Utils.egg-info/top_level.txt writing manifest file '/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/.pyproject-builddir/pip-modern-metadata-duxtaweg/SQLAlchemy_Utils.egg-info/SOURCES.txt' reading manifest file '/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/.pyproject-builddir/pip-modern-metadata-duxtaweg/SQLAlchemy_Utils.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*.pyc' found under directory 'tests' warning: no previously-included files matching '*.pyc' found under directory 'docs' no previously-included directories found matching 'docs/_build' warning: no previously-included files found matching 'docs/_themes/.git' adding license file 'LICENSE' writing manifest file '/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/.pyproject-builddir/pip-modern-metadata-duxtaweg/SQLAlchemy_Utils.egg-info/SOURCES.txt' creating '/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/.pyproject-builddir/pip-modern-metadata-duxtaweg/sqlalchemy_utils-0.41.1.dist-info' Preparing metadata (pyproject.toml): finished with status 'done' Building wheels for collected packages: SQLAlchemy-Utils Building wheel for SQLAlchemy-Utils (pyproject.toml): started Running command Building wheel for SQLAlchemy-Utils (pyproject.toml) /usr/lib/python3.14/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: BSD License See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() running bdist_wheel running build running build_py creating build/lib/sqlalchemy_utils copying sqlalchemy_utils/view.py -> build/lib/sqlalchemy_utils copying sqlalchemy_utils/utils.py -> build/lib/sqlalchemy_utils copying sqlalchemy_utils/query_chain.py -> build/lib/sqlalchemy_utils copying sqlalchemy_utils/proxy_dict.py -> build/lib/sqlalchemy_utils copying sqlalchemy_utils/path.py -> build/lib/sqlalchemy_utils copying sqlalchemy_utils/operators.py -> build/lib/sqlalchemy_utils copying sqlalchemy_utils/observer.py -> build/lib/sqlalchemy_utils copying sqlalchemy_utils/models.py -> build/lib/sqlalchemy_utils copying sqlalchemy_utils/listeners.py -> build/lib/sqlalchemy_utils copying sqlalchemy_utils/i18n.py -> build/lib/sqlalchemy_utils copying sqlalchemy_utils/generic.py -> build/lib/sqlalchemy_utils copying sqlalchemy_utils/expressions.py -> build/lib/sqlalchemy_utils copying sqlalchemy_utils/exceptions.py -> build/lib/sqlalchemy_utils copying sqlalchemy_utils/compat.py -> build/lib/sqlalchemy_utils copying sqlalchemy_utils/asserts.py -> build/lib/sqlalchemy_utils copying sqlalchemy_utils/aggregates.py -> build/lib/sqlalchemy_utils copying sqlalchemy_utils/__init__.py -> build/lib/sqlalchemy_utils creating build/lib/sqlalchemy_utils/types copying sqlalchemy_utils/types/weekdays.py -> build/lib/sqlalchemy_utils/types copying sqlalchemy_utils/types/uuid.py -> build/lib/sqlalchemy_utils/types copying sqlalchemy_utils/types/url.py -> build/lib/sqlalchemy_utils/types copying sqlalchemy_utils/types/ts_vector.py -> build/lib/sqlalchemy_utils/types copying sqlalchemy_utils/types/timezone.py -> build/lib/sqlalchemy_utils/types copying sqlalchemy_utils/types/scalar_list.py -> build/lib/sqlalchemy_utils/types copying sqlalchemy_utils/types/scalar_coercible.py -> build/lib/sqlalchemy_utils/types copying sqlalchemy_utils/types/range.py -> build/lib/sqlalchemy_utils/types copying sqlalchemy_utils/types/phone_number.py -> build/lib/sqlalchemy_utils/types copying sqlalchemy_utils/types/pg_composite.py -> build/lib/sqlalchemy_utils/types copying sqlalchemy_utils/types/password.py -> build/lib/sqlalchemy_utils/types copying sqlalchemy_utils/types/ltree.py -> build/lib/sqlalchemy_utils/types copying sqlalchemy_utils/types/locale.py -> build/lib/sqlalchemy_utils/types copying sqlalchemy_utils/types/json.py -> build/lib/sqlalchemy_utils/types copying sqlalchemy_utils/types/ip_address.py -> build/lib/sqlalchemy_utils/types copying sqlalchemy_utils/types/email.py -> build/lib/sqlalchemy_utils/types copying sqlalchemy_utils/types/currency.py -> build/lib/sqlalchemy_utils/types copying sqlalchemy_utils/types/country.py -> build/lib/sqlalchemy_utils/types copying sqlalchemy_utils/types/color.py -> build/lib/sqlalchemy_utils/types copying sqlalchemy_utils/types/choice.py -> build/lib/sqlalchemy_utils/types copying sqlalchemy_utils/types/bit.py -> build/lib/sqlalchemy_utils/types copying sqlalchemy_utils/types/arrow.py -> build/lib/sqlalchemy_utils/types copying sqlalchemy_utils/types/__init__.py -> build/lib/sqlalchemy_utils/types creating build/lib/sqlalchemy_utils/relationships copying sqlalchemy_utils/relationships/chained_join.py -> build/lib/sqlalchemy_utils/relationships copying sqlalchemy_utils/relationships/__init__.py -> build/lib/sqlalchemy_utils/relationships creating build/lib/sqlalchemy_utils/primitives copying sqlalchemy_utils/primitives/weekdays.py -> build/lib/sqlalchemy_utils/primitives copying sqlalchemy_utils/primitives/weekday.py -> build/lib/sqlalchemy_utils/primitives copying sqlalchemy_utils/primitives/ltree.py -> build/lib/sqlalchemy_utils/primitives copying sqlalchemy_utils/primitives/currency.py -> build/lib/sqlalchemy_utils/primitives copying sqlalchemy_utils/primitives/country.py -> build/lib/sqlalchemy_utils/primitives copying sqlalchemy_utils/primitives/__init__.py -> build/lib/sqlalchemy_utils/primitives creating build/lib/sqlalchemy_utils/functions copying sqlalchemy_utils/functions/sort_query.py -> build/lib/sqlalchemy_utils/functions copying sqlalchemy_utils/functions/render.py -> build/lib/sqlalchemy_utils/functions copying sqlalchemy_utils/functions/orm.py -> build/lib/sqlalchemy_utils/functions copying sqlalchemy_utils/functions/mock.py -> build/lib/sqlalchemy_utils/functions copying sqlalchemy_utils/functions/foreign_keys.py -> build/lib/sqlalchemy_utils/functions copying sqlalchemy_utils/functions/database.py -> build/lib/sqlalchemy_utils/functions copying sqlalchemy_utils/functions/__init__.py -> build/lib/sqlalchemy_utils/functions creating build/lib/sqlalchemy_utils/types/enriched_datetime copying sqlalchemy_utils/types/enriched_datetime/pendulum_datetime.py -> build/lib/sqlalchemy_utils/types/enriched_datetime copying sqlalchemy_utils/types/enriched_datetime/pendulum_date.py -> build/lib/sqlalchemy_utils/types/enriched_datetime copying sqlalchemy_utils/types/enriched_datetime/enriched_datetime_type.py -> build/lib/sqlalchemy_utils/types/enriched_datetime copying sqlalchemy_utils/types/enriched_datetime/enriched_date_type.py -> build/lib/sqlalchemy_utils/types/enriched_datetime copying sqlalchemy_utils/types/enriched_datetime/arrow_datetime.py -> build/lib/sqlalchemy_utils/types/enriched_datetime copying sqlalchemy_utils/types/enriched_datetime/__init__.py -> build/lib/sqlalchemy_utils/types/enriched_datetime creating build/lib/sqlalchemy_utils/types/encrypted copying sqlalchemy_utils/types/encrypted/padding.py -> build/lib/sqlalchemy_utils/types/encrypted copying sqlalchemy_utils/types/encrypted/encrypted_type.py -> build/lib/sqlalchemy_utils/types/encrypted copying sqlalchemy_utils/types/encrypted/__init__.py -> build/lib/sqlalchemy_utils/types/encrypted running egg_info writing SQLAlchemy_Utils.egg-info/PKG-INFO writing dependency_links to SQLAlchemy_Utils.egg-info/dependency_links.txt writing requirements to SQLAlchemy_Utils.egg-info/requires.txt writing top-level names to SQLAlchemy_Utils.egg-info/top_level.txt reading manifest file 'SQLAlchemy_Utils.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*.pyc' found under directory 'tests' warning: no previously-included files matching '*.pyc' found under directory 'docs' no previously-included directories found matching 'docs/_build' warning: no previously-included files found matching 'docs/_themes/.git' adding license file 'LICENSE' writing manifest file 'SQLAlchemy_Utils.egg-info/SOURCES.txt' installing to build/bdist.linux-x86_64/wheel running install running install_lib creating build/bdist.linux-x86_64/wheel creating build/bdist.linux-x86_64/wheel/sqlalchemy_utils creating build/bdist.linux-x86_64/wheel/sqlalchemy_utils/functions copying build/lib/sqlalchemy_utils/functions/__init__.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/functions copying build/lib/sqlalchemy_utils/functions/database.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/functions copying build/lib/sqlalchemy_utils/functions/foreign_keys.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/functions copying build/lib/sqlalchemy_utils/functions/mock.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/functions copying build/lib/sqlalchemy_utils/functions/orm.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/functions copying build/lib/sqlalchemy_utils/functions/render.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/functions copying build/lib/sqlalchemy_utils/functions/sort_query.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/functions creating build/bdist.linux-x86_64/wheel/sqlalchemy_utils/primitives copying build/lib/sqlalchemy_utils/primitives/__init__.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/primitives copying build/lib/sqlalchemy_utils/primitives/country.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/primitives copying build/lib/sqlalchemy_utils/primitives/currency.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/primitives copying build/lib/sqlalchemy_utils/primitives/ltree.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/primitives copying build/lib/sqlalchemy_utils/primitives/weekday.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/primitives copying build/lib/sqlalchemy_utils/primitives/weekdays.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/primitives creating build/bdist.linux-x86_64/wheel/sqlalchemy_utils/relationships copying build/lib/sqlalchemy_utils/relationships/__init__.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/relationships copying build/lib/sqlalchemy_utils/relationships/chained_join.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/relationships creating build/bdist.linux-x86_64/wheel/sqlalchemy_utils/types creating build/bdist.linux-x86_64/wheel/sqlalchemy_utils/types/encrypted copying build/lib/sqlalchemy_utils/types/encrypted/__init__.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/types/encrypted copying build/lib/sqlalchemy_utils/types/encrypted/encrypted_type.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/types/encrypted copying build/lib/sqlalchemy_utils/types/encrypted/padding.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/types/encrypted creating build/bdist.linux-x86_64/wheel/sqlalchemy_utils/types/enriched_datetime copying build/lib/sqlalchemy_utils/types/enriched_datetime/__init__.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/types/enriched_datetime copying build/lib/sqlalchemy_utils/types/enriched_datetime/arrow_datetime.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/types/enriched_datetime copying build/lib/sqlalchemy_utils/types/enriched_datetime/enriched_date_type.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/types/enriched_datetime copying build/lib/sqlalchemy_utils/types/enriched_datetime/enriched_datetime_type.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/types/enriched_datetime copying build/lib/sqlalchemy_utils/types/enriched_datetime/pendulum_date.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/types/enriched_datetime copying build/lib/sqlalchemy_utils/types/enriched_datetime/pendulum_datetime.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/types/enriched_datetime copying build/lib/sqlalchemy_utils/types/__init__.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/types copying build/lib/sqlalchemy_utils/types/arrow.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/types copying build/lib/sqlalchemy_utils/types/bit.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/types copying build/lib/sqlalchemy_utils/types/choice.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/types copying build/lib/sqlalchemy_utils/types/color.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/types copying build/lib/sqlalchemy_utils/types/country.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/types copying build/lib/sqlalchemy_utils/types/currency.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/types copying build/lib/sqlalchemy_utils/types/email.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/types copying build/lib/sqlalchemy_utils/types/ip_address.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/types copying build/lib/sqlalchemy_utils/types/json.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/types copying build/lib/sqlalchemy_utils/types/locale.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/types copying build/lib/sqlalchemy_utils/types/ltree.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/types copying build/lib/sqlalchemy_utils/types/password.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/types copying build/lib/sqlalchemy_utils/types/pg_composite.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/types copying build/lib/sqlalchemy_utils/types/phone_number.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/types copying build/lib/sqlalchemy_utils/types/range.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/types copying build/lib/sqlalchemy_utils/types/scalar_coercible.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/types copying build/lib/sqlalchemy_utils/types/scalar_list.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/types copying build/lib/sqlalchemy_utils/types/timezone.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/types copying build/lib/sqlalchemy_utils/types/ts_vector.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/types copying build/lib/sqlalchemy_utils/types/url.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/types copying build/lib/sqlalchemy_utils/types/uuid.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/types copying build/lib/sqlalchemy_utils/types/weekdays.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils/types copying build/lib/sqlalchemy_utils/__init__.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils copying build/lib/sqlalchemy_utils/aggregates.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils copying build/lib/sqlalchemy_utils/asserts.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils copying build/lib/sqlalchemy_utils/compat.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils copying build/lib/sqlalchemy_utils/exceptions.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils copying build/lib/sqlalchemy_utils/expressions.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils copying build/lib/sqlalchemy_utils/generic.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils copying build/lib/sqlalchemy_utils/i18n.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils copying build/lib/sqlalchemy_utils/listeners.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils copying build/lib/sqlalchemy_utils/models.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils copying build/lib/sqlalchemy_utils/observer.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils copying build/lib/sqlalchemy_utils/operators.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils copying build/lib/sqlalchemy_utils/path.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils copying build/lib/sqlalchemy_utils/proxy_dict.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils copying build/lib/sqlalchemy_utils/query_chain.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils copying build/lib/sqlalchemy_utils/utils.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils copying build/lib/sqlalchemy_utils/view.py -> build/bdist.linux-x86_64/wheel/./sqlalchemy_utils running install_egg_info Copying SQLAlchemy_Utils.egg-info to build/bdist.linux-x86_64/wheel/./SQLAlchemy_Utils-0.41.1-py3.14.egg-info running install_scripts creating build/bdist.linux-x86_64/wheel/sqlalchemy_utils-0.41.1.dist-info/WHEEL creating '/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/.pyproject-builddir/pip-wheel-4npr9pi1/.tmp-wru7vdc8/sqlalchemy_utils-0.41.1-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it adding 'sqlalchemy_utils/__init__.py' adding 'sqlalchemy_utils/aggregates.py' adding 'sqlalchemy_utils/asserts.py' adding 'sqlalchemy_utils/compat.py' adding 'sqlalchemy_utils/exceptions.py' adding 'sqlalchemy_utils/expressions.py' adding 'sqlalchemy_utils/generic.py' adding 'sqlalchemy_utils/i18n.py' adding 'sqlalchemy_utils/listeners.py' adding 'sqlalchemy_utils/models.py' adding 'sqlalchemy_utils/observer.py' adding 'sqlalchemy_utils/operators.py' adding 'sqlalchemy_utils/path.py' adding 'sqlalchemy_utils/proxy_dict.py' adding 'sqlalchemy_utils/query_chain.py' adding 'sqlalchemy_utils/utils.py' adding 'sqlalchemy_utils/view.py' adding 'sqlalchemy_utils/functions/__init__.py' adding 'sqlalchemy_utils/functions/database.py' adding 'sqlalchemy_utils/functions/foreign_keys.py' adding 'sqlalchemy_utils/functions/mock.py' adding 'sqlalchemy_utils/functions/orm.py' adding 'sqlalchemy_utils/functions/render.py' adding 'sqlalchemy_utils/functions/sort_query.py' adding 'sqlalchemy_utils/primitives/__init__.py' adding 'sqlalchemy_utils/primitives/country.py' adding 'sqlalchemy_utils/primitives/currency.py' adding 'sqlalchemy_utils/primitives/ltree.py' adding 'sqlalchemy_utils/primitives/weekday.py' adding 'sqlalchemy_utils/primitives/weekdays.py' adding 'sqlalchemy_utils/relationships/__init__.py' adding 'sqlalchemy_utils/relationships/chained_join.py' adding 'sqlalchemy_utils/types/__init__.py' adding 'sqlalchemy_utils/types/arrow.py' adding 'sqlalchemy_utils/types/bit.py' adding 'sqlalchemy_utils/types/choice.py' adding 'sqlalchemy_utils/types/color.py' adding 'sqlalchemy_utils/types/country.py' adding 'sqlalchemy_utils/types/currency.py' adding 'sqlalchemy_utils/types/email.py' adding 'sqlalchemy_utils/types/ip_address.py' adding 'sqlalchemy_utils/types/json.py' adding 'sqlalchemy_utils/types/locale.py' adding 'sqlalchemy_utils/types/ltree.py' adding 'sqlalchemy_utils/types/password.py' adding 'sqlalchemy_utils/types/pg_composite.py' adding 'sqlalchemy_utils/types/phone_number.py' adding 'sqlalchemy_utils/types/range.py' adding 'sqlalchemy_utils/types/scalar_coercible.py' adding 'sqlalchemy_utils/types/scalar_list.py' adding 'sqlalchemy_utils/types/timezone.py' adding 'sqlalchemy_utils/types/ts_vector.py' adding 'sqlalchemy_utils/types/url.py' adding 'sqlalchemy_utils/types/uuid.py' adding 'sqlalchemy_utils/types/weekdays.py' adding 'sqlalchemy_utils/types/encrypted/__init__.py' adding 'sqlalchemy_utils/types/encrypted/encrypted_type.py' adding 'sqlalchemy_utils/types/encrypted/padding.py' adding 'sqlalchemy_utils/types/enriched_datetime/__init__.py' adding 'sqlalchemy_utils/types/enriched_datetime/arrow_datetime.py' adding 'sqlalchemy_utils/types/enriched_datetime/enriched_date_type.py' adding 'sqlalchemy_utils/types/enriched_datetime/enriched_datetime_type.py' adding 'sqlalchemy_utils/types/enriched_datetime/pendulum_date.py' adding 'sqlalchemy_utils/types/enriched_datetime/pendulum_datetime.py' adding 'sqlalchemy_utils-0.41.1.dist-info/licenses/LICENSE' adding 'sqlalchemy_utils-0.41.1.dist-info/METADATA' adding 'sqlalchemy_utils-0.41.1.dist-info/WHEEL' adding 'sqlalchemy_utils-0.41.1.dist-info/top_level.txt' adding 'sqlalchemy_utils-0.41.1.dist-info/RECORD' removing build/bdist.linux-x86_64/wheel Building wheel for SQLAlchemy-Utils (pyproject.toml): finished with status 'done' Created wheel for SQLAlchemy-Utils: filename=sqlalchemy_utils-0.41.1-py3-none-any.whl size=92216 sha256=5b2f0da44eb1a5018c8f713d87634126a198877e61445185f09015c9b4341b83 Stored in directory: /builddir/.cache/pip/wheels/6d/cb/16/ed192976f44794749500446f4d34c0d2a5997a082bd2a8bd4e Successfully built SQLAlchemy-Utils + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.iAuvYR + umask 022 + cd /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build + '[' /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT '!=' / ']' + rm -rf /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT ++ dirname /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT + mkdir -p /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build + mkdir /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd SQLAlchemy-Utils-0.41.1 ++ xargs basename --multiple ++ ls /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/pyproject-wheeldir/sqlalchemy_utils-0.41.1-py3-none-any.whl ++ sed -E 's/([^-]+)-([^-]+)-.+\.whl/\1==\2/' + specifier=sqlalchemy_utils==0.41.1 + '[' -z sqlalchemy_utils==0.41.1 ']' + TMPDIR=/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/.pyproject-builddir + /usr/bin/python3 -m pip install --root /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT --prefix /usr --no-deps --disable-pip-version-check --progress-bar off --verbose --ignore-installed --no-warn-script-location --no-index --no-cache-dir --find-links /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/pyproject-wheeldir sqlalchemy_utils==0.41.1 Using pip 25.2 from /usr/lib/python3.14/site-packages/pip (python 3.14) Looking in links: /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/pyproject-wheeldir Processing ./pyproject-wheeldir/sqlalchemy_utils-0.41.1-py3-none-any.whl Installing collected packages: sqlalchemy_utils Successfully installed sqlalchemy_utils-0.41.1 + '[' -d /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/bin ']' + rm -f /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/python-sqlalchemy-utils-0.41.1-12.fc44.x86_64-pyproject-ghost-distinfo + site_dirs=() + '[' -d /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages ']' + site_dirs+=("/usr/lib/python3.14/site-packages") + '[' /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib64/python3.14/site-packages '!=' /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages ']' + '[' -d /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib64/python3.14/site-packages ']' + for site_dir in ${site_dirs[@]} + for distinfo in /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT$site_dir/*.dist-info + echo '%ghost /usr/lib/python3.14/site-packages/sqlalchemy_utils-0.41.1.dist-info' + sed -i s/pip/rpm/ /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils-0.41.1.dist-info/INSTALLER + PYTHONPATH=/usr/lib/rpm/redhat + /usr/bin/python3 -B /usr/lib/rpm/redhat/pyproject_preprocess_record.py --buildroot /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT --record /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils-0.41.1.dist-info/RECORD --output /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/python-sqlalchemy-utils-0.41.1-12.fc44.x86_64-pyproject-record + rm -fv /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils-0.41.1.dist-info/RECORD removed '/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils-0.41.1.dist-info/RECORD' + rm -fv /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils-0.41.1.dist-info/REQUESTED removed '/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils-0.41.1.dist-info/REQUESTED' ++ wc -l /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/python-sqlalchemy-utils-0.41.1-12.fc44.x86_64-pyproject-ghost-distinfo ++ cut -f1 '-d ' + lines=1 + '[' 1 -ne 1 ']' + RPM_FILES_ESCAPE=4.19 + /usr/bin/python3 /usr/lib/rpm/redhat/pyproject_save_files.py --output-files /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/python-sqlalchemy-utils-0.41.1-12.fc44.x86_64-pyproject-files --output-modules /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/python-sqlalchemy-utils-0.41.1-12.fc44.x86_64-pyproject-modules --buildroot /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT --sitelib /usr/lib/python3.14/site-packages --sitearch /usr/lib64/python3.14/site-packages --python-version 3.14 --pyproject-record /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/python-sqlalchemy-utils-0.41.1-12.fc44.x86_64-pyproject-record --prefix /usr sqlalchemy_utils + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + /usr/lib/rpm/redhat/brp-python-rpm-in-distinfo + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j4 Bytecompiling .py files below /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14 using python3.14 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/bin/add-determinism --brp -j4 /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/__pycache__/utils.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/__pycache__/query_chain.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/__pycache__/view.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/__pycache__/operators.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/__pycache__/proxy_dict.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/__pycache__/listeners.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/__pycache__/models.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/__pycache__/path.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/__pycache__/i18n.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/__pycache__/compat.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/__pycache__/asserts.cpython-314.opt-1.pyc: replacing with normalized version /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/__pycache__/asserts.cpython-314.pyc: replacing with normalized version /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/__pycache__/observer.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/__pycache__/expressions.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/__pycache__/generic.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/__pycache__/exceptions.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/types/__pycache__/scalar_coercible.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/__pycache__/__init__.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/types/__pycache__/url.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/__pycache__/aggregates.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/types/__pycache__/phone_number.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/types/__pycache__/ts_vector.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/types/__pycache__/weekdays.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/types/__pycache__/password.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/types/__pycache__/timezone.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/types/__pycache__/uuid.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/types/__pycache__/scalar_list.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/types/__pycache__/ip_address.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/types/__pycache__/range.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/types/__pycache__/locale.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/types/__pycache__/ltree.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/types/__pycache__/country.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/types/__pycache__/pg_composite.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/types/__pycache__/arrow.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/types/__pycache__/color.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/types/__pycache__/__init__.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/types/__pycache__/json.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/types/__pycache__/email.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/types/__pycache__/bit.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/types/__pycache__/currency.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/types/enriched_datetime/__pycache__/pendulum_datetime.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/types/enriched_datetime/__pycache__/pendulum_date.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/types/enriched_datetime/__pycache__/enriched_date_type.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/types/enriched_datetime/__pycache__/__init__.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/types/__pycache__/choice.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/types/enriched_datetime/__pycache__/arrow_datetime.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/types/enriched_datetime/__pycache__/enriched_datetime_type.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/types/encrypted/__pycache__/__init__.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/relationships/__pycache__/chained_join.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/relationships/__pycache__/__init__.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/types/encrypted/__pycache__/padding.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/primitives/__pycache__/weekdays.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/primitives/__pycache__/ltree.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/primitives/__pycache__/currency.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/types/encrypted/__pycache__/encrypted_type.cpython-314.pyc: replacing with normalized version /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/primitives/__pycache__/__init__.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/primitives/__pycache__/weekday.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/functions/__pycache__/render.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/primitives/__pycache__/country.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/functions/__pycache__/mock.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/functions/__pycache__/database.cpython-314.opt-1.pyc: replacing with normalized version /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/functions/__pycache__/orm.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/functions/__pycache__/sort_query.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/functions/__pycache__/__init__.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/types/encrypted/__pycache__/encrypted_type.cpython-314.opt-1.pyc: replacing with normalized version /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/functions/__pycache__/database.cpython-314.pyc: replacing with normalized version /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages/sqlalchemy_utils/functions/__pycache__/foreign_keys.cpython-314.opt-1.pyc: rewriting with normalized contents Scanned 21 directories and 197 files, processed 67 inodes, 67 modified (6 replaced + 61 rewritten), 0 unsupported format, 0 errors Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.nisdQq + umask 022 + cd /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd SQLAlchemy-Utils-0.41.1 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + PATH=/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin + PYTHONPATH=/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib64/python3.14/site-packages:/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.14/site-packages + PYTHONDONTWRITEBYTECODE=1 + PYTEST_ADDOPTS=' --ignore=/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/.pyproject-builddir' + PYTEST_XDIST_AUTO_NUM_WORKERS=4 + /usr/bin/pytest ============================= test session starts ============================== platform linux -- Python 3.14.0rc2, pytest-8.3.5, pluggy-1.6.0 rootdir: /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1 plugins: flexmock-0.12.2 collected 2689 items tests/aggregate/test_backrefs.py ... [ 0%] tests/aggregate/test_custom_select_expressions.py EE [ 0%] tests/aggregate/test_join_table_inheritance.py .EEEE [ 0%] tests/aggregate/test_m2m.py EE [ 0%] tests/aggregate/test_m2m_m2m.py E [ 0%] tests/aggregate/test_multiple_aggregates_per_class.py ... [ 0%] tests/aggregate/test_o2m_m2m.py E [ 0%] tests/aggregate/test_o2m_o2m.py E [ 0%] tests/aggregate/test_o2m_o2m_o2m.py EE [ 0%] tests/aggregate/test_search_vectors.py E [ 0%] tests/aggregate/test_simple_paths.py ... [ 0%] tests/aggregate/test_with_column_alias.py ... [ 1%] tests/aggregate/test_with_ondelete_cascade.py E [ 1%] tests/functions/test_cast_if.py ...... [ 1%] tests/functions/test_database.py ....FFFFFsFFFs [ 1%] tests/functions/test_dependent_objects.py ....... [ 2%] tests/functions/test_escape_like.py . [ 2%] tests/functions/test_get_bind.py .... [ 2%] tests/functions/test_get_class_by_table.py ..... [ 2%] tests/functions/test_get_column_key.py ... [ 2%] tests/functions/test_get_columns.py ......... [ 2%] tests/functions/test_get_hybrid_properties.py ... [ 2%] tests/functions/test_get_mapper.py ................ [ 3%] tests/functions/test_get_primary_keys.py ..... [ 3%] tests/functions/test_get_referencing_foreign_keys.py .... [ 3%] tests/functions/test_get_tables.py ........ [ 4%] tests/functions/test_get_type.py ...... [ 4%] tests/functions/test_getdotattr.py ... [ 4%] tests/functions/test_has_changes.py ...... [ 4%] tests/functions/test_has_index.py ........ [ 5%] tests/functions/test_has_unique_index.py ......... [ 5%] tests/functions/test_identity.py ...... [ 5%] tests/functions/test_is_loaded.py .. [ 5%] tests/functions/test_json_sql.py EEEEEEEE [ 5%] tests/functions/test_jsonb_sql.py EEEEEEEE [ 6%] tests/functions/test_make_order_by_deterministic.py .......... [ 6%] tests/functions/test_merge_references.py ..... [ 6%] tests/functions/test_naturally_equivalent.py .. [ 6%] tests/functions/test_non_indexed_foreign_keys.py . [ 6%] tests/functions/test_quote.py .. [ 7%] tests/functions/test_render.py ...... [ 7%] tests/functions/test_table_name.py ... [ 7%] tests/generic_relationship/test_abstract_base_class.py ....... [ 7%] tests/generic_relationship/test_column_aliases.py ....... [ 7%] tests/generic_relationship/test_composite_keys.py ....... [ 8%] tests/generic_relationship/test_hybrid_properties.py . [ 8%] tests/generic_relationship/test_single_table_inheritance.py ........ [ 8%] tests/observes/test_column_property.py EEEE [ 8%] tests/observes/test_dynamic_relationship.py EE [ 8%] tests/observes/test_m2m_m2m_m2m.py EEEEE [ 8%] tests/observes/test_o2m_o2m_o2m.py EEEEE [ 9%] tests/observes/test_o2m_o2o_o2m.py EEEEE [ 9%] tests/observes/test_o2o_o2o.py E [ 9%] tests/observes/test_o2o_o2o_o2o.py EEE [ 9%] tests/primitives/test_country.py sssssssssssssssssssssss [ 10%] tests/primitives/test_currency.py sssssssssssss [ 10%] tests/primitives/test_ltree.py ......................................... [ 12%] ....................... [ 13%] tests/primitives/test_weekdays.py ssssssssssssssssssssssssssssssssssssss [ 14%] [ 14%] tests/relationships/test_chained_join.py ......... [ 14%] tests/relationships/test_select_correlated_expression.py EEEEEEEEEEE [ 15%] tests/test_asserts.py EEEEEEEEEEEEEEEEE [ 15%] tests/test_auto_delete_orphans.py ... [ 16%] tests/test_case_insensitive_comparator.py .... [ 16%] tests/test_compat.py ........ [ 16%] tests/test_expressions.py ..... [ 16%] tests/test_instant_defaults_listener.py ... [ 16%] tests/test_instrumented_list.py .. [ 16%] tests/test_models.py ..... [ 17%] tests/test_path.py ............................ [ 18%] tests/test_proxy_dict.py ........ [ 18%] tests/test_query_chain.py ......... [ 18%] tests/test_translation_hybrid.py sssssssssssss [ 19%] tests/test_views.py EEEEEE.x [ 19%] tests/types/encrypted/test_padding.py .... [ 19%] tests/types/test_arrow.py sssssss [ 19%] tests/types/test_choice.py ................. [ 20%] tests/types/test_color.py ..... [ 20%] tests/types/test_composite.py EEEEsssssssssEE [ 21%] tests/types/test_country.py ssss [ 21%] tests/types/test_currency.py ssss [ 21%] tests/types/test_date_range.py ssssssssssss [ 22%] tests/types/test_datetime_range.py sssssssssss [ 22%] tests/types/test_email.py .... [ 22%] tests/types/test_encrypted.py ssssssssssssssssssssssssssssssssssssssssss [ 24%] sssssssssssssssssssssss......sssssssssssssssssss [ 25%] tests/types/test_enriched_date_pendulum.py ssssss [ 26%] tests/types/test_enriched_datetime_arrow.py sssssss [ 26%] tests/types/test_enriched_datetime_pendulum.py sssss [ 26%] tests/types/test_int_range.py ssssssssssssssssssssssssssssssssssssssssss [ 28%] sssssssssssssss [ 28%] tests/types/test_ip_address.py .. [ 28%] tests/types/test_json.py .....EEEEE [ 29%] tests/types/test_locale.py sssssss [ 29%] tests/types/test_ltree.py E.EE [ 29%] tests/types/test_numeric_range.py ssssssssssssssssss [ 30%] tests/types/test_password.py sssssssssssssssssss [ 30%] tests/types/test_phonenumber.py ......................... [ 31%] tests/types/test_scalar_list.py ..... [ 32%] tests/types/test_timezone.py ........................................... [ 33%] ........................................................................ [ 36%] ........................................................................ [ 39%] ........................................................................ [ 41%] ........................................................................ [ 44%] ........................................................................ [ 47%] ........................................................................ [ 49%] ........................................................................ [ 52%] ........................................................................ [ 55%] ........................................................................ [ 57%] ........................................................................ [ 60%] ........................................................................ [ 63%] ........................................................................ [ 65%] ........................................................................ [ 68%] ........................................................................ [ 71%] ........................................................................ [ 73%] ........................................................................ [ 76%] ........................................................................ [ 79%] ........................................................................ [ 81%] ........................................................................ [ 84%] ........................................................................ [ 87%] ........................................................................ [ 89%] ........................................................................ [ 92%] ........................................................................ [ 95%] ........................................................................ [ 97%] ................................ [ 99%] tests/types/test_tsvector.py .E.E.EE [ 99%] tests/types/test_url.py sss [ 99%] tests/types/test_uuid.py ..... [ 99%] tests/types/test_weekdays.py sssssssss [100%] ==================================== ERRORS ==================================== _ ERROR at setup of TestLazyEvaluatedSelectExpressionsForAggregates.test_assigns_aggregates_on_insert _ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ ERROR at setup of TestLazyEvaluatedSelectExpressionsForAggregates.test_assigns_aggregates_on_update _ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ ERROR at setup of TestLazyEvaluatedSelectExpressionsForAggregates.test_assigns_aggregates_on_insert[simple] _ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ ERROR at setup of TestLazyEvaluatedSelectExpressionsForAggregates.test_assigns_aggregates_on_insert[child] _ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ ERROR at setup of TestLazyEvaluatedSelectExpressionsForAggregates.test_assigns_aggregates_on_update[simple] _ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ ERROR at setup of TestLazyEvaluatedSelectExpressionsForAggregates.test_assigns_aggregates_on_update[child] _ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ ERROR at setup of TestAggregatesWithManyToManyRelationships.test_assigns_aggregates_on_insert _ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ ERROR at setup of TestAggregatesWithManyToManyRelationships.test_updates_aggregates_on_delete _ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError ______ ERROR at setup of TestAggregateManyToManyAndManyToMany.test_insert ______ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError ______ ERROR at setup of TestAggregateOneToManyAndManyToMany.test_insert _______ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ ERROR at setup of TestAggregateOneToManyAndOneToMany.test_assigns_aggregates _ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError ______ ERROR at setup of Test3LevelDeepOneToMany.test_assigns_aggregates _______ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ ERROR at setup of Test3LevelDeepOneToMany.test_only_updates_affected_aggregates _ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ ERROR at setup of TestSearchVectorAggregates.test_assigns_aggregates_on_insert _ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ ERROR at setup of TestAggregateValueGenerationWithCascadeDelete.test_something _ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError ___________ ERROR at setup of TestJSONSQL.test_compiled_scalars[1-1] ___________ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _______ ERROR at setup of TestJSONSQL.test_compiled_scalars[14.14-14.14] _______ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _____ ERROR at setup of TestJSONSQL.test_compiled_scalars[value2-result2] ______ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _____ ERROR at setup of TestJSONSQL.test_compiled_scalars[value3-result3] ______ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _____ ERROR at setup of TestJSONSQL.test_compiled_scalars[value4-result4] ______ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _____ ERROR at setup of TestJSONSQL.test_compiled_scalars[value5-result5] ______ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _____ ERROR at setup of TestJSONSQL.test_compiled_scalars[value6-result6] ______ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _____ ERROR at setup of TestJSONSQL.test_compiled_scalars[value7-result7] ______ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError __________ ERROR at setup of TestJSONBSQL.test_compiled_scalars[1-1] ___________ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError ______ ERROR at setup of TestJSONBSQL.test_compiled_scalars[14.14-14.14] _______ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _____ ERROR at setup of TestJSONBSQL.test_compiled_scalars[value2-result2] _____ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _____ ERROR at setup of TestJSONBSQL.test_compiled_scalars[value3-result3] _____ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _____ ERROR at setup of TestJSONBSQL.test_compiled_scalars[value4-result4] _____ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _____ ERROR at setup of TestJSONBSQL.test_compiled_scalars[value5-result5] _____ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _____ ERROR at setup of TestJSONBSQL.test_compiled_scalars[value6-result6] _____ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _____ ERROR at setup of TestJSONBSQL.test_compiled_scalars[value7-result7] _____ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError __________ ERROR at setup of TestObservesForColumn.test_simple_insert __________ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ ERROR at setup of TestObservesForColumnWithoutActualChanges.test_only_notifies_observer_on_actual_changes _ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ ERROR at setup of TestObservesForMultipleColumns.test_only_notifies_observer_on_actual_changes _ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ ERROR at setup of TestObservesForMultipleColumnsFiresOnlyOnce.test_only_notifies_observer_on_actual_changes _ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ ERROR at setup of TestObservesForDynamicRelationship.test_add_observed_object _ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ ERROR at setup of TestObservesForDynamicRelationship.test_add_observed_object_from_backref _ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError __ ERROR at setup of TestObservesForManyToManyToManyToMany.test_simple_insert __ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ ERROR at setup of TestObservesForManyToManyToManyToMany.test_add_leaf_object _ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ ERROR at setup of TestObservesForManyToManyToManyToMany.test_remove_leaf_object _ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ ERROR at setup of TestObservesForManyToManyToManyToMany.test_delete_intermediate_object _ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ ERROR at setup of TestObservesForManyToManyToManyToMany.test_gathered_objects_are_distinct _ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError ___ ERROR at setup of TestObservesFor3LevelDeepOneToMany.test_simple_insert ____ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError __ ERROR at setup of TestObservesFor3LevelDeepOneToMany.test_add_leaf_object ___ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ ERROR at setup of TestObservesFor3LevelDeepOneToMany.test_remove_leaf_object _ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ ERROR at setup of TestObservesFor3LevelDeepOneToMany.test_delete_intermediate_object _ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ ERROR at setup of TestObservesFor3LevelDeepOneToMany.test_gathered_objects_are_distinct _ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError ___ ERROR at setup of TestObservesForOneToManyToOneToMany.test_simple_insert ___ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError __ ERROR at setup of TestObservesForOneToManyToOneToMany.test_add_leaf_object __ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ ERROR at setup of TestObservesForOneToManyToOneToMany.test_remove_leaf_object _ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ ERROR at setup of TestObservesForOneToManyToOneToMany.test_delete_intermediate_object _ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ ERROR at setup of TestObservesForOneToManyToOneToMany.test_gathered_objects_are_distinct _ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ ERROR at setup of TestObservesForOneToManyToOneToMany.test_observable_root_obj_is_none _ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError ____ ERROR at setup of TestObservesForOneToOneToOneToOne.test_simple_insert ____ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ ERROR at setup of TestObservesForOneToOneToOneToOne.test_replace_leaf_object _ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ ERROR at setup of TestObservesForOneToOneToOneToOne.test_delete_leaf_object __ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ ERROR at setup of TestSelectCorrelatedExpression.test_returns_correct_results[categories-categories-subcategories-result0] _ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ ERROR at setup of TestSelectCorrelatedExpression.test_returns_correct_results[articles-comments-comments-result1] _ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ ERROR at setup of TestSelectCorrelatedExpression.test_returns_correct_results[users-groups-groups-result2] _ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ ERROR at setup of TestSelectCorrelatedExpression.test_returns_correct_results[users-users-all_friends-result3] _ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ ERROR at setup of TestSelectCorrelatedExpression.test_returns_correct_results[users-users-all_friends.all_friends-result4] _ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ ERROR at setup of TestSelectCorrelatedExpression.test_returns_correct_results[users-users-groups.users-result5] _ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ ERROR at setup of TestSelectCorrelatedExpression.test_returns_correct_results[groups-articles-users.authored_articles-result6] _ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ ERROR at setup of TestSelectCorrelatedExpression.test_returns_correct_results[categories-categories-subcategories.subcategories-result7] _ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ ERROR at setup of TestSelectCorrelatedExpression.test_returns_correct_results[categories-categories-subcategories.subcategories.subcategories-result8] _ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ ERROR at setup of TestSelectCorrelatedExpression.test_order_by_intermediate_table_column _ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ ERROR at setup of TestSelectCorrelatedExpression.test_with_non_aggregate_function _ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _____ ERROR at setup of TestAssertMaxLengthWithArray.test_with_max_length ______ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ ERROR at setup of TestAssertMaxLengthWithArray.test_smaller_than_max_length __ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError __ ERROR at setup of TestAssertMaxLengthWithArray.test_bigger_than_max_length __ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _______ ERROR at setup of TestAssertNonNullable.test_non_nullable_column _______ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _________ ERROR at setup of TestAssertNonNullable.test_nullable_column _________ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError __________ ERROR at setup of TestAssertNullable.test_nullable_column ___________ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError ________ ERROR at setup of TestAssertNullable.test_non_nullable_column _________ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError __________ ERROR at setup of TestAssertMaxLength.test_with_max_length __________ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _____ ERROR at setup of TestAssertMaxLength.test_with_non_nullable_column ______ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError ______ ERROR at setup of TestAssertMaxLength.test_smaller_than_max_length ______ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError ______ ERROR at setup of TestAssertMaxLength.test_bigger_than_max_length _______ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError ___________ ERROR at setup of TestAssertMinValue.test_with_min_value ___________ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _______ ERROR at setup of TestAssertMinValue.test_smaller_than_min_value _______ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _______ ERROR at setup of TestAssertMinValue.test_bigger_than_min_value ________ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError ___________ ERROR at setup of TestAssertMaxValue.test_with_min_value ___________ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _______ ERROR at setup of TestAssertMaxValue.test_smaller_than_max_value _______ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _______ ERROR at setup of TestAssertMaxValue.test_bigger_than_max_value ________ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError ____ ERROR at setup of TestMaterializedViews.test_refresh_materialized_view ____ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError __________ ERROR at setup of TestMaterializedViews.test_querying_view __________ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _____ ERROR at setup of TestPostgresTrivialView.test_life_cycle_no_cascade _____ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError ______ ERROR at setup of TestPostgresTrivialView.test_life_cycle_cascade _______ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError ______ ERROR at setup of TestMySqlTrivialView.test_life_cycle_no_cascade _______ self = , sock = None def connect(self, sock=None): self._closed = False try: if sock is None: if self.unix_socket: sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) sock.settimeout(self.connect_timeout) sock.connect(self.unix_socket) self.host_info = "Localhost via UNIX socket" self._secure = True if DEBUG: print("connected using unix_socket") else: kwargs = {} if self.bind_address is not None: kwargs["source_address"] = (self.bind_address, 0) while True: try: > sock = socket.create_connection( (self.host, self.port), self.connect_timeout, **kwargs ) /usr/lib/python3.14/site-packages/pymysql/connections.py:649: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/socket.py:870: in create_connection raise exceptions[0] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = ('localhost', 3306), timeout = 10, source_address = None def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, source_address=None, *, all_errors=False): """Connect to *address* and return the socket object. Convenience function. Connect to *address* (a 2-tuple ``(host, port)``) and return the socket object. Passing the optional *timeout* parameter will set the timeout on the socket instance before attempting to connect. If no *timeout* is supplied, the global default timeout setting returned by :func:`getdefaulttimeout` is used. If *source_address* is set it must be a tuple of (host, port) for the socket to bind as a source address before making the connection. A host of '' or port 0 tells the OS to use the default. When a connection cannot be created, raises the last error if *all_errors* is False, and an ExceptionGroup of all errors if *all_errors* is True. """ host, port = address exceptions = [] for res in getaddrinfo(host, port, 0, SOCK_STREAM): af, socktype, proto, canonname, sa = res sock = None try: sock = socket(af, socktype, proto) if timeout is not _GLOBAL_DEFAULT_TIMEOUT: sock.settimeout(timeout) if source_address: sock.bind(source_address) > sock.connect(sa) E ConnectionRefusedError: [Errno 111] Connection refused /usr/lib64/python3.14/socket.py:855: ConnectionRefusedError During handling of the above exception, another exception occurred: self = Engine(mysql+pymysql://root@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) /usr/lib/python3.14/site-packages/pymysql/connections.py:361: in __init__ self.connect() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , sock = None def connect(self, sock=None): self._closed = False try: if sock is None: if self.unix_socket: sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) sock.settimeout(self.connect_timeout) sock.connect(self.unix_socket) self.host_info = "Localhost via UNIX socket" self._secure = True if DEBUG: print("connected using unix_socket") else: kwargs = {} if self.bind_address is not None: kwargs["source_address"] = (self.bind_address, 0) while True: try: sock = socket.create_connection( (self.host, self.port), self.connect_timeout, **kwargs ) break except OSError as e: if e.errno == errno.EINTR: continue raise self.host_info = "socket %s:%d" % (self.host, self.port) if DEBUG: print("connected using socket") sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) sock.settimeout(None) self._sock = sock self._rfile = sock.makefile("rb") self._next_seq_id = 0 self._get_server_information() self._request_authentication() # Send "SET NAMES" query on init for: # - Ensure charaset (and collation) is set to the server. # - collation_id in handshake packet may be ignored. # - If collation is not specified, we don't know what is server's # default collation for the charset. For example, default collation # of utf8mb4 is: # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci # - MySQL 8.0: utf8mb4_0900_ai_ci # # Reference: # - https://github.com/PyMySQL/PyMySQL/issues/1092 # - https://github.com/wagtail/wagtail/issues/9477 # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) self.set_character_set(self.charset, self.collation) if self.sql_mode is not None: c = self.cursor() c.execute("SET sql_mode=%s", (self.sql_mode,)) c.close() if self.init_command is not None: c = self.cursor() c.execute(self.init_command) c.close() if self.autocommit_mode is not None: self.autocommit(self.autocommit_mode) except BaseException as e: self._rfile = None if sock is not None: try: sock.close() except: # noqa pass if isinstance(e, (OSError, IOError)): exc = err.OperationalError( CR.CR_CONN_HOST_ERROR, f"Can't connect to MySQL server on {self.host!r} ({e})", ) # Keep original exception and traceback to investigate error. exc.original_exception = e exc.traceback = traceback.format_exc() if DEBUG: print(exc.traceback) > raise exc E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") /usr/lib/python3.14/site-packages/pymysql/connections.py:716: OperationalError The above exception was the direct cause of the following exception: engine = Engine(mysql+pymysql://root@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) /usr/lib/python3.14/site-packages/pymysql/connections.py:361: in __init__ self.connect() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , sock = None def connect(self, sock=None): self._closed = False try: if sock is None: if self.unix_socket: sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) sock.settimeout(self.connect_timeout) sock.connect(self.unix_socket) self.host_info = "Localhost via UNIX socket" self._secure = True if DEBUG: print("connected using unix_socket") else: kwargs = {} if self.bind_address is not None: kwargs["source_address"] = (self.bind_address, 0) while True: try: sock = socket.create_connection( (self.host, self.port), self.connect_timeout, **kwargs ) break except OSError as e: if e.errno == errno.EINTR: continue raise self.host_info = "socket %s:%d" % (self.host, self.port) if DEBUG: print("connected using socket") sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) sock.settimeout(None) self._sock = sock self._rfile = sock.makefile("rb") self._next_seq_id = 0 self._get_server_information() self._request_authentication() # Send "SET NAMES" query on init for: # - Ensure charaset (and collation) is set to the server. # - collation_id in handshake packet may be ignored. # - If collation is not specified, we don't know what is server's # default collation for the charset. For example, default collation # of utf8mb4 is: # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci # - MySQL 8.0: utf8mb4_0900_ai_ci # # Reference: # - https://github.com/PyMySQL/PyMySQL/issues/1092 # - https://github.com/wagtail/wagtail/issues/9477 # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) self.set_character_set(self.charset, self.collation) if self.sql_mode is not None: c = self.cursor() c.execute("SET sql_mode=%s", (self.sql_mode,)) c.close() if self.init_command is not None: c = self.cursor() c.execute(self.init_command) c.close() if self.autocommit_mode is not None: self.autocommit(self.autocommit_mode) except BaseException as e: self._rfile = None if sock is not None: try: sock.close() except: # noqa pass if isinstance(e, (OSError, IOError)): exc = err.OperationalError( CR.CR_CONN_HOST_ERROR, f"Can't connect to MySQL server on {self.host!r} ({e})", ) # Keep original exception and traceback to investigate error. exc.original_exception = e exc.traceback = traceback.format_exc() if DEBUG: print(exc.traceback) > raise exc E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib/python3.14/site-packages/pymysql/connections.py:716: OperationalError ________ ERROR at setup of TestMySqlTrivialView.test_life_cycle_cascade ________ self = , sock = None def connect(self, sock=None): self._closed = False try: if sock is None: if self.unix_socket: sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) sock.settimeout(self.connect_timeout) sock.connect(self.unix_socket) self.host_info = "Localhost via UNIX socket" self._secure = True if DEBUG: print("connected using unix_socket") else: kwargs = {} if self.bind_address is not None: kwargs["source_address"] = (self.bind_address, 0) while True: try: > sock = socket.create_connection( (self.host, self.port), self.connect_timeout, **kwargs ) /usr/lib/python3.14/site-packages/pymysql/connections.py:649: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/socket.py:870: in create_connection raise exceptions[0] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = ('localhost', 3306), timeout = 10, source_address = None def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, source_address=None, *, all_errors=False): """Connect to *address* and return the socket object. Convenience function. Connect to *address* (a 2-tuple ``(host, port)``) and return the socket object. Passing the optional *timeout* parameter will set the timeout on the socket instance before attempting to connect. If no *timeout* is supplied, the global default timeout setting returned by :func:`getdefaulttimeout` is used. If *source_address* is set it must be a tuple of (host, port) for the socket to bind as a source address before making the connection. A host of '' or port 0 tells the OS to use the default. When a connection cannot be created, raises the last error if *all_errors* is False, and an ExceptionGroup of all errors if *all_errors* is True. """ host, port = address exceptions = [] for res in getaddrinfo(host, port, 0, SOCK_STREAM): af, socktype, proto, canonname, sa = res sock = None try: sock = socket(af, socktype, proto) if timeout is not _GLOBAL_DEFAULT_TIMEOUT: sock.settimeout(timeout) if source_address: sock.bind(source_address) > sock.connect(sa) E ConnectionRefusedError: [Errno 111] Connection refused /usr/lib64/python3.14/socket.py:855: ConnectionRefusedError During handling of the above exception, another exception occurred: self = Engine(mysql+pymysql://root@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) /usr/lib/python3.14/site-packages/pymysql/connections.py:361: in __init__ self.connect() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , sock = None def connect(self, sock=None): self._closed = False try: if sock is None: if self.unix_socket: sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) sock.settimeout(self.connect_timeout) sock.connect(self.unix_socket) self.host_info = "Localhost via UNIX socket" self._secure = True if DEBUG: print("connected using unix_socket") else: kwargs = {} if self.bind_address is not None: kwargs["source_address"] = (self.bind_address, 0) while True: try: sock = socket.create_connection( (self.host, self.port), self.connect_timeout, **kwargs ) break except OSError as e: if e.errno == errno.EINTR: continue raise self.host_info = "socket %s:%d" % (self.host, self.port) if DEBUG: print("connected using socket") sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) sock.settimeout(None) self._sock = sock self._rfile = sock.makefile("rb") self._next_seq_id = 0 self._get_server_information() self._request_authentication() # Send "SET NAMES" query on init for: # - Ensure charaset (and collation) is set to the server. # - collation_id in handshake packet may be ignored. # - If collation is not specified, we don't know what is server's # default collation for the charset. For example, default collation # of utf8mb4 is: # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci # - MySQL 8.0: utf8mb4_0900_ai_ci # # Reference: # - https://github.com/PyMySQL/PyMySQL/issues/1092 # - https://github.com/wagtail/wagtail/issues/9477 # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) self.set_character_set(self.charset, self.collation) if self.sql_mode is not None: c = self.cursor() c.execute("SET sql_mode=%s", (self.sql_mode,)) c.close() if self.init_command is not None: c = self.cursor() c.execute(self.init_command) c.close() if self.autocommit_mode is not None: self.autocommit(self.autocommit_mode) except BaseException as e: self._rfile = None if sock is not None: try: sock.close() except: # noqa pass if isinstance(e, (OSError, IOError)): exc = err.OperationalError( CR.CR_CONN_HOST_ERROR, f"Can't connect to MySQL server on {self.host!r} ({e})", ) # Keep original exception and traceback to investigate error. exc.original_exception = e exc.traceback = traceback.format_exc() if DEBUG: print(exc.traceback) > raise exc E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") /usr/lib/python3.14/site-packages/pymysql/connections.py:716: OperationalError The above exception was the direct cause of the following exception: engine = Engine(mysql+pymysql://root@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) /usr/lib/python3.14/site-packages/pymysql/connections.py:361: in __init__ self.connect() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , sock = None def connect(self, sock=None): self._closed = False try: if sock is None: if self.unix_socket: sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) sock.settimeout(self.connect_timeout) sock.connect(self.unix_socket) self.host_info = "Localhost via UNIX socket" self._secure = True if DEBUG: print("connected using unix_socket") else: kwargs = {} if self.bind_address is not None: kwargs["source_address"] = (self.bind_address, 0) while True: try: sock = socket.create_connection( (self.host, self.port), self.connect_timeout, **kwargs ) break except OSError as e: if e.errno == errno.EINTR: continue raise self.host_info = "socket %s:%d" % (self.host, self.port) if DEBUG: print("connected using socket") sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) sock.settimeout(None) self._sock = sock self._rfile = sock.makefile("rb") self._next_seq_id = 0 self._get_server_information() self._request_authentication() # Send "SET NAMES" query on init for: # - Ensure charaset (and collation) is set to the server. # - collation_id in handshake packet may be ignored. # - If collation is not specified, we don't know what is server's # default collation for the charset. For example, default collation # of utf8mb4 is: # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci # - MySQL 8.0: utf8mb4_0900_ai_ci # # Reference: # - https://github.com/PyMySQL/PyMySQL/issues/1092 # - https://github.com/wagtail/wagtail/issues/9477 # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) self.set_character_set(self.charset, self.collation) if self.sql_mode is not None: c = self.cursor() c.execute("SET sql_mode=%s", (self.sql_mode,)) c.close() if self.init_command is not None: c = self.cursor() c.execute(self.init_command) c.close() if self.autocommit_mode is not None: self.autocommit(self.autocommit_mode) except BaseException as e: self._rfile = None if sock is not None: try: sock.close() except: # noqa pass if isinstance(e, (OSError, IOError)): exc = err.OperationalError( CR.CR_CONN_HOST_ERROR, f"Can't connect to MySQL server on {self.host!r} ({e})", ) # Keep original exception and traceback to investigate error. exc.original_exception = e exc.traceback = traceback.format_exc() if DEBUG: print(exc.traceback) > raise exc E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib/python3.14/site-packages/pymysql/connections.py:716: OperationalError _ ERROR at setup of TestCompositeTypeWithRegularTypes.test_parameter_processing _ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError ___ ERROR at setup of TestCompositeTypeWithRegularTypes.test_non_ascii_chars ___ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _____ ERROR at setup of TestCompositeTypeWithRegularTypes.test_dict_input ______ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError ___ ERROR at setup of TestCompositeTypeWithRegularTypes.test_incomplete_dict ___ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ ERROR at setup of TestCompositeTypeWhenTypeAlreadyExistsInDatabase.test_parameter_processing _ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError __ ERROR at setup of TestCompositeTypeWithMixedCase.test_parameter_processing __ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _______________ ERROR at setup of TestPostgresJSONType.test_list _______________ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _______ ERROR at setup of TestPostgresJSONType.test_parameter_processing _______ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _________ ERROR at setup of TestPostgresJSONType.test_non_ascii_chars __________ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError ___________ ERROR at setup of TestPostgresJSONType.test_compilation ____________ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _________ ERROR at setup of TestPostgresJSONType.test_unhashable_type __________ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _________________ ERROR at setup of TestLTREE.test_saves_path __________________ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError ________________ ERROR at setup of TestLTREE.test_literal_param ________________ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _________________ ERROR at setup of TestLTREE.test_compilation _________________ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _____________ ERROR at setup of TestTSVector.test_type_reflection ______________ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _________ ERROR at setup of TestTSVector.test_catalog_passed_to_match __________ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError ___________ ERROR at setup of TestTSVector.test_match_concatenation ____________ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError ____________ ERROR at setup of TestTSVector.test_match_with_catalog ____________ self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test) @pytest.fixture def connection(engine): > return engine.connect() conftest.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test' connection_factory = None, cursor_factory = None kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError =================================== FAILURES =================================== ____________________ TestDatabaseMySQL.test_create_and_drop ____________________ self = , sock = None def connect(self, sock=None): self._closed = False try: if sock is None: if self.unix_socket: sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) sock.settimeout(self.connect_timeout) sock.connect(self.unix_socket) self.host_info = "Localhost via UNIX socket" self._secure = True if DEBUG: print("connected using unix_socket") else: kwargs = {} if self.bind_address is not None: kwargs["source_address"] = (self.bind_address, 0) while True: try: > sock = socket.create_connection( (self.host, self.port), self.connect_timeout, **kwargs ) /usr/lib/python3.14/site-packages/pymysql/connections.py:649: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/socket.py:870: in create_connection raise exceptions[0] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = ('localhost', 3306), timeout = 10, source_address = None def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, source_address=None, *, all_errors=False): """Connect to *address* and return the socket object. Convenience function. Connect to *address* (a 2-tuple ``(host, port)``) and return the socket object. Passing the optional *timeout* parameter will set the timeout on the socket instance before attempting to connect. If no *timeout* is supplied, the global default timeout setting returned by :func:`getdefaulttimeout` is used. If *source_address* is set it must be a tuple of (host, port) for the socket to bind as a source address before making the connection. A host of '' or port 0 tells the OS to use the default. When a connection cannot be created, raises the last error if *all_errors* is False, and an ExceptionGroup of all errors if *all_errors* is True. """ host, port = address exceptions = [] for res in getaddrinfo(host, port, 0, SOCK_STREAM): af, socktype, proto, canonname, sa = res sock = None try: sock = socket(af, socktype, proto) if timeout is not _GLOBAL_DEFAULT_TIMEOUT: sock.settimeout(timeout) if source_address: sock.bind(source_address) > sock.connect(sa) E ConnectionRefusedError: [Errno 111] Connection refused /usr/lib64/python3.14/socket.py:855: ConnectionRefusedError During handling of the above exception, another exception occurred: self = Engine(mysql+pymysql://root@localhost) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) /usr/lib/python3.14/site-packages/pymysql/connections.py:361: in __init__ self.connect() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , sock = None def connect(self, sock=None): self._closed = False try: if sock is None: if self.unix_socket: sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) sock.settimeout(self.connect_timeout) sock.connect(self.unix_socket) self.host_info = "Localhost via UNIX socket" self._secure = True if DEBUG: print("connected using unix_socket") else: kwargs = {} if self.bind_address is not None: kwargs["source_address"] = (self.bind_address, 0) while True: try: sock = socket.create_connection( (self.host, self.port), self.connect_timeout, **kwargs ) break except OSError as e: if e.errno == errno.EINTR: continue raise self.host_info = "socket %s:%d" % (self.host, self.port) if DEBUG: print("connected using socket") sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) sock.settimeout(None) self._sock = sock self._rfile = sock.makefile("rb") self._next_seq_id = 0 self._get_server_information() self._request_authentication() # Send "SET NAMES" query on init for: # - Ensure charaset (and collation) is set to the server. # - collation_id in handshake packet may be ignored. # - If collation is not specified, we don't know what is server's # default collation for the charset. For example, default collation # of utf8mb4 is: # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci # - MySQL 8.0: utf8mb4_0900_ai_ci # # Reference: # - https://github.com/PyMySQL/PyMySQL/issues/1092 # - https://github.com/wagtail/wagtail/issues/9477 # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) self.set_character_set(self.charset, self.collation) if self.sql_mode is not None: c = self.cursor() c.execute("SET sql_mode=%s", (self.sql_mode,)) c.close() if self.init_command is not None: c = self.cursor() c.execute(self.init_command) c.close() if self.autocommit_mode is not None: self.autocommit(self.autocommit_mode) except BaseException as e: self._rfile = None if sock is not None: try: sock.close() except: # noqa pass if isinstance(e, (OSError, IOError)): exc = err.OperationalError( CR.CR_CONN_HOST_ERROR, f"Can't connect to MySQL server on {self.host!r} ({e})", ) # Keep original exception and traceback to investigate error. exc.original_exception = e exc.traceback = traceback.format_exc() if DEBUG: print(exc.traceback) > raise exc E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") /usr/lib/python3.14/site-packages/pymysql/connections.py:716: OperationalError The above exception was the direct cause of the following exception: self = dsn = 'mysql+pymysql://root@localhost/db_test_sqlalchemy_util' def test_create_and_drop(self, dsn): > assert not database_exists(dsn) tests/functions/test_database.py:18: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ sqlalchemy_utils/functions/database.py:498: in database_exists return bool(_get_scalar_result(engine, sa.text(text))) sqlalchemy_utils/functions/database.py:442: in _get_scalar_result with engine.connect() as conn: /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) /usr/lib/python3.14/site-packages/pymysql/connections.py:361: in __init__ self.connect() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , sock = None def connect(self, sock=None): self._closed = False try: if sock is None: if self.unix_socket: sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) sock.settimeout(self.connect_timeout) sock.connect(self.unix_socket) self.host_info = "Localhost via UNIX socket" self._secure = True if DEBUG: print("connected using unix_socket") else: kwargs = {} if self.bind_address is not None: kwargs["source_address"] = (self.bind_address, 0) while True: try: sock = socket.create_connection( (self.host, self.port), self.connect_timeout, **kwargs ) break except OSError as e: if e.errno == errno.EINTR: continue raise self.host_info = "socket %s:%d" % (self.host, self.port) if DEBUG: print("connected using socket") sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) sock.settimeout(None) self._sock = sock self._rfile = sock.makefile("rb") self._next_seq_id = 0 self._get_server_information() self._request_authentication() # Send "SET NAMES" query on init for: # - Ensure charaset (and collation) is set to the server. # - collation_id in handshake packet may be ignored. # - If collation is not specified, we don't know what is server's # default collation for the charset. For example, default collation # of utf8mb4 is: # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci # - MySQL 8.0: utf8mb4_0900_ai_ci # # Reference: # - https://github.com/PyMySQL/PyMySQL/issues/1092 # - https://github.com/wagtail/wagtail/issues/9477 # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) self.set_character_set(self.charset, self.collation) if self.sql_mode is not None: c = self.cursor() c.execute("SET sql_mode=%s", (self.sql_mode,)) c.close() if self.init_command is not None: c = self.cursor() c.execute(self.init_command) c.close() if self.autocommit_mode is not None: self.autocommit(self.autocommit_mode) except BaseException as e: self._rfile = None if sock is not None: try: sock.close() except: # noqa pass if isinstance(e, (OSError, IOError)): exc = err.OperationalError( CR.CR_CONN_HOST_ERROR, f"Can't connect to MySQL server on {self.host!r} ({e})", ) # Keep original exception and traceback to investigate error. exc.original_exception = e exc.traceback = traceback.format_exc() if DEBUG: print(exc.traceback) > raise exc E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib/python3.14/site-packages/pymysql/connections.py:716: OperationalError _____________ TestDatabaseMySQLWithQuotedName.test_create_and_drop _____________ self = , sock = None def connect(self, sock=None): self._closed = False try: if sock is None: if self.unix_socket: sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) sock.settimeout(self.connect_timeout) sock.connect(self.unix_socket) self.host_info = "Localhost via UNIX socket" self._secure = True if DEBUG: print("connected using unix_socket") else: kwargs = {} if self.bind_address is not None: kwargs["source_address"] = (self.bind_address, 0) while True: try: > sock = socket.create_connection( (self.host, self.port), self.connect_timeout, **kwargs ) /usr/lib/python3.14/site-packages/pymysql/connections.py:649: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/socket.py:870: in create_connection raise exceptions[0] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = ('localhost', 3306), timeout = 10, source_address = None def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, source_address=None, *, all_errors=False): """Connect to *address* and return the socket object. Convenience function. Connect to *address* (a 2-tuple ``(host, port)``) and return the socket object. Passing the optional *timeout* parameter will set the timeout on the socket instance before attempting to connect. If no *timeout* is supplied, the global default timeout setting returned by :func:`getdefaulttimeout` is used. If *source_address* is set it must be a tuple of (host, port) for the socket to bind as a source address before making the connection. A host of '' or port 0 tells the OS to use the default. When a connection cannot be created, raises the last error if *all_errors* is False, and an ExceptionGroup of all errors if *all_errors* is True. """ host, port = address exceptions = [] for res in getaddrinfo(host, port, 0, SOCK_STREAM): af, socktype, proto, canonname, sa = res sock = None try: sock = socket(af, socktype, proto) if timeout is not _GLOBAL_DEFAULT_TIMEOUT: sock.settimeout(timeout) if source_address: sock.bind(source_address) > sock.connect(sa) E ConnectionRefusedError: [Errno 111] Connection refused /usr/lib64/python3.14/socket.py:855: ConnectionRefusedError During handling of the above exception, another exception occurred: self = Engine(mysql+pymysql://root@localhost) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) /usr/lib/python3.14/site-packages/pymysql/connections.py:361: in __init__ self.connect() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , sock = None def connect(self, sock=None): self._closed = False try: if sock is None: if self.unix_socket: sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) sock.settimeout(self.connect_timeout) sock.connect(self.unix_socket) self.host_info = "Localhost via UNIX socket" self._secure = True if DEBUG: print("connected using unix_socket") else: kwargs = {} if self.bind_address is not None: kwargs["source_address"] = (self.bind_address, 0) while True: try: sock = socket.create_connection( (self.host, self.port), self.connect_timeout, **kwargs ) break except OSError as e: if e.errno == errno.EINTR: continue raise self.host_info = "socket %s:%d" % (self.host, self.port) if DEBUG: print("connected using socket") sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) sock.settimeout(None) self._sock = sock self._rfile = sock.makefile("rb") self._next_seq_id = 0 self._get_server_information() self._request_authentication() # Send "SET NAMES" query on init for: # - Ensure charaset (and collation) is set to the server. # - collation_id in handshake packet may be ignored. # - If collation is not specified, we don't know what is server's # default collation for the charset. For example, default collation # of utf8mb4 is: # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci # - MySQL 8.0: utf8mb4_0900_ai_ci # # Reference: # - https://github.com/PyMySQL/PyMySQL/issues/1092 # - https://github.com/wagtail/wagtail/issues/9477 # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) self.set_character_set(self.charset, self.collation) if self.sql_mode is not None: c = self.cursor() c.execute("SET sql_mode=%s", (self.sql_mode,)) c.close() if self.init_command is not None: c = self.cursor() c.execute(self.init_command) c.close() if self.autocommit_mode is not None: self.autocommit(self.autocommit_mode) except BaseException as e: self._rfile = None if sock is not None: try: sock.close() except: # noqa pass if isinstance(e, (OSError, IOError)): exc = err.OperationalError( CR.CR_CONN_HOST_ERROR, f"Can't connect to MySQL server on {self.host!r} ({e})", ) # Keep original exception and traceback to investigate error. exc.original_exception = e exc.traceback = traceback.format_exc() if DEBUG: print(exc.traceback) > raise exc E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") /usr/lib/python3.14/site-packages/pymysql/connections.py:716: OperationalError The above exception was the direct cause of the following exception: self = dsn = 'mysql+pymysql://root@localhost/db_test_sqlalchemy-util' def test_create_and_drop(self, dsn): > assert not database_exists(dsn) tests/functions/test_database.py:18: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ sqlalchemy_utils/functions/database.py:498: in database_exists return bool(_get_scalar_result(engine, sa.text(text))) sqlalchemy_utils/functions/database.py:442: in _get_scalar_result with engine.connect() as conn: /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) /usr/lib/python3.14/site-packages/pymysql/connections.py:361: in __init__ self.connect() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , sock = None def connect(self, sock=None): self._closed = False try: if sock is None: if self.unix_socket: sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) sock.settimeout(self.connect_timeout) sock.connect(self.unix_socket) self.host_info = "Localhost via UNIX socket" self._secure = True if DEBUG: print("connected using unix_socket") else: kwargs = {} if self.bind_address is not None: kwargs["source_address"] = (self.bind_address, 0) while True: try: sock = socket.create_connection( (self.host, self.port), self.connect_timeout, **kwargs ) break except OSError as e: if e.errno == errno.EINTR: continue raise self.host_info = "socket %s:%d" % (self.host, self.port) if DEBUG: print("connected using socket") sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) sock.settimeout(None) self._sock = sock self._rfile = sock.makefile("rb") self._next_seq_id = 0 self._get_server_information() self._request_authentication() # Send "SET NAMES" query on init for: # - Ensure charaset (and collation) is set to the server. # - collation_id in handshake packet may be ignored. # - If collation is not specified, we don't know what is server's # default collation for the charset. For example, default collation # of utf8mb4 is: # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci # - MySQL 8.0: utf8mb4_0900_ai_ci # # Reference: # - https://github.com/PyMySQL/PyMySQL/issues/1092 # - https://github.com/wagtail/wagtail/issues/9477 # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) self.set_character_set(self.charset, self.collation) if self.sql_mode is not None: c = self.cursor() c.execute("SET sql_mode=%s", (self.sql_mode,)) c.close() if self.init_command is not None: c = self.cursor() c.execute(self.init_command) c.close() if self.autocommit_mode is not None: self.autocommit(self.autocommit_mode) except BaseException as e: self._rfile = None if sock is not None: try: sock.close() except: # noqa pass if isinstance(e, (OSError, IOError)): exc = err.OperationalError( CR.CR_CONN_HOST_ERROR, f"Can't connect to MySQL server on {self.host!r} ({e})", ) # Keep original exception and traceback to investigate error. exc.original_exception = e exc.traceback = traceback.format_exc() if DEBUG: print(exc.traceback) > raise exc E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib/python3.14/site-packages/pymysql/connections.py:716: OperationalError __________________ TestDatabasePostgres.test_create_and_drop ___________________ self = Engine(postgresql://postgres:***@localhost/postgres) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=postgres', connection_factory = None cursor_factory = None kwargs = {'database': 'postgres', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: self = dsn = 'postgresql://postgres:@localhost/db_test_sqlalchemy_util' def test_create_and_drop(self, dsn): assert not database_exists(dsn) > create_database(dsn) tests/functions/test_database.py:19: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ sqlalchemy_utils/functions/database.py:568: in create_database with engine.begin() as conn: /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3153: in begin conn = self.connect(close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=postgres', connection_factory = None cursor_factory = None kwargs = {'database': 'postgres', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError ______________________ TestDatabasePostgres.test_template ______________________ self = Engine(postgresql://postgres:***@localhost/postgres) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=postgres', connection_factory = None cursor_factory = None kwargs = {'database': 'postgres', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: self = postgresql_db_user = 'postgres', postgresql_db_password = '' def test_template(self, postgresql_db_user, postgresql_db_password): dsn = 'postgresql://{}:{}@localhost/db_test_sqlalchemy_util'.format( postgresql_db_user, postgresql_db_password ) with pytest.raises(sa.exc.ProgrammingError) as excinfo: > create_database(dsn, template='my_template') tests/functions/test_database.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ sqlalchemy_utils/functions/database.py:568: in create_database with engine.begin() as conn: /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3153: in begin conn = self.connect(close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=postgres', connection_factory = None cursor_factory = None kwargs = {'database': 'postgres', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _______________ TestDatabasePostgresPg8000.test_create_and_drop ________________ unix_sock = None, orig_sock = None, host = 'localhost', port = 5432 timeout = None, source_address = None, tcp_keepalive = True orig_ssl_context = None def _make_socket( unix_sock, orig_sock, host, port, timeout, source_address, tcp_keepalive, orig_ssl_context, ): if unix_sock is not None: if orig_sock is not None: raise InterfaceError("If unix_sock is provided, sock must be None") try: if not hasattr(socket, "AF_UNIX"): raise InterfaceError( "attempt to connect to unix socket on unsupported platform" ) sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) sock.settimeout(timeout) sock.connect(unix_sock) if tcp_keepalive: sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) except socket.error as e: if sock is not None: sock.close() raise InterfaceError("communication error") from e elif orig_sock is not None: sock = orig_sock elif host is not None: try: > sock = socket.create_connection((host, port), timeout, source_address) /usr/lib/python3.14/site-packages/pg8000/core.py:204: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/socket.py:870: in create_connection raise exceptions[0] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = ('localhost', 5432), timeout = None, source_address = None def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, source_address=None, *, all_errors=False): """Connect to *address* and return the socket object. Convenience function. Connect to *address* (a 2-tuple ``(host, port)``) and return the socket object. Passing the optional *timeout* parameter will set the timeout on the socket instance before attempting to connect. If no *timeout* is supplied, the global default timeout setting returned by :func:`getdefaulttimeout` is used. If *source_address* is set it must be a tuple of (host, port) for the socket to bind as a source address before making the connection. A host of '' or port 0 tells the OS to use the default. When a connection cannot be created, raises the last error if *all_errors* is False, and an ExceptionGroup of all errors if *all_errors* is True. """ host, port = address exceptions = [] for res in getaddrinfo(host, port, 0, SOCK_STREAM): af, socktype, proto, canonname, sa = res sock = None try: sock = socket(af, socktype, proto) if timeout is not _GLOBAL_DEFAULT_TIMEOUT: sock.settimeout(timeout) if source_address: sock.bind(source_address) > sock.connect(sa) E ConnectionRefusedError: [Errno 111] Connection refused /usr/lib64/python3.14/socket.py:855: ConnectionRefusedError The above exception was the direct cause of the following exception: self = Engine(postgresql+pg8000://postgres:***@localhost/db_to_test_create_and_drop_via_pg8000_driver) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) /usr/lib/python3.14/site-packages/pg8000/__init__.py:112: in connect return Connection( /usr/lib/python3.14/site-packages/pg8000/legacy.py:445: in __init__ super().__init__(*args, **kwargs) /usr/lib/python3.14/site-packages/pg8000/core.py:328: in __init__ self.channel_binding, self._usock = _make_socket( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ unix_sock = None, orig_sock = None, host = 'localhost', port = 5432 timeout = None, source_address = None, tcp_keepalive = True orig_ssl_context = None def _make_socket( unix_sock, orig_sock, host, port, timeout, source_address, tcp_keepalive, orig_ssl_context, ): if unix_sock is not None: if orig_sock is not None: raise InterfaceError("If unix_sock is provided, sock must be None") try: if not hasattr(socket, "AF_UNIX"): raise InterfaceError( "attempt to connect to unix socket on unsupported platform" ) sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) sock.settimeout(timeout) sock.connect(unix_sock) if tcp_keepalive: sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) except socket.error as e: if sock is not None: sock.close() raise InterfaceError("communication error") from e elif orig_sock is not None: sock = orig_sock elif host is not None: try: sock = socket.create_connection((host, port), timeout, source_address) except socket.error as e: > raise InterfaceError( f"Can't create a connection to host {host} and port {port} " f"(timeout is {timeout} and source_address is {source_address})." ) from e E pg8000.exceptions.InterfaceError: Can't create a connection to host localhost and port 5432 (timeout is None and source_address is None). /usr/lib/python3.14/site-packages/pg8000/core.py:206: InterfaceError The above exception was the direct cause of the following exception: self = dsn = 'postgresql+pg8000://postgres:@localhost/db_to_test_create_and_drop_via_pg8000_driver' def test_create_and_drop(self, dsn): > assert not database_exists(dsn) tests/functions/test_database.py:18: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ sqlalchemy_utils/functions/database.py:488: in database_exists return bool(_get_scalar_result(engine, sa.text(text))) sqlalchemy_utils/functions/database.py:442: in _get_scalar_result with engine.connect() as conn: /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) /usr/lib/python3.14/site-packages/pg8000/__init__.py:112: in connect return Connection( /usr/lib/python3.14/site-packages/pg8000/legacy.py:445: in __init__ super().__init__(*args, **kwargs) /usr/lib/python3.14/site-packages/pg8000/core.py:328: in __init__ self.channel_binding, self._usock = _make_socket( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ unix_sock = None, orig_sock = None, host = 'localhost', port = 5432 timeout = None, source_address = None, tcp_keepalive = True orig_ssl_context = None def _make_socket( unix_sock, orig_sock, host, port, timeout, source_address, tcp_keepalive, orig_ssl_context, ): if unix_sock is not None: if orig_sock is not None: raise InterfaceError("If unix_sock is provided, sock must be None") try: if not hasattr(socket, "AF_UNIX"): raise InterfaceError( "attempt to connect to unix socket on unsupported platform" ) sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) sock.settimeout(timeout) sock.connect(unix_sock) if tcp_keepalive: sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) except socket.error as e: if sock is not None: sock.close() raise InterfaceError("communication error") from e elif orig_sock is not None: sock = orig_sock elif host is not None: try: sock = socket.create_connection((host, port), timeout, source_address) except socket.error as e: > raise InterfaceError( f"Can't create a connection to host {host} and port {port} " f"(timeout is {timeout} and source_address is {source_address})." ) from e E sqlalchemy.exc.InterfaceError: (pg8000.exceptions.InterfaceError) Can't create a connection to host localhost and port 5432 (timeout is None and source_address is None). E (Background on this error at: https://sqlalche.me/e/14/rvf5) /usr/lib/python3.14/site-packages/pg8000/core.py:206: InterfaceError ___________ TestDatabasePostgresWithQuotedName.test_create_and_drop ____________ self = Engine(postgresql://postgres:***@localhost/postgres) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=postgres', connection_factory = None cursor_factory = None kwargs = {'database': 'postgres', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: self = dsn = 'postgresql://postgres:@localhost/db_test_sqlalchemy-util' def test_create_and_drop(self, dsn): assert not database_exists(dsn) > create_database(dsn) tests/functions/test_database.py:19: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ sqlalchemy_utils/functions/database.py:568: in create_database with engine.begin() as conn: /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3153: in begin conn = self.connect(close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=postgres', connection_factory = None cursor_factory = None kwargs = {'database': 'postgres', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _______________ TestDatabasePostgresWithQuotedName.test_template _______________ self = Engine(postgresql://postgres:***@localhost/postgres) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=postgres', connection_factory = None cursor_factory = None kwargs = {'database': 'postgres', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: self = postgresql_db_user = 'postgres', postgresql_db_password = '' def test_template(self, postgresql_db_user, postgresql_db_password): dsn = 'postgresql://{}:{}@localhost/db_test_sqlalchemy-util'.format( postgresql_db_user, postgresql_db_password ) with pytest.raises(sa.exc.ProgrammingError) as excinfo: > create_database(dsn, template='my-template') tests/functions/test_database.py:130: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ sqlalchemy_utils/functions/database.py:568: in create_database with engine.begin() as conn: /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3153: in begin conn = self.connect(close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=postgres', connection_factory = None cursor_factory = None kwargs = {'database': 'postgres', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError _ TestDatabasePostgresCreateDatabaseCloseConnection.test_create_database_twice _ self = Engine(postgresql://postgres:***@localhost/postgres) fn = > connection = None def _wrap_pool_connect(self, fn, connection): dialect = self.dialect try: > return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=postgres', connection_factory = None cursor_factory = None kwargs = {'database': 'postgres', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError The above exception was the direct cause of the following exception: self = postgresql_db_user = 'postgres', postgresql_db_password = '' def test_create_database_twice( self, postgresql_db_user, postgresql_db_password ): dsn_list = [ 'postgresql://{}:{}@localhost/db_test_sqlalchemy-util-a'.format( postgresql_db_user, postgresql_db_password ), 'postgresql://{}:{}@localhost/db_test_sqlalchemy-util-b'.format( postgresql_db_user, postgresql_db_password ), ] for dsn_item in dsn_list: assert not database_exists(dsn_item) > create_database(dsn_item, template="template1") tests/functions/test_database.py:153: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ sqlalchemy_utils/functions/database.py:568: in create_database with engine.begin() as conn: /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3153: in begin conn = self.connect(close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3325: in connect return self._connection_cls(self, close_with_result=close_with_result) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:96: in __init__ else engine.raw_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection util.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect return fn() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:327: in connect return _ConnectionFairy._checkout(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:894: in _checkout fairy = _ConnectionRecord.checkout(pool) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:493: in checkout rec = pool._do_get() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:145: in _do_get with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/impl.py:143: in _do_get return self._create_connection() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:273: in _create_connection return _ConnectionRecord(self) /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:388: in __init__ self.__connect() /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:690: in __connect with util.safe_reraise(): /usr/lib64/python3.14/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__ compat.raise_( /usr/lib64/python3.14/site-packages/sqlalchemy/util/compat.py:213: in raise_ raise exception /usr/lib64/python3.14/site-packages/sqlalchemy/pool/base.py:686: in __connect self.dbapi_connection = connection = pool._invoke_creator(self) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/create.py:574: in connect return dialect.connect(*cargs, **cparams) /usr/lib64/python3.14/site-packages/sqlalchemy/engine/default.py:598: in connect return self.dbapi.connect(*cargs, **cparams) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'host=localhost user=postgres dbname=postgres', connection_factory = None cursor_factory = None kwargs = {'database': 'postgres', 'host': 'localhost', 'user': 'postgres'} kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused E Is the server running on that host and accepting TCP/IP connections? E E (Background on this error at: https://sqlalche.me/e/14/e3q8) /usr/lib64/python3.14/site-packages/psycopg2/__init__.py:122: OperationalError =============================== warnings summary =============================== tests/test_models.py::TestTimestamp::test_created /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/tests/test_models.py:20: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). then = datetime.utcnow() tests/test_models.py::TestTimestamp::test_created tests/test_models.py::TestTimestamp::test_created tests/test_models.py::TestTimestamp::test_updated tests/test_models.py::TestTimestamp::test_updated /usr/lib64/python3.14/site-packages/sqlalchemy/sql/schema.py:2783: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). return util.wrap_callable(lambda ctx: fn(), fn) tests/test_models.py::TestTimestamp::test_created /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/tests/test_models.py:26: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). assert article.created >= then and article.created <= datetime.utcnow() tests/test_models.py::TestTimestamp::test_updated /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/tests/test_models.py:34: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). then = datetime.utcnow() tests/test_models.py::TestTimestamp::test_updated /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/sqlalchemy_utils/models.py:33: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). target.updated = datetime.utcnow() tests/test_models.py::TestTimestamp::test_updated /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/tests/test_models.py:39: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). assert article.updated >= then and article.updated <= datetime.utcnow() -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/functions/test_database.py::TestDatabaseMySQL::test_create_and_drop FAILED tests/functions/test_database.py::TestDatabaseMySQLWithQuotedName::test_create_and_drop FAILED tests/functions/test_database.py::TestDatabasePostgres::test_create_and_drop FAILED tests/functions/test_database.py::TestDatabasePostgres::test_template FAILED tests/functions/test_database.py::TestDatabasePostgresPg8000::test_create_and_drop FAILED tests/functions/test_database.py::TestDatabasePostgresWithQuotedName::test_create_and_drop FAILED tests/functions/test_database.py::TestDatabasePostgresWithQuotedName::test_template FAILED tests/functions/test_database.py::TestDatabasePostgresCreateDatabaseCloseConnection::test_create_database_twice ERROR tests/aggregate/test_custom_select_expressions.py::TestLazyEvaluatedSelectExpressionsForAggregates::test_assigns_aggregates_on_insert ERROR tests/aggregate/test_custom_select_expressions.py::TestLazyEvaluatedSelectExpressionsForAggregates::test_assigns_aggregates_on_update ERROR tests/aggregate/test_join_table_inheritance.py::TestLazyEvaluatedSelectExpressionsForAggregates::test_assigns_aggregates_on_insert[simple] ERROR tests/aggregate/test_join_table_inheritance.py::TestLazyEvaluatedSelectExpressionsForAggregates::test_assigns_aggregates_on_insert[child] ERROR tests/aggregate/test_join_table_inheritance.py::TestLazyEvaluatedSelectExpressionsForAggregates::test_assigns_aggregates_on_update[simple] ERROR tests/aggregate/test_join_table_inheritance.py::TestLazyEvaluatedSelectExpressionsForAggregates::test_assigns_aggregates_on_update[child] ERROR tests/aggregate/test_m2m.py::TestAggregatesWithManyToManyRelationships::test_assigns_aggregates_on_insert ERROR tests/aggregate/test_m2m.py::TestAggregatesWithManyToManyRelationships::test_updates_aggregates_on_delete ERROR tests/aggregate/test_m2m_m2m.py::TestAggregateManyToManyAndManyToMany::test_insert ERROR tests/aggregate/test_o2m_m2m.py::TestAggregateOneToManyAndManyToMany::test_insert ERROR tests/aggregate/test_o2m_o2m.py::TestAggregateOneToManyAndOneToMany::test_assigns_aggregates ERROR tests/aggregate/test_o2m_o2m_o2m.py::Test3LevelDeepOneToMany::test_assigns_aggregates ERROR tests/aggregate/test_o2m_o2m_o2m.py::Test3LevelDeepOneToMany::test_only_updates_affected_aggregates ERROR tests/aggregate/test_search_vectors.py::TestSearchVectorAggregates::test_assigns_aggregates_on_insert ERROR tests/aggregate/test_with_ondelete_cascade.py::TestAggregateValueGenerationWithCascadeDelete::test_something ERROR tests/functions/test_json_sql.py::TestJSONSQL::test_compiled_scalars[1-1] ERROR tests/functions/test_json_sql.py::TestJSONSQL::test_compiled_scalars[14.14-14.14] ERROR tests/functions/test_json_sql.py::TestJSONSQL::test_compiled_scalars[value2-result2] ERROR tests/functions/test_json_sql.py::TestJSONSQL::test_compiled_scalars[value3-result3] ERROR tests/functions/test_json_sql.py::TestJSONSQL::test_compiled_scalars[value4-result4] ERROR tests/functions/test_json_sql.py::TestJSONSQL::test_compiled_scalars[value5-result5] ERROR tests/functions/test_json_sql.py::TestJSONSQL::test_compiled_scalars[value6-result6] ERROR tests/functions/test_json_sql.py::TestJSONSQL::test_compiled_scalars[value7-result7] ERROR tests/functions/test_jsonb_sql.py::TestJSONBSQL::test_compiled_scalars[1-1] ERROR tests/functions/test_jsonb_sql.py::TestJSONBSQL::test_compiled_scalars[14.14-14.14] ERROR tests/functions/test_jsonb_sql.py::TestJSONBSQL::test_compiled_scalars[value2-result2] ERROR tests/functions/test_jsonb_sql.py::TestJSONBSQL::test_compiled_scalars[value3-result3] ERROR tests/functions/test_jsonb_sql.py::TestJSONBSQL::test_compiled_scalars[value4-result4] ERROR tests/functions/test_jsonb_sql.py::TestJSONBSQL::test_compiled_scalars[value5-result5] ERROR tests/functions/test_jsonb_sql.py::TestJSONBSQL::test_compiled_scalars[value6-result6] ERROR tests/functions/test_jsonb_sql.py::TestJSONBSQL::test_compiled_scalars[value7-result7] ERROR tests/observes/test_column_property.py::TestObservesForColumn::test_simple_insert ERROR tests/observes/test_column_property.py::TestObservesForColumnWithoutActualChanges::test_only_notifies_observer_on_actual_changes ERROR tests/observes/test_column_property.py::TestObservesForMultipleColumns::test_only_notifies_observer_on_actual_changes ERROR tests/observes/test_column_property.py::TestObservesForMultipleColumnsFiresOnlyOnce::test_only_notifies_observer_on_actual_changes ERROR tests/observes/test_dynamic_relationship.py::TestObservesForDynamicRelationship::test_add_observed_object ERROR tests/observes/test_dynamic_relationship.py::TestObservesForDynamicRelationship::test_add_observed_object_from_backref ERROR tests/observes/test_m2m_m2m_m2m.py::TestObservesForManyToManyToManyToMany::test_simple_insert ERROR tests/observes/test_m2m_m2m_m2m.py::TestObservesForManyToManyToManyToMany::test_add_leaf_object ERROR tests/observes/test_m2m_m2m_m2m.py::TestObservesForManyToManyToManyToMany::test_remove_leaf_object ERROR tests/observes/test_m2m_m2m_m2m.py::TestObservesForManyToManyToManyToMany::test_delete_intermediate_object ERROR tests/observes/test_m2m_m2m_m2m.py::TestObservesForManyToManyToManyToMany::test_gathered_objects_are_distinct ERROR tests/observes/test_o2m_o2m_o2m.py::TestObservesFor3LevelDeepOneToMany::test_simple_insert ERROR tests/observes/test_o2m_o2m_o2m.py::TestObservesFor3LevelDeepOneToMany::test_add_leaf_object ERROR tests/observes/test_o2m_o2m_o2m.py::TestObservesFor3LevelDeepOneToMany::test_remove_leaf_object ERROR tests/observes/test_o2m_o2m_o2m.py::TestObservesFor3LevelDeepOneToMany::test_delete_intermediate_object ERROR tests/observes/test_o2m_o2m_o2m.py::TestObservesFor3LevelDeepOneToMany::test_gathered_objects_are_distinct ERROR tests/observes/test_o2m_o2o_o2m.py::TestObservesForOneToManyToOneToMany::test_simple_insert ERROR tests/observes/test_o2m_o2o_o2m.py::TestObservesForOneToManyToOneToMany::test_add_leaf_object ERROR tests/observes/test_o2m_o2o_o2m.py::TestObservesForOneToManyToOneToMany::test_remove_leaf_object ERROR tests/observes/test_o2m_o2o_o2m.py::TestObservesForOneToManyToOneToMany::test_delete_intermediate_object ERROR tests/observes/test_o2m_o2o_o2m.py::TestObservesForOneToManyToOneToMany::test_gathered_objects_are_distinct ERROR tests/observes/test_o2o_o2o.py::TestObservesForOneToManyToOneToMany::test_observable_root_obj_is_none ERROR tests/observes/test_o2o_o2o_o2o.py::TestObservesForOneToOneToOneToOne::test_simple_insert ERROR tests/observes/test_o2o_o2o_o2o.py::TestObservesForOneToOneToOneToOne::test_replace_leaf_object ERROR tests/observes/test_o2o_o2o_o2o.py::TestObservesForOneToOneToOneToOne::test_delete_leaf_object ERROR tests/relationships/test_select_correlated_expression.py::TestSelectCorrelatedExpression::test_returns_correct_results[categories-categories-subcategories-result0] ERROR tests/relationships/test_select_correlated_expression.py::TestSelectCorrelatedExpression::test_returns_correct_results[articles-comments-comments-result1] ERROR tests/relationships/test_select_correlated_expression.py::TestSelectCorrelatedExpression::test_returns_correct_results[users-groups-groups-result2] ERROR tests/relationships/test_select_correlated_expression.py::TestSelectCorrelatedExpression::test_returns_correct_results[users-users-all_friends-result3] ERROR tests/relationships/test_select_correlated_expression.py::TestSelectCorrelatedExpression::test_returns_correct_results[users-users-all_friends.all_friends-result4] ERROR tests/relationships/test_select_correlated_expression.py::TestSelectCorrelatedExpression::test_returns_correct_results[users-users-groups.users-result5] ERROR tests/relationships/test_select_correlated_expression.py::TestSelectCorrelatedExpression::test_returns_correct_results[groups-articles-users.authored_articles-result6] ERROR tests/relationships/test_select_correlated_expression.py::TestSelectCorrelatedExpression::test_returns_correct_results[categories-categories-subcategories.subcategories-result7] ERROR tests/relationships/test_select_correlated_expression.py::TestSelectCorrelatedExpression::test_returns_correct_results[categories-categories-subcategories.subcategories.subcategories-result8] ERROR tests/relationships/test_select_correlated_expression.py::TestSelectCorrelatedExpression::test_order_by_intermediate_table_column ERROR tests/relationships/test_select_correlated_expression.py::TestSelectCorrelatedExpression::test_with_non_aggregate_function ERROR tests/test_asserts.py::TestAssertMaxLengthWithArray::test_with_max_length ERROR tests/test_asserts.py::TestAssertMaxLengthWithArray::test_smaller_than_max_length ERROR tests/test_asserts.py::TestAssertMaxLengthWithArray::test_bigger_than_max_length ERROR tests/test_asserts.py::TestAssertNonNullable::test_non_nullable_column ERROR tests/test_asserts.py::TestAssertNonNullable::test_nullable_column - sq... ERROR tests/test_asserts.py::TestAssertNullable::test_nullable_column - sqlal... ERROR tests/test_asserts.py::TestAssertNullable::test_non_nullable_column - s... ERROR tests/test_asserts.py::TestAssertMaxLength::test_with_max_length - sqla... ERROR tests/test_asserts.py::TestAssertMaxLength::test_with_non_nullable_column ERROR tests/test_asserts.py::TestAssertMaxLength::test_smaller_than_max_length ERROR tests/test_asserts.py::TestAssertMaxLength::test_bigger_than_max_length ERROR tests/test_asserts.py::TestAssertMinValue::test_with_min_value - sqlalc... ERROR tests/test_asserts.py::TestAssertMinValue::test_smaller_than_min_value ERROR tests/test_asserts.py::TestAssertMinValue::test_bigger_than_min_value ERROR tests/test_asserts.py::TestAssertMaxValue::test_with_min_value - sqlalc... ERROR tests/test_asserts.py::TestAssertMaxValue::test_smaller_than_max_value ERROR tests/test_asserts.py::TestAssertMaxValue::test_bigger_than_max_value ERROR tests/test_views.py::TestMaterializedViews::test_refresh_materialized_view ERROR tests/test_views.py::TestMaterializedViews::test_querying_view - sqlalc... ERROR tests/test_views.py::TestPostgresTrivialView::test_life_cycle_no_cascade ERROR tests/test_views.py::TestPostgresTrivialView::test_life_cycle_cascade ERROR tests/test_views.py::TestMySqlTrivialView::test_life_cycle_no_cascade ERROR tests/test_views.py::TestMySqlTrivialView::test_life_cycle_cascade - sq... ERROR tests/types/test_composite.py::TestCompositeTypeWithRegularTypes::test_parameter_processing ERROR tests/types/test_composite.py::TestCompositeTypeWithRegularTypes::test_non_ascii_chars ERROR tests/types/test_composite.py::TestCompositeTypeWithRegularTypes::test_dict_input ERROR tests/types/test_composite.py::TestCompositeTypeWithRegularTypes::test_incomplete_dict ERROR tests/types/test_composite.py::TestCompositeTypeWhenTypeAlreadyExistsInDatabase::test_parameter_processing ERROR tests/types/test_composite.py::TestCompositeTypeWithMixedCase::test_parameter_processing ERROR tests/types/test_json.py::TestPostgresJSONType::test_list - sqlalchemy.... ERROR tests/types/test_json.py::TestPostgresJSONType::test_parameter_processing ERROR tests/types/test_json.py::TestPostgresJSONType::test_non_ascii_chars - ... ERROR tests/types/test_json.py::TestPostgresJSONType::test_compilation - sqla... ERROR tests/types/test_json.py::TestPostgresJSONType::test_unhashable_type - ... ERROR tests/types/test_ltree.py::TestLTREE::test_saves_path - sqlalchemy.exc.... ERROR tests/types/test_ltree.py::TestLTREE::test_literal_param - sqlalchemy.e... ERROR tests/types/test_ltree.py::TestLTREE::test_compilation - sqlalchemy.exc... ERROR tests/types/test_tsvector.py::TestTSVector::test_type_reflection - sqla... ERROR tests/types/test_tsvector.py::TestTSVector::test_catalog_passed_to_match ERROR tests/types/test_tsvector.py::TestTSVector::test_match_concatenation - ... ERROR tests/types/test_tsvector.py::TestTSVector::test_match_with_catalog - s... = 8 failed, 2221 passed, 351 skipped, 1 xfailed, 9 warnings, 108 errors in 20.71s = + : + RPM_EC=0 ++ jobs -p + exit 0 Processing files: python3-sqlalchemy-utils-0.41.1-12.fc44.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.Gr4sBm + umask 022 + cd /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build + cd SQLAlchemy-Utils-0.41.1 + DOCDIR=/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/share/doc/python3-sqlalchemy-utils + export LC_ALL=C.UTF-8 + LC_ALL=C.UTF-8 + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/share/doc/python3-sqlalchemy-utils + cp -pr /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/README.rst /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/share/doc/python3-sqlalchemy-utils + RPM_EC=0 ++ jobs -p + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.uS71js + umask 022 + cd /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build + cd SQLAlchemy-Utils-0.41.1 + LICENSEDIR=/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/share/licenses/python3-sqlalchemy-utils + export LC_ALL=C.UTF-8 + LC_ALL=C.UTF-8 + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/share/licenses/python3-sqlalchemy-utils + cp -pr /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/LICENSE /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/share/licenses/python3-sqlalchemy-utils + RPM_EC=0 ++ jobs -p + exit 0 Provides: python-sqlalchemy-utils = 0.41.1-12.fc44 python3-sqlalchemy-utils = 0.41.1-12.fc44 python3.14-sqlalchemy-utils = 0.41.1-12.fc44 python3.14dist(sqlalchemy-utils) = 0.41.1 python3dist(sqlalchemy-utils) = 0.41.1 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: (python3.14dist(sqlalchemy) < 2~~ with python3.14dist(sqlalchemy) >= 1.3) python(abi) = 3.14 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT Wrote: /builddir/build/SRPMS/python-sqlalchemy-utils-0.41.1-12.fc44.src.rpm Wrote: /builddir/build/RPMS/python3-sqlalchemy-utils-0.41.1-12.fc44.noarch.rpm Finish: rpmbuild python-sqlalchemy-utils-0.41.1-12.fc44.src.rpm Finish: build phase for python-sqlalchemy-utils-0.41.1-12.fc44.src.rpm INFO: chroot_scan: 1 files copied to /var/lib/copr-rpmbuild/results/chroot_scan INFO: /var/lib/mock/fedora-rawhide-x86_64-1756211287.875025/root/var/log/dnf5.log INFO: chroot_scan: creating tarball /var/lib/copr-rpmbuild/results/chroot_scan.tar.gz /bin/tar: Removing leading `/' from member names INFO: Done(/var/lib/copr-rpmbuild/results/python-sqlalchemy-utils-0.41.1-12.fc44.src.rpm) Config(child) 0 minutes 35 seconds INFO: Results and/or logs in: /var/lib/copr-rpmbuild/results INFO: Cleaning up build root ('cleanup_on_success=True') Start: clean chroot INFO: unmounting tmpfs. Finish: clean chroot Finish: run Running RPMResults tool Package info: { "packages": [ { "name": "python3-sqlalchemy-utils", "epoch": null, "version": "0.41.1", "release": "12.fc44", "arch": "noarch" }, { "name": "python-sqlalchemy-utils", "epoch": null, "version": "0.41.1", "release": "12.fc44", "arch": "src" } ] } RPMResults finished